@@ -1079,7 +1079,7 @@ Codes: true
1079
1079
1080
1080
it (" uses exclude_files option" , function ()
1081
1081
assert .equal (([[
1082
- Checking spec/samples/argparse.lua 6 warnings
1082
+ Checking spec/samples/argparse.lua 7 warnings
1083
1083
Checking spec/samples/compat.lua 4 warnings
1084
1084
Checking spec/samples/custom_std_inline_options.lua 3 warnings / 1 error
1085
1085
Checking spec/samples/global_inline_options.lua 3 warnings
@@ -1092,14 +1092,14 @@ Checking spec/samples/redefined.lua 7 warnings
1092
1092
Checking spec/samples/unused_code.lua 9 warnings
1093
1093
Checking spec/samples/unused_secondaries.lua 4 warnings
1094
1094
1095
- Total: 53 warnings / 4 errors in 14 files
1095
+ Total: 54 warnings / 4 errors in 14 files
1096
1096
]] ):gsub (" (spec/samples)/" , " %1" .. package.config :sub (1 , 1 )),
1097
1097
get_output " spec/samples --config=spec/configs/exclude_files_config.luacheckrc -qq" )
1098
1098
end )
1099
1099
1100
1100
it (" loads exclude_files option correctly from upper directory" , function ()
1101
1101
assert .equal ([[
1102
- Checking argparse.lua 6 warnings
1102
+ Checking argparse.lua 7 warnings
1103
1103
Checking compat.lua 4 warnings
1104
1104
Checking custom_std_inline_options.lua 3 warnings / 1 error
1105
1105
Checking global_inline_options.lua 3 warnings
@@ -1112,13 +1112,13 @@ Checking redefined.lua 7 warnings
1112
1112
Checking unused_code.lua 9 warnings
1113
1113
Checking unused_secondaries.lua 4 warnings
1114
1114
1115
- Total: 53 warnings / 4 errors in 14 files
1115
+ Total: 54 warnings / 4 errors in 14 files
1116
1116
]] , get_output (" . --config=spec/configs/exclude_files_config.luacheckrc -qq" , " spec/samples/" ))
1117
1117
end )
1118
1118
1119
1119
it (" combines excluded files from config and cli" , function ()
1120
1120
assert .equal ([[
1121
- Checking argparse.lua 6 warnings
1121
+ Checking argparse.lua 7 warnings
1122
1122
Checking compat.lua 4 warnings
1123
1123
Checking custom_std_inline_options.lua 3 warnings / 1 error
1124
1124
Checking global_inline_options.lua 3 warnings
@@ -1129,7 +1129,7 @@ Checking redefined.lua 7 warnings
1129
1129
Checking unused_code.lua 9 warnings
1130
1130
Checking unused_secondaries.lua 4 warnings
1131
1131
1132
- Total: 45 warnings / 4 errors in 12 files
1132
+ Total: 46 warnings / 4 errors in 12 files
1133
1133
]] , get_output (" . --config=spec/configs/exclude_files_config.luacheckrc -qq --exclude-files " .. quote (" ./read*" ), " spec/samples/" ))
1134
1134
end )
1135
1135
0 commit comments