Tabs should be used. NHibernate mostly follows MS's coding guidelines - as enforced by tools like FxCop and ReSharper:
http://msdn.microsoft.com/en-us/library/xzf533w0(v=VS.71).aspx Unfortunately there are some variations, and although I'm quite active in trying to standardize as much as possible its a thankless task. For example, I prefer field names to use underscore-camel notation, and generally convert existing code to this - particularly if there is inconsistency within a class. On 03/01/2012 12:42 AM, "CSharper" <[email protected]> wrote: > Hi, > > where can I find some information about coding standards in > NHibernate? Are they written down somewhere? > > The easiest thing: should tabs or spaces be used for line indentation? > I've browsed some recent changes on the git repository and some pull > requests and the diffs there are often much larger than they would > have to be because there is a switch between tabs and spaces in the > files. That makes reading patches much harder. O.k., an external diff > program ignoring whitespace differences helps on the local machine but > for browsing the repository online, there's no easy solution. >
