@@ -198,7 +198,7 @@ public ScriptChecker(string script)
198
198
/// <param name="message">The warning message.</param>
199
199
/// <param name="start">The starting character index.</param>
200
200
/// <param name="end">The ending character index.</param>
201
- public void Warn ( List < ScriptWarning > warnType , int line , string key , string message , int start , int end )
201
+ public static void Warn ( List < ScriptWarning > warnType , int line , string key , string message , int start , int end )
202
202
{
203
203
foreach ( ScriptWarning warning in warnType )
204
204
{
@@ -257,18 +257,18 @@ public string CleanScriptForYAMLProcessing()
257
257
{
258
258
int dashIndex = Lines [ i ] . IndexOf ( '-' ) ;
259
259
result . Append ( Lines [ i ] . Substring ( 0 , dashIndex + 1 ) ) . Append ( " ^1^" ) ;
260
- result . Append ( Lines [ i ] [ ( dashIndex + 1 ) ..] . Replace ( ": " , "<&co>" ) . Replace ( "#" , "<&ns>" ) ) . Append ( " \n " ) ;
260
+ result . Append ( Lines [ i ] [ ( dashIndex + 1 ) ..] . Replace ( ": " , "<&co>" ) . Replace ( "#" , "<&ns>" ) ) . Append ( ' \n ' ) ;
261
261
}
262
262
else if ( line . EndsWith ( ":" ) && ! line . StartsWith ( "-" ) )
263
263
{
264
- result . Append ( Lines [ i ] . Replace ( "*" , "asterisk" ) . Replace ( "." , "dot" ) ) . Append ( " \n " ) ;
264
+ result . Append ( Lines [ i ] . Replace ( "*" , "asterisk" ) . Replace ( "." , "dot" ) ) . Append ( ' \n ' ) ;
265
265
}
266
266
else
267
267
{
268
- result . Append ( Lines [ i ] ) . Append ( " \n " ) ;
268
+ result . Append ( Lines [ i ] ) . Append ( ' \n ' ) ;
269
269
}
270
270
}
271
- result . Append ( " \n " ) ;
271
+ result . Append ( ' \n ' ) ;
272
272
return result . ToString ( ) ;
273
273
}
274
274
@@ -1331,7 +1331,7 @@ public static string SeparateSwitches(string eventLine, out List<KeyValuePair<st
1331
1331
}
1332
1332
else
1333
1333
{
1334
- output . Append ( part ) . Append ( " " ) ;
1334
+ output . Append ( part ) . Append ( ' ' ) ;
1335
1335
}
1336
1336
}
1337
1337
return output . ToString ( ) . Trim ( ) ;
@@ -1347,7 +1347,7 @@ public static string SeparateSwitches(string eventLine, out List<KeyValuePair<st
1347
1347
/// </summary>
1348
1348
/// <param name="line">The line to check.</param>
1349
1349
/// <returns>The match range, or null.</returns>
1350
- public Range ? ContainsObjectNotation ( string line )
1350
+ public static Range ? ContainsObjectNotation ( string line )
1351
1351
{
1352
1352
int first = line . Length ;
1353
1353
int last = - 1 ;
@@ -1608,7 +1608,7 @@ public Dictionary<LineTrackedString, object> GatherActualContainers()
1608
1608
/// <summary>
1609
1609
/// Helper method to determine whether a section key that looks like it might have been meant as a command should actually show a warning or not.
1610
1610
/// </summary>
1611
- public bool CanWarnAboutCommandMissingDash ( string [ ] args , Dictionary < LineTrackedString , object > currentRootSection )
1611
+ public static bool CanWarnAboutCommandMissingDash ( string [ ] args , Dictionary < LineTrackedString , object > currentRootSection )
1612
1612
{
1613
1613
string cmdName = args [ 0 ] . ToLowerFast ( ) ;
1614
1614
if ( ! ( args . Length == 1 ? CommandsWithColonsButNoArguments : CommandsWithColonsAndArguments ) . Contains ( cmdName ) )
0 commit comments