Skip to content

Commit

Permalink
test: stylistic change for recording the warning (NFC)
Browse files Browse the repository at this point in the history
This removes the trailing `,` to allow the warnings to be listed
similarly.  This is purely a stylistic change intended to help simplify
future changes.
  • Loading branch information
compnerd committed May 9, 2021
1 parent e4dadc1 commit 7012278
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/linters/params/swift-format-official.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ const extensions = ["swift"];
function getLintParams(dir) {
const warning1 = `${join(dir, "file2.swift")}:2:22: warning: [DoNotUseSemicolons]: remove ';'`;
const warning2 = `${join(dir, "file1.swift")}:3:35: warning: [RemoveLine]: remove line break`;
const warning3 = `${join(
dir,
"file1.swift",
)}:7:1: warning: [Indentation] replace leading whitespace with 2 spaces`;
const warning3 = `${join(dir, "file1.swift")}:7:1: warning: [Indentation] replace leading whitespace with 2 spaces`;
const warning4 = `${join(dir, "file1.swift")}:7:23: warning: [Spacing]: add 1 space`;
// Files on macOS are not sorted.
const stderr =
Expand Down

0 comments on commit 7012278

Please sign in to comment.