This project is read-only.

Multiple classes in the same file

Aug 16, 2011 at 3:29 PM

I've had a quick look through the current discussions and couldn't see anything so I'd like to put this on the table for discussion. Basically I have the view that (barring a few exceptional cases) it should be one class per file and I think it should be added as a readability rule.

What does everyone think?

Aug 17, 2011 at 8:58 AM
Edited Aug 17, 2011 at 8:58 AM

SA1402: FileMayOnlyContainASingleClass

Aug 17, 2011 at 10:49 AM

What a fool I am! I keep forgetting that we have excluded the majority of the files of our projects from being checked due to flagging too many errors. This will obviously be why it's not showing then...



Aug 17, 2011 at 10:55 AM

No worries.