APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
135 stars 162 forks source link

Update files to conform to new style rules #7902

Open ric394 opened 1 year ago

ric394 commented 1 year ago

Files require restyling to conform to new style rules.

lie112 commented 1 year ago

Were are the full style rules outlined?

ric394 commented 1 year ago

@lie112 they are outlined in a file called ".editorconfig".

hol353 commented 1 year ago

@lie112: We are following the Microsoft C# guidelines here:

https://apsimnextgeneration.netlify.app/development/software/codingstyle/ https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions

ric394 commented 1 year ago

My original approach of fixing all errors caused by the turning on of a rule all at once, was too ambitious.

New approach:

The location of the rules: Solution Item > .editorconfig image

Rule Progress

lie112 commented 1 year ago

Have we considered changing to file scoped namespace (C#10) to remove an unnecessary level of indentation from all our files and manager scripts?