Add dangling commas

Ensure multiline object and array litterals are consistenly typed out
with dangling commas for the last element.
This commit is contained in:
Hornwitser committed 2020-06-17 20:59:37 +02:00
1 parent 3e4f0b6b5e
commit 8cb21c5fa8
16 files changed
+69 -69

No files matched your search

+14 -14
View File
@@ -11,7 +11,7 @@ let testLines = new Map([
level: "Info",
file: "RemoteCommandProcessor.cpp:131",
message: "Starting RCON interface at port 4000",
}
},
],
[
" 0.622 Warning FileUtil.cpp:527: test not found; using test.zip",
@@ -22,7 +22,7 @@ let testLines = new Map([
level: "Warning",
file: "FileUtil.cpp:527",
message: "test not found; using test.zip",
}
},
],
[
" 0.554 Error Main.cpp:839: require_user_verification must be enabled for public games.",
@@ -33,7 +33,7 @@ let testLines = new Map([
level: "Error",
file: "Main.cpp:839",
message: "require_user_verification must be enabled for public games.",
}
},
],
[
" 640.910 Quitting: remote-quit.",
@@ -42,7 +42,7 @@ let testLines = new Map([
time: "640.910",
type: "generic",
message: "Quitting: remote-quit.",
}
},
],
[
"1641.421 Goodbye",
@@ -51,7 +51,7 @@ let testLines = new Map([
time: "1641.421",
type: "generic",
message: "Goodbye",
}
},
],
[
"2019-01-20 10:30:04 [JOIN] User joined the game",
@@ -61,7 +61,7 @@ let testLines = new Map([
type: "action",
action: "JOIN",
message: "User joined the game",
}
},
],
[
"2019-01-20 10:30:07 [CHAT] User: chat message",
@@ -71,7 +71,7 @@ let testLines = new Map([
type: "action",
action: "CHAT",
message: "User: chat message",
}
},
],
[
"2019-01-20 10:30:14 [COMMAND] User (command): blah",
@@ -81,7 +81,7 @@ let testLines = new Map([
type: "action",
action: "COMMAND",
message: "User (command): blah",
}
},
],
[
"2019-01-20 10:30:14 Cannot execute command. Error: [string \"blah\"]:1: syntax error near <eof>",
@@ -90,7 +90,7 @@ let testLines = new Map([
time: "2019-01-20 10:30:14",
type: "generic",
message: "Cannot execute command. Error: [string \"blah\"]:1: syntax error near <eof>",
}
},
],
[
"2019-01-20 10:30:21 [LEAVE] User left the game",
@@ -100,7 +100,7 @@ let testLines = new Map([
type: "action",
action: "LEAVE",
message: "User left the game",
}
},
],
[
"Error while running event level::on_nth_tick(1)",
@@ -108,7 +108,7 @@ let testLines = new Map([
format: "none",
type: "generic",
message: "Error while running event level::on_nth_tick(1)",
}
},
],
[
"4802.763 Info AppManager.cpp:287: Saving to _autosave4 (blocking).",
@@ -119,7 +119,7 @@ let testLines = new Map([
level: "Info",
file: "AppManager.cpp:287",
message: "Saving to _autosave4 (blocking).",
}
},
],
[
" 10.806 Info AppManager.cpp:394: Saving game as C:\\factorio\\saves\\world.zip",
@@ -130,7 +130,7 @@ let testLines = new Map([
level: "Info",
file: "AppManager.cpp:394",
message: "Saving game as C:\\factorio\\saves\\world.zip",
}
},
],
[
"4202.780 Info AppManagerStates.cpp:1802: Saving finished",
@@ -141,7 +141,7 @@ let testLines = new Map([
level: "Info",
file: "AppManagerStates.cpp:1802",
message: "Saving finished",
}
},
],
]);