collapse
26%
W説明%
Number of gendarme violations is 3,69626
テスト結果: 2,682個のテスト中、0個のテストに失敗しました。100
ビルドの安定性: 最近のビルドは失敗してません。100
ビルド履歴
x
 29:25
2.3.0.187
(リビジョン 1693)
 28:08
2.3.0.186
(リビジョン 1691)
 27:47
2.3.0.185
(リビジョン 1689)
 24:04
2.3.0.184
(リビジョン 1688)
 23:38
2.3.0.183
(リビジョン 1686)
 x22:24
2.3.0.182
(リビジョン 1685)
 25:53
2.3.0.181
(リビジョン 1681)
 23:33
2.3.0.180
(リビジョン 1663)
 26:06
2.3.0.179
(リビジョン 1661)
 21:51
2.3.0.178
(リビジョン 1659)
 22:01
2.3.0.177
(リビジョン 1658)
 21:58
2.3.0.176
(リビジョン 1656)
 27:50
2.3.0.175
(リビジョン 1654)
 24:08
2.3.0.174
(リビジョン 1653)
 21:32
2.3.0.173
(リビジョン 1651)
 26:11
2.3.0.172
(リビジョン 1650)
 27:27
2.3.0.171
(リビジョン 1647)
 28:06
2.3.0.170
(リビジョン 1643)
 19:07
2.3.0.169
(リビジョン 1642)
 21:30
2.3.0.168
(リビジョン 1641)
 21:46
2.3.0.167
(リビジョン 1640)
 19:48
2.3.0.166
(リビジョン 1639)
 20:17
2.3.0.165
(リビジョン 1630)
 22:04
2.3.0.164
(リビジョン 1628)
 24:32
2.3.0.163
(リビジョン 1627)
 59:11
2.3.0.162
(リビジョン 1624)
 16:47
2.3.0.158
(リビジョン 1623)
 17:52
2.3.0.157
(リビジョン 1622)
 18:58
2.3.0.156
(リビジョン 1621)
 19:11
2.3.0.155
(リビジョン 1620)

StylePriorityPage.aspx.cs

gendarme   2 violations
37
Medium
Severity Medium
Class AvoidVisibleFieldsRule
Detail This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
AvoidVisibleFieldsRule - This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
Solution: Use a property or method instead.
Confidence: Total
54
High
Severity High
Class DoNotHardcodePathsRule
Detail This string looks like a path that may become invalid if the code is executed on a different operating system.
DoNotHardcodePathsRule - This string looks like a path that may become invalid if the code is executed on a different operating system.
Solution: Use System.IO.Path and System.Environment to generate paths instead of hardcoding them.
Confidence: Normal

File: StylePriorityPage.aspx.cs Lines 28 to 62
28
29    /// <summary>
30    /// <see cref="StyleUtility"/> で優先的なスタイルシートを読み込むテストです。
31    /// </summary>
32    public partial class StylePriorityPage :
33        System.Web.UI.Page
34    {
35        /// <summary>
36        /// インスタンスを作成します。
Visual Studio 2010
Type Class Description
gendarme AvoidVisibleFieldsRule This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
37
Type Class Description
gendarme AvoidVisibleFieldsRule This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
        /// </summary>
38        public StylePriorityPage()
39        {
40            // AVOID
41        }
42
43        /// <summary>
44        /// <see cref="Control.Load" /> イベントを発生させます。
45        /// </summary>
46        /// <param name="e">
47        /// イベント データを格納している <see cref="EventArgs" /> オブジェクト。
48        /// </param>
49        protected override void OnLoad(EventArgs e)
50        {
51            // 親を呼び出す
52            base.OnLoad(e);
53
Visual Studio 2010
Type Class Description
gendarme DoNotHardcodePathsRule This string looks like a path that may become invalid if the code is executed on a different operating system.
54
Type Class Description
gendarme DoNotHardcodePathsRule This string looks like a path that may become invalid if the code is executed on a different operating system.
            StyleUtility.RegisterClientStyleUrl(
55                this,
56                GetType(),
57                "CSS",
58                "~/Styles/test-block-2.css",
59                true);
60        }
61    }
62}
 

Sources/WebApplication/UI/StylePriorityPage.aspx.cs

gendarme   2 violations
Visual Studio 201037
Medium
Severity Medium
Class AvoidVisibleFieldsRule
Detail This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
AvoidVisibleFieldsRule - This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
Solution: Use a property or method instead.
Confidence: Total
Visual Studio 201054
High
Severity High
Class DoNotHardcodePathsRule
Detail This string looks like a path that may become invalid if the code is executed on a different operating system.
DoNotHardcodePathsRule - This string looks like a path that may become invalid if the code is executed on a different operating system.
Solution: Use System.IO.Path and System.Environment to generate paths instead of hardcoding them.
Confidence: Normal

File: StylePriorityPage.aspx.cs Lines 28 to 62
28
29    /// <summary>
30    /// <see cref="StyleUtility"/> で優先的なスタイルシートを読み込むテストです。
31    /// </summary>
32    public partial class StylePriorityPage :
33        System.Web.UI.Page
34    {
35        /// <summary>
36        /// インスタンスを作成します。
Visual Studio 2010
Type Class Description
gendarme AvoidVisibleFieldsRule This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
37
Type Class Description
gendarme AvoidVisibleFieldsRule This type contains visible instance fields. A field should be an implementation detail and encapsulated within a property or method.
        /// </summary>
38        public StylePriorityPage()
39        {
40            // AVOID
41        }
42
43        /// <summary>
44        /// <see cref="Control.Load" /> イベントを発生させます。
45        /// </summary>
46        /// <param name="e">
47        /// イベント データを格納している <see cref="EventArgs" /> オブジェクト。
48        /// </param>
49        protected override void OnLoad(EventArgs e)
50        {
51            // 親を呼び出す
52            base.OnLoad(e);
53
Visual Studio 2010
Type Class Description
gendarme DoNotHardcodePathsRule This string looks like a path that may become invalid if the code is executed on a different operating system.
54
Type Class Description
gendarme DoNotHardcodePathsRule This string looks like a path that may become invalid if the code is executed on a different operating system.
            StyleUtility.RegisterClientStyleUrl(
55                this,
56                GetType(),
57                "CSS",
58                "~/Styles/test-block-2.css",
59                true);
60        }
61    }
62}