aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-28 20:52:19 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-29 04:20:44 +0000
commit847f424b8ece82ace9e01d455e0ca14627dd3553 (patch)
tree6af44f804ab5f752da53f6745d2a7b1b9b164326
parentbf35cb18afadc8499e1f7254f89e0196e3cd95b7 (diff)
downloadluarocks-847f424b8ece82ace9e01d455e0ca14627dd3553.tar.gz
luarocks-847f424b8ece82ace9e01d455e0ca14627dd3553.tar.bz2
luarocks-847f424b8ece82ace9e01d455e0ca14627dd3553.zip
do not check coverage or luacheck for vendored modules
These are treated as dependencies, and are managed and tested by upstream.
-rw-r--r--.luacheckrc4
-rw-r--r--spec/util/test_env.lua3
2 files changed, 7 insertions, 0 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 98e05c23..cf70fdf4 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -25,6 +25,10 @@ ignore = {
25 "143/table.unpack", 25 "143/table.unpack",
26} 26}
27 27
28exclude_files = {
29 "src/luarocks/vendor/**/*.lua",
30}
31
28include_files = { 32include_files = {
29 "src/luarocks/**/*.lua" 33 "src/luarocks/**/*.lua"
30} 34}
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 15aa554d..24a1de9e 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -906,6 +906,9 @@ local function create_configs()
906 return { 906 return {
907 statsfile = "%{statsfile}", 907 statsfile = "%{statsfile}",
908 reportfile = "%{reportfile}", 908 reportfile = "%{reportfile}",
909 exclude = {
910 "src%/luarocks%/vendor.+$",
911 },
909 modules = { 912 modules = {
910 ["luarocks"] = "%{luarocks_path}", 913 ["luarocks"] = "%{luarocks_path}",
911 ["luarocks-admin"] = "%{luarocks_admin_path}", 914 ["luarocks-admin"] = "%{luarocks_admin_path}",