RCS0056 - roslynator_max_line_length = 180
This commit is contained in:
committed by
Matthias Mailänder
parent
822a29aa76
commit
9d5d2ab493
@@ -44,7 +44,11 @@ namespace OpenRA
|
||||
Log.Write("exception", $"Date: {DateTime.UtcNow:u}");
|
||||
Log.Write("exception", $"Operating System: {Platform.CurrentPlatform} ({Platform.CurrentArchitecture}, {Environment.OSVersion})");
|
||||
Log.Write("exception", $"Runtime Version: {Platform.RuntimeVersion}");
|
||||
Log.Write("exception", $"Installed Language: {CultureInfo.InstalledUICulture.TwoLetterISOLanguageName} (Installed) {CultureInfo.CurrentCulture.TwoLetterISOLanguageName} (Current) {CultureInfo.CurrentUICulture.TwoLetterISOLanguageName} (Current UI)");
|
||||
Log.Write("exception",
|
||||
"Installed Language: " +
|
||||
$"{CultureInfo.InstalledUICulture.TwoLetterISOLanguageName} (Installed) " +
|
||||
$"{CultureInfo.CurrentCulture.TwoLetterISOLanguageName} (Current) " +
|
||||
$"{CultureInfo.CurrentUICulture.TwoLetterISOLanguageName} (Current UI)");
|
||||
|
||||
var rpt = BuildExceptionReport(ex).ToString();
|
||||
Log.Write("exception", rpt);
|
||||
|
||||
@@ -629,7 +629,8 @@ namespace OpenRA.Support
|
||||
if (lastToken.RightOperand == token.LeftOperand)
|
||||
{
|
||||
if (lastToken.RightOperand)
|
||||
throw new InvalidDataException($"Missing value or sub-expression or there is an extra operator `{lastToken.Symbol}` at index {lastToken.Index} or `{token.Symbol}` at index {token.Index}");
|
||||
throw new InvalidDataException(
|
||||
$"Missing value or sub-expression or there is an extra operator `{lastToken.Symbol}` at index {lastToken.Index} or `{token.Symbol}` at index {token.Index}");
|
||||
throw new InvalidDataException($"Missing binary operation before `{token.Symbol}` at index {token.Index}");
|
||||
}
|
||||
}
|
||||
@@ -736,7 +737,10 @@ namespace OpenRA.Support
|
||||
return IfThenElse(expression, One, Zero);
|
||||
}
|
||||
|
||||
throw new InvalidProgramException($"Unable to convert ExpressionType.{Enum<ExpressionType>.GetValues()[(int)fromType]} to ExpressionType.{Enum<ExpressionType>.GetValues()[(int)toType]}");
|
||||
throw new InvalidProgramException(
|
||||
"Unable to convert " +
|
||||
$"ExpressionType.{Enum<ExpressionType>.GetValues()[(int)fromType]} to " +
|
||||
$"ExpressionType.{Enum<ExpressionType>.GetValues()[(int)toType]}");
|
||||
}
|
||||
|
||||
public Expression Pop(ExpressionType type)
|
||||
|
||||
Reference in New Issue
Block a user