Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Assets/Tests/StyleTest/StyleTest2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace Tests.StyleTest
{
public sealed class StyleTest2
{
public const string ConstString = "ConstString";
static string s_staticField = string.Empty;
string _stringField;
string _stringField2;
string _stringField3;

void Method()
{

}

void _method2()

Check failure on line 16 in Assets/Tests/StyleTest/StyleTest2.cs

View workflow job for this annotation

GitHub Actions / unity-cs-linter / lint-cs-files / lint-cs-files

Naming rule violation: Prefix '_' is not expected
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: Prefix '_' is not expected

{
}
}
}
3 changes: 3 additions & 0 deletions Assets/Tests/StyleTest/StyleTest2.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading