-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add style compliance test script #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7f8adac
fdc8dc4
14f8cba
17d8146
08f9645
c950162
8b0cebc
bbf04d4
ca27d27
d9d8b32
d75f499
9334aac
4a6b342
92bbf64
407d0e1
1187bda
533fc74
44a3fb6
5d4aa64
c0b5366
b1b2016
2932a63
d6dfd69
9d4ad5e
0e30595
2217ad7
0e2d6e4
0cea84b
b6f9cd0
24a48e0
b7d2440
8259fbb
216da9e
d097da2
3959c20
a2dacb9
0d05265
8da6657
0bcc3bf
e8356ee
62c4afb
aee1716
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
|
|
||
| using UnityEngine; | ||
|
|
||
| namespace Tests.StyleTest | ||
| { | ||
| public sealed class StyleTestScript | ||
| { | ||
| public int CorrectProperty { get; set; } | ||
|
|
||
| int _incorrect_field; | ||
| string stringField; | ||
|
|
||
| public void CheckRules() | ||
| { | ||
| if (CorrectProperty > 0) | ||
| { | ||
| Debug.Log("Correct Property is greater than zero"); | ||
| } | ||
|
|
||
| if (CorrectProperty > 0) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| Debug.Log("Correct Property is greater than zero"); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| } | ||
|
|
||
| public void VariableDeclaration() | ||
| { | ||
| var number = 5; | ||
| int specificNumber = 10; | ||
| } | ||
|
|
||
| public void Methord() | ||
| { | ||
|
|
||
| } | ||
|
|
||
| void PrivateMethod() | ||
| { | ||
|
|
||
| } | ||
| } | ||
|
|
||
| public interface IStyleTestInterface { } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| namespace Tests.StyleTest | ||
| { | ||
| public sealed class StyleTestScript2 | ||
| { | ||
| public static readonly string StaticProperty = "This is a static property"; | ||
| static readonly string staticField = "This is a static field"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [StyleCop] reported by reviewdog 🐶 |
||
| static string staticField2 = "This is a static field"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [StyleCop] reported by reviewdog 🐶 |
||
| public int CorrectProperty { get; set; } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| private int _incorrectField; | ||
| string _stringField; | ||
|
|
||
| public void CheckRules() | ||
| { | ||
|
|
||
| } | ||
|
|
||
| public void variableDeclaration() | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [StyleCop] reported by reviewdog 🐶 |
||
| { | ||
|
|
||
| } | ||
|
|
||
| internal void Methord() | ||
| { | ||
|
|
||
| } | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
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: '_'