@@ -117,7 +117,7 @@ Checking spec/samples/bad_code.lua 5 warnings
117
117
118
118
Total: 5 warnings / 0 errors in 1 file
119
119
]] , get_output " spec/samples/bad_code.lua --no-config" )
120
- assert .equal (1 , get_exitcode " spec/samples/bad_code.lua --no-config" )
120
+ assert .equal (5 , get_exitcode " spec/samples/bad_code.lua --no-config" )
121
121
end )
122
122
123
123
it (" detects whitespace issues" , function ()
@@ -135,7 +135,7 @@ Checking spec/samples/bad_whitespace.lua 8 warnings
135
135
136
136
Total: 8 warnings / 0 errors in 1 file
137
137
]] , get_output " spec/samples/bad_whitespace.lua --no-config" )
138
- assert .equal (1 , get_exitcode " spec/samples/bad_whitespace.lua --no-config" )
138
+ assert .equal (8 , get_exitcode " spec/samples/bad_whitespace.lua --no-config" )
139
139
end )
140
140
141
141
it (" works for incorrect patterns in options" , function ()
@@ -1216,11 +1216,11 @@ Critical error: Couldn't find configuration file spec/configs/config_404.luachec
1216
1216
1217
1217
describe (" overwriting" , function ()
1218
1218
it (" prioritizes CLI options over config" , function ()
1219
- assert .equal ( 1 , get_exitcode " spec/samples/compat.lua --config=spec/configs/cli_override_config.luacheckrc --new-globals foo" )
1219
+ assert .is_true ( get_exitcode " spec/samples/compat.lua --config=spec/configs/cli_override_config.luacheckrc --new-globals foo" > 0 )
1220
1220
end )
1221
1221
1222
1222
it (" prioritizes CLI options over config overrides" , function ()
1223
- assert .equal ( 1 , get_exitcode " spec/samples/compat.lua --config=spec/configs/cli_override_file_config.luacheckrc --new-globals foo" )
1223
+ assert .is_true ( get_exitcode " spec/samples/compat.lua --config=spec/configs/cli_override_file_config.luacheckrc --new-globals foo" > 0 )
1224
1224
end )
1225
1225
1226
1226
it (" concats array-like options from config and CLI" , function ()
0 commit comments