aboutsummaryrefslogtreecommitdiff
path: root/.luacov
blob: 422783b858050065a16edb241fc498e6fd7ac36d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- Configuration file for LuaCov

local source = require("lfs").currentdir()

local function pesc(s)
  assert(type(s) == 'string', s)
  return s:gsub('[%(%)%.%%%+%-%*%?%[%]%^%$]', '%%%1')
end

return {
  include = {
    -- Absolute paths (starting with source dir, not hidden (i.e. .deps)).
    pesc(source) .. "[/\\][^.].+",
    -- Relative (non-hidden) paths.
    '^[^/\\.]',
  },
}

-- vim: ft=lua tw=80 sw=2 et