回答編集履歴
8
修正
answer
CHANGED
@@ -6,12 +6,13 @@
|
|
6
6
|
テスト前であれば目視で確認する。
|
7
7
|
すでに稼働中のものであれば触らない。
|
8
8
|
|
9
|
-
|
9
|
+
・Visual Studio 2019についている、ESLintの機能を使うとjavascriptのおかしな部分を指摘してくれました。
|
10
10
|
|
11
|
+
・NugetのStyleCop.Analyzerもコードチェックで使える。
|
11
|
-
|
12
|
+
.editorconfig の設定はこのようにしました。警告を無視する番号を指定しています。
|
13
|
+
※StyleCop.Analyzerの警告を1つずつ見て、どれが不要かを判断したら
|
14
|
+
私のケースでは以下のような感じになりました。
|
12
15
|
|
13
|
-
StyleCop.Analyzerの警告を1つずつ見てどれが不要かを判断してみましたら以下のような感じになりました。
|
14
|
-
|
15
16
|
```txt
|
16
17
|
### StyleCop Ignore ###
|
17
18
|
dotnet_diagnostic.SA0001.severity = none
|
7
修正
answer
CHANGED
@@ -8,17 +8,17 @@
|
|
8
8
|
|
9
9
|
StyleCop.Analyzerもコードチェックで使えるかもしれない。
|
10
10
|
|
11
|
-
私の.editorconfig の設定はこうしました。
|
11
|
+
私の.editorconfig の設定はこのようにしました。警告を無視する番号を指定しています。
|
12
12
|
|
13
|
+
StyleCop.Analyzerの警告を1つずつ見てどれが不要かを判断してみましたら以下のような感じになりました。
|
14
|
+
|
13
15
|
```txt
|
14
16
|
### StyleCop Ignore ###
|
15
17
|
dotnet_diagnostic.SA0001.severity = none
|
18
|
+
|
16
19
|
dotnet_diagnostic.SA1009.severity = none
|
17
|
-
dotnet_diagnostic.SA1025.severity = none
|
18
|
-
|
19
20
|
dotnet_diagnostic.SA1101.severity = none
|
20
21
|
dotnet_diagnostic.SA1111.severity = none
|
21
|
-
dotnet_diagnostic.SA1113.severity = none
|
22
22
|
dotnet_diagnostic.SA1118.severity = none
|
23
23
|
dotnet_diagnostic.SA1119.severity = none
|
24
24
|
dotnet_diagnostic.SA1121.severity = none
|
@@ -29,26 +29,19 @@
|
|
29
29
|
|
30
30
|
dotnet_diagnostic.SA1200.severity = none
|
31
31
|
dotnet_diagnostic.SA1201.severity = none
|
32
|
-
dotnet_diagnostic.SA1202.severity = none
|
33
32
|
dotnet_diagnostic.SA1203.severity = none
|
34
33
|
dotnet_diagnostic.SA1208.severity = none
|
35
34
|
dotnet_diagnostic.SA1214.severity = none
|
36
35
|
|
37
|
-
dotnet_diagnostic.SA1307.severity = none
|
38
36
|
dotnet_diagnostic.SA1309.severity = none
|
39
37
|
dotnet_diagnostic.SA1310.severity = none
|
40
38
|
|
41
39
|
dotnet_diagnostic.SA1400.severity = none
|
42
|
-
dotnet_diagnostic.SA1401.severity = none
|
43
|
-
dotnet_diagnostic.SA1402.severity = none
|
44
40
|
dotnet_diagnostic.SA1413.severity = none
|
45
41
|
|
46
42
|
dotnet_diagnostic.SA1500.severity = none
|
47
43
|
dotnet_diagnostic.SA1505.severity = none
|
48
|
-
dotnet_diagnostic.SA1507.severity = none
|
49
44
|
dotnet_diagnostic.SA1512.severity = none
|
50
|
-
dotnet_diagnostic.SA1513.severity = none
|
51
|
-
dotnet_diagnostic.SA1516.severity = none
|
52
45
|
|
53
46
|
dotnet_diagnostic.SA1600.severity = none
|
54
47
|
dotnet_diagnostic.SA1601.severity = none
|
@@ -68,5 +61,4 @@
|
|
68
61
|
dotnet_diagnostic.SA1643.severity = none
|
69
62
|
dotnet_diagnostic.SA1649.severity = none
|
70
63
|
dotnet_diagnostic.SA1650.severity = none
|
71
|
-
|
72
64
|
```
|
6
修正
answer
CHANGED
@@ -12,27 +12,33 @@
|
|
12
12
|
|
13
13
|
```txt
|
14
14
|
### StyleCop Ignore ###
|
15
|
+
dotnet_diagnostic.SA0001.severity = none
|
15
16
|
dotnet_diagnostic.SA1009.severity = none
|
17
|
+
dotnet_diagnostic.SA1025.severity = none
|
16
18
|
|
17
19
|
dotnet_diagnostic.SA1101.severity = none
|
18
20
|
dotnet_diagnostic.SA1111.severity = none
|
19
21
|
dotnet_diagnostic.SA1113.severity = none
|
22
|
+
dotnet_diagnostic.SA1118.severity = none
|
20
23
|
dotnet_diagnostic.SA1119.severity = none
|
24
|
+
dotnet_diagnostic.SA1121.severity = none
|
25
|
+
dotnet_diagnostic.SA1122.severity = none
|
26
|
+
dotnet_diagnostic.SA1129.severity = none
|
21
27
|
dotnet_diagnostic.SA1131.severity = none
|
22
28
|
dotnet_diagnostic.SA1133.severity = none
|
23
29
|
|
24
|
-
dotnet_diagnostic.SA1121.severity = none
|
25
|
-
dotnet_diagnostic.SA1122.severity = none
|
26
|
-
|
27
30
|
dotnet_diagnostic.SA1200.severity = none
|
28
31
|
dotnet_diagnostic.SA1201.severity = none
|
29
32
|
dotnet_diagnostic.SA1202.severity = none
|
33
|
+
dotnet_diagnostic.SA1203.severity = none
|
30
34
|
dotnet_diagnostic.SA1208.severity = none
|
35
|
+
dotnet_diagnostic.SA1214.severity = none
|
31
36
|
|
32
37
|
dotnet_diagnostic.SA1307.severity = none
|
33
38
|
dotnet_diagnostic.SA1309.severity = none
|
34
39
|
dotnet_diagnostic.SA1310.severity = none
|
35
40
|
|
41
|
+
dotnet_diagnostic.SA1400.severity = none
|
36
42
|
dotnet_diagnostic.SA1401.severity = none
|
37
43
|
dotnet_diagnostic.SA1402.severity = none
|
38
44
|
dotnet_diagnostic.SA1413.severity = none
|
@@ -62,4 +68,5 @@
|
|
62
68
|
dotnet_diagnostic.SA1643.severity = none
|
63
69
|
dotnet_diagnostic.SA1649.severity = none
|
64
70
|
dotnet_diagnostic.SA1650.severity = none
|
71
|
+
|
65
72
|
```
|
5
修正
answer
CHANGED
@@ -10,25 +10,40 @@
|
|
10
10
|
|
11
11
|
私の.editorconfig の設定はこうしました。
|
12
12
|
|
13
|
-
```
|
13
|
+
```txt
|
14
|
+
### StyleCop Ignore ###
|
14
15
|
dotnet_diagnostic.SA1009.severity = none
|
16
|
+
|
15
17
|
dotnet_diagnostic.SA1101.severity = none
|
16
18
|
dotnet_diagnostic.SA1111.severity = none
|
17
19
|
dotnet_diagnostic.SA1113.severity = none
|
18
20
|
dotnet_diagnostic.SA1119.severity = none
|
21
|
+
dotnet_diagnostic.SA1131.severity = none
|
22
|
+
dotnet_diagnostic.SA1133.severity = none
|
23
|
+
|
19
24
|
dotnet_diagnostic.SA1121.severity = none
|
20
25
|
dotnet_diagnostic.SA1122.severity = none
|
26
|
+
|
21
27
|
dotnet_diagnostic.SA1200.severity = none
|
28
|
+
dotnet_diagnostic.SA1201.severity = none
|
29
|
+
dotnet_diagnostic.SA1202.severity = none
|
22
30
|
dotnet_diagnostic.SA1208.severity = none
|
31
|
+
|
23
32
|
dotnet_diagnostic.SA1307.severity = none
|
24
33
|
dotnet_diagnostic.SA1309.severity = none
|
25
34
|
dotnet_diagnostic.SA1310.severity = none
|
35
|
+
|
26
36
|
dotnet_diagnostic.SA1401.severity = none
|
27
37
|
dotnet_diagnostic.SA1402.severity = none
|
28
38
|
dotnet_diagnostic.SA1413.severity = none
|
39
|
+
|
29
40
|
dotnet_diagnostic.SA1500.severity = none
|
30
41
|
dotnet_diagnostic.SA1505.severity = none
|
42
|
+
dotnet_diagnostic.SA1507.severity = none
|
43
|
+
dotnet_diagnostic.SA1512.severity = none
|
44
|
+
dotnet_diagnostic.SA1513.severity = none
|
31
45
|
dotnet_diagnostic.SA1516.severity = none
|
46
|
+
|
32
47
|
dotnet_diagnostic.SA1600.severity = none
|
33
48
|
dotnet_diagnostic.SA1601.severity = none
|
34
49
|
dotnet_diagnostic.SA1602.severity = none
|
4
修正
answer
CHANGED
@@ -6,4 +6,45 @@
|
|
6
6
|
テスト前であれば目視で確認する。
|
7
7
|
すでに稼働中のものであれば触らない。
|
8
8
|
|
9
|
-
StyleCop
|
9
|
+
StyleCop.Analyzerもコードチェックで使えるかもしれない。
|
10
|
+
|
11
|
+
私の.editorconfig の設定はこうしました。
|
12
|
+
|
13
|
+
```C#
|
14
|
+
dotnet_diagnostic.SA1009.severity = none
|
15
|
+
dotnet_diagnostic.SA1101.severity = none
|
16
|
+
dotnet_diagnostic.SA1111.severity = none
|
17
|
+
dotnet_diagnostic.SA1113.severity = none
|
18
|
+
dotnet_diagnostic.SA1119.severity = none
|
19
|
+
dotnet_diagnostic.SA1121.severity = none
|
20
|
+
dotnet_diagnostic.SA1122.severity = none
|
21
|
+
dotnet_diagnostic.SA1200.severity = none
|
22
|
+
dotnet_diagnostic.SA1208.severity = none
|
23
|
+
dotnet_diagnostic.SA1307.severity = none
|
24
|
+
dotnet_diagnostic.SA1309.severity = none
|
25
|
+
dotnet_diagnostic.SA1310.severity = none
|
26
|
+
dotnet_diagnostic.SA1401.severity = none
|
27
|
+
dotnet_diagnostic.SA1402.severity = none
|
28
|
+
dotnet_diagnostic.SA1413.severity = none
|
29
|
+
dotnet_diagnostic.SA1500.severity = none
|
30
|
+
dotnet_diagnostic.SA1505.severity = none
|
31
|
+
dotnet_diagnostic.SA1516.severity = none
|
32
|
+
dotnet_diagnostic.SA1600.severity = none
|
33
|
+
dotnet_diagnostic.SA1601.severity = none
|
34
|
+
dotnet_diagnostic.SA1602.severity = none
|
35
|
+
dotnet_diagnostic.SA1623.severity = none
|
36
|
+
dotnet_diagnostic.SA1624.severity = none
|
37
|
+
dotnet_diagnostic.SA1629.severity = none
|
38
|
+
dotnet_diagnostic.SA1630.severity = none
|
39
|
+
dotnet_diagnostic.SA1631.severity = none
|
40
|
+
dotnet_diagnostic.SA1633.severity = none
|
41
|
+
dotnet_diagnostic.SA1635.severity = none
|
42
|
+
dotnet_diagnostic.SA1637.severity = none
|
43
|
+
dotnet_diagnostic.SA1638.severity = none
|
44
|
+
dotnet_diagnostic.SA1639.severity = none
|
45
|
+
dotnet_diagnostic.SA1640.severity = none
|
46
|
+
dotnet_diagnostic.SA1642.severity = none
|
47
|
+
dotnet_diagnostic.SA1643.severity = none
|
48
|
+
dotnet_diagnostic.SA1649.severity = none
|
49
|
+
dotnet_diagnostic.SA1650.severity = none
|
50
|
+
```
|
3
修正
answer
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
①タイプとメソッド名が合わない時
|
4
4
|
②タイプがリスト等の複数の時(Listなど)、変数名がsで終わっていること
|
5
5
|
|
6
|
-
テスト前であれば目視で確認する
|
6
|
+
テスト前であれば目視で確認する。
|
7
7
|
すでに稼働中のものであれば触らない。
|
8
8
|
|
9
9
|
StyleCop等もコードチェックで使えるかもしれない。
|
2
修正
answer
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
以下の方法は現実的でない。
|
2
2
|
|
3
3
|
①タイプとメソッド名が合わない時
|
4
|
-
②タイプがリスト等の複数の時(Listなど)、変数名がsで終わっていること
|
4
|
+
②タイプがリスト等の複数の時(Listなど)、変数名がsで終わっていること
|
5
5
|
|
6
6
|
テスト前であれば目視で確認する程度にする。
|
7
7
|
すでに稼働中のものであれば触らない。
|
1
修正
answer
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
以下の方法は現実的でない
|
1
|
+
以下の方法は現実的でない。
|
2
2
|
|
3
3
|
①タイプとメソッド名が合わない時
|
4
4
|
②タイプがリスト等の複数の時(Listなど)、変数名がsで終わっていること ※英語なのでiesとかはあるのでsを末尾としてます。
|
5
5
|
|
6
|
+
テスト前であれば目視で確認する程度にする。
|
7
|
+
すでに稼働中のものであれば触らない。
|
6
8
|
|
7
|
-
|
9
|
+
StyleCop等もコードチェックで使えるかもしれない。
|