Skip to content

Conversation

@IShix-g
Copy link
Owner

@IShix-g IShix-g commented Feb 22, 2025

No description provided.

public sealed class StyleTestScript2
{
public static readonly string StaticProperty = "This is a static property";
static readonly string staticField = "This is a static field";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [StyleCop] reported by reviewdog 🐶
Naming rule violation: Missing prefix: 's_'

{
public static readonly string StaticProperty = "This is a static property";
static readonly string staticField = "This is a static field";
static string staticField2 = "This is a static field";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [StyleCop] reported by reviewdog 🐶
Naming rule violation: Missing prefix: 's_'


}

public void variableDeclaration()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [StyleCop] reported by reviewdog 🐶
Naming rule violation: These words must begin with upper case characters: variableDeclaration

public static readonly string StaticProperty = "This is a static property";
static readonly string staticField = "This is a static field";
static string staticField2 = "This is a static field";
public int CorrectProperty { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [StyleCop] reported by reviewdog 🐶
Elements should be separated by blank line

Debug.Log("Correct Property is greater than zero");
}

if (CorrectProperty > 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [StyleCop] reported by reviewdog 🐶
Add braces to 'if' statement.

public int CorrectProperty { get; set; }

int _incorrect_field;
string stringField;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [StyleCop] reported by reviewdog 🐶
Naming rule violation: Missing prefix: '_'

}

if (CorrectProperty > 0)
Debug.Log("Correct Property is greater than zero");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [StyleCop] reported by reviewdog 🐶
Braces should not be omitted

@IShix-g IShix-g closed this Feb 25, 2025
@IShix-g IShix-g deleted the feature/csharp-lint-test2 branch February 25, 2025 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants