Skip to content

Commit 6dd3b2c

Browse files
committed
Account for a new warning on samples/argparse.lua (in cli_spec.lua)
1 parent 4b1067a commit 6dd3b2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/cli_spec.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ Codes: true
10791079

10801080
it("uses exclude_files option", function()
10811081
assert.equal(([[
1082-
Checking spec/samples/argparse.lua 6 warnings
1082+
Checking spec/samples/argparse.lua 7 warnings
10831083
Checking spec/samples/compat.lua 4 warnings
10841084
Checking spec/samples/custom_std_inline_options.lua 3 warnings / 1 error
10851085
Checking spec/samples/global_inline_options.lua 3 warnings
@@ -1092,14 +1092,14 @@ Checking spec/samples/redefined.lua 7 warnings
10921092
Checking spec/samples/unused_code.lua 9 warnings
10931093
Checking spec/samples/unused_secondaries.lua 4 warnings
10941094
1095-
Total: 53 warnings / 4 errors in 14 files
1095+
Total: 54 warnings / 4 errors in 14 files
10961096
]]):gsub("(spec/samples)/", "%1"..package.config:sub(1, 1)),
10971097
get_output "spec/samples --config=spec/configs/exclude_files_config.luacheckrc -qq")
10981098
end)
10991099

11001100
it("loads exclude_files option correctly from upper directory", function()
11011101
assert.equal([[
1102-
Checking argparse.lua 6 warnings
1102+
Checking argparse.lua 7 warnings
11031103
Checking compat.lua 4 warnings
11041104
Checking custom_std_inline_options.lua 3 warnings / 1 error
11051105
Checking global_inline_options.lua 3 warnings
@@ -1112,13 +1112,13 @@ Checking redefined.lua 7 warnings
11121112
Checking unused_code.lua 9 warnings
11131113
Checking unused_secondaries.lua 4 warnings
11141114
1115-
Total: 53 warnings / 4 errors in 14 files
1115+
Total: 54 warnings / 4 errors in 14 files
11161116
]], get_output(". --config=spec/configs/exclude_files_config.luacheckrc -qq", "spec/samples/"))
11171117
end)
11181118

11191119
it("combines excluded files from config and cli", function()
11201120
assert.equal([[
1121-
Checking argparse.lua 6 warnings
1121+
Checking argparse.lua 7 warnings
11221122
Checking compat.lua 4 warnings
11231123
Checking custom_std_inline_options.lua 3 warnings / 1 error
11241124
Checking global_inline_options.lua 3 warnings
@@ -1129,7 +1129,7 @@ Checking redefined.lua 7 warnings
11291129
Checking unused_code.lua 9 warnings
11301130
Checking unused_secondaries.lua 4 warnings
11311131
1132-
Total: 45 warnings / 4 errors in 12 files
1132+
Total: 46 warnings / 4 errors in 12 files
11331133
]], get_output(". --config=spec/configs/exclude_files_config.luacheckrc -qq --exclude-files " .. quote("./read*"), "spec/samples/"))
11341134
end)
11351135

0 commit comments

Comments
 (0)