Class doesn't correspond to file name

I'm getting this warning, which aborts my svn commits if I have "code analysis" enabled.

It's true that my class name doesn't correspond to the file name, but this is legal in Scala.

Suggestions?

Thanks,
Arya

2 comments
Comment actions Permalink

It's legal in Scala to have a class with name that differs from the name of containing file.

However, such naming can be misleading, so you may want to use "File Name Inspection" that finds potentially deceptive files.

In case you go along with dissimilar names, you should either disable "File Name Inspection" or proceed commits regardless of warning.

0

Please sign in to leave a comment.