Enable SA1113 and fix noncompliance

"Comma should be on the same line as previous parameter"
This commit is contained in:
YoshiRulz 2020-01-25 15:54:16 +10:00
parent b1e02fbdce
commit b80dd2fab7
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 4 additions and 7 deletions

View File

@ -138,8 +138,8 @@ namespace BizHawk.Client.Common
sb sb
.Append(file.Enabled ? "1" : "0") .Append(file.Enabled ? "1" : "0")
.Append(' ') .Append(' ')
.Append(PathManager.MakeRelativeTo(PathManager.MakeAbsolutePath(file.Path, "") .Append(PathManager.MakeRelativeTo(PathManager.MakeAbsolutePath(file.Path, ""),
, Path.GetDirectoryName(path))) Path.GetDirectoryName(path)))
.AppendLine(); .AppendLine();
} }
} }

View File

@ -2129,8 +2129,8 @@ namespace BizHawk.Client.EmuHawk
var message = var message =
$"Invalid file format. Reason: {ex.Message} \nForce transfer? This may cause the calculator to crash."; $"Invalid file format. Reason: {ex.Message} \nForce transfer? This may cause the calculator to crash.";
if (MessageBox.Show(message, "Upload Failed", MessageBoxButtons.YesNoCancel if (MessageBox.Show(message, "Upload Failed", MessageBoxButtons.YesNoCancel,
, MessageBoxIcon.Question) == DialogResult.Yes) MessageBoxIcon.Question) == DialogResult.Yes)
{ {
ti83.LinkPort.SendFileToCalc(File.OpenRead(ofd.FileName), false); ti83.LinkPort.SendFileToCalc(File.OpenRead(ofd.FileName), false);
} }

View File

@ -92,9 +92,6 @@
<!-- Closing parenthesis should be on line of last parameter --> <!-- Closing parenthesis should be on line of last parameter -->
<Rule Id="SA1111" Action="Hidden" /> <Rule Id="SA1111" Action="Hidden" />
<!-- Comma should be on the same line as previous parameter -->
<Rule Id="SA1113" Action="Hidden" />
<!-- Parameter list should follow declaration --> <!-- Parameter list should follow declaration -->
<Rule Id="SA1114" Action="Hidden" /> <Rule Id="SA1114" Action="Hidden" />