Scala/IDEA question: How to turn off "Class doesn't correspond to filename" warnings?

I tend to write a lot of small classes, and group them into one file if they are tightly coupled. However, the IDEA editor throws up warnings because the class names do not correspond to the filename. Is there a way to suppress only those warnings? I could put a lot of these classes into the "central" class, but I'd like to know if there's a way to do this and still use a "flat" class structure.

Thanks,
Ken

Re: Scala/IDEA question: How to turn off "Class doesn't corresp

I think these are called "inspection" in IntelliJ IDEA. I don't have it in front of me, but there's a place in preference you can uncheck specifically "Class name differs from file name".
http://www.jetbrains.com/idea/documentation/inspections.jsp
http://www.jetbrains.com/idea/documentation/static_code_analysis.html
e.

Re: Scala/IDEA question: How to turn off "Class doesn't corresp

So it's:File > Settings > Inspections, then under Scala, "File Name Inspection."
e.

Re: Scala/IDEA question: How to turn off "Class doesn't corresp

Thanks, got it! Definitely a help.

Just to clarify things for others new to IDEA, "Inspections" only appears in the "Project Settings" list, not in the "IDE Settings" List; but it appears that if you choose the "Default" set of inspections rather than the "Project Default" set, other projects will see the change. I haven't verified this, though.

Ken
On Jan 19, 2011, at 5:45 PM, e.e wrote:

> So it's:
> File > Settings > Inspections, then under Scala, "File Name Inspection."
>
> e.
>

Copyright © 2013 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland