File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ public static string Text(string yamlText)
108
108
}
109
109
110
110
var indentation = indent . Groups [ 1 ] . Length ;
111
+ #pragma warning disable IDE0055 // Bug in Linux where IDE0055 is failing on the comments in the inline if statements
111
112
lines = lines
112
113
. Select ( ( l , num ) => l . Length == 0 ?
113
114
// Blank lines don't need to be indented.
@@ -116,6 +117,7 @@ public static string Text(string yamlText)
116
117
// However, other lines must be indented at least as much as the first line.
117
118
throw new ArgumentException ( $ "Incorrectly indented line '{ l } ', #{ num } .", nameof ( yamlText ) ) :
118
119
l . Substring ( indentation ) )
120
+ #pragma warning restore IDE0055
119
121
. ToList ( ) ;
120
122
}
121
123
Original file line number Diff line number Diff line change @@ -41,9 +41,11 @@ public YamlSerializableAttribute()
41
41
/// Use this constructor if the attribute is placed on the <see cref="StaticContext"/>.
42
42
/// </summary>
43
43
/// <param name="serializableType">The type for which to include static code generation.</param>
44
+ #pragma warning disable IDE0055 // Bug in Linux where IDE0055 is failing on the pragma warning disable IDE0060
44
45
#pragma warning disable IDE0060
45
46
public YamlSerializableAttribute ( Type serializableType )
46
47
#pragma warning restore IDE0060
48
+ #pragma warning restore IDE0055
47
49
{
48
50
}
49
51
}
You can’t perform that action at this time.
0 commit comments