Skip to content

cprobbie/CodingStandards

 
 

Repository files navigation

NuGet Status

Build Status

CodingStandards

A repository to contain IntelliTect's tools for coding conventions. IntelliTect conventions can be found here.

00XX block - Naming

INTL0001 - Fields _PascalCase

Fields should be specified in _PascalCase. Always with a leading underscore, regardless of visibility modifier.

Allowed

class SomeClass
{
    public string _MyField;
}

Disallowed

class SomeClass
{
    public string _myField;
    public string myField;
}

INTL0002 - Properties PascalCase

Fields should be PascalCase

Allowed

class SomeClass
{
    public string MyProperty { get; set; }
}

Disallowed

class SomeClass
{
    public string myProperty { get; set; }
    public string _MyProperty { get; set; }
}

00XX block - Formatting

INTL0003 - Attributes on separate lines

All attributes should be on separate lines and be wrapped in their own braces.

Allowed

[FooClass]
[BarClass]
class SomeClass
{
    [Foo]
    [Bar]
    public string MyProperty { get; set; }
}

Disallowed

[FooClass, BarClass]
class SomeClass
{
    [Foo][Bar]
    public string MyProperty { get; set; }
}

About

A repository to contain IntelliTect's tools for coding conventions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 95.8%
  • PowerShell 4.2%