We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e30b6 commit 2347264Copy full SHA for 2347264
Assets/Tests/StyleTest/FileNameIssueStyleViolationTest.cs
@@ -10,9 +10,9 @@ public class FileNameIssueStyleViolationTest
10
11
// 正しい名前のフィールド
12
private string _exampleField = "Valid";
13
-
14
- // Staticメンバー配置順序の違反(推奨: 静的要素 → インスタンスメンバーの順序)
15
- public static readonly string StaticExample = "Static Value";
+
+ // スペースが1つ足りない違反
+ public static readonly string StaticExample = "Static Value";
16
17
// メソッド名の命名規則違反(PascalCaseが推奨される)
18
public void printmessage() // 【違反】PascalCaseでない
@@ -31,6 +31,12 @@ public void CheckCondition(int value)
31
{
32
if (value > 0) // 【違反】波括弧が無い
33
Debug.Log("Value is positive.");
34
35
+ float x = 10;
36
+ // 【違反】キャストと値の間に空白
37
+ int y = (int)x;
38
+ // 【違反】制御フロー ステートメントのキーワードの後に空白文字を配置
39
+ for (var i=0;i<x;i++) { }
40
}
41
42
// 正しい条件分岐
0 commit comments