Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/resources/pandoc/datadir/luacov/defaults.lua
12923 views
1
--- Default values for configuration options.
2
-- For project specific configuration create '.luacov' file in your project
3
-- folder. It should be a Lua script setting various options as globals
4
-- or returning table of options.
5
-- @class module
6
-- @name luacov.defaults
7
return {
8
9
--- Filename to store collected stats. Default: "luacov.stats.out".
10
statsfile = os.getenv("QUARTO_LUACOV") or os.getenv("PWD") .. "/luacov.stats.out",
11
12
reporter = "html",
13
reportfile = "luacov.report.html",
14
15
--- Filename to store report. Default: "luacov.report.out".
16
-- reportfile = "luacov.report.out",
17
18
--- Enable saving coverage data after every `savestepsize` lines?
19
-- Setting this flag to `true` in config is equivalent to running LuaCov
20
-- using `luacov.tick` module. Default: false.
21
tick = false,
22
23
--- Stats file updating frequency for `luacov.tick`.
24
-- The lower this value - the more frequently results will be written out to the stats file.
25
-- You may want to reduce this value (to, for example, 2) to avoid losing coverage data in
26
-- case your program may terminate without triggering luacov exit hooks that are supposed
27
-- to save the data. Default: 100.
28
savestepsize = 100,
29
30
--- Run reporter on completion? Default: false.
31
runreport = false,
32
33
--- Delete stats file after reporting? Default: false.
34
deletestats = false,
35
36
--- Process Lua code loaded from raw strings?
37
-- That is, when the 'source' field in the debug info
38
-- does not start with '@'. Default: false.
39
codefromstrings = false,
40
41
--- Lua patterns for files to include when reporting.
42
-- All will be included if nothing is listed.
43
-- Do not include the '.lua' extension. Path separator is always '/'.
44
-- Overruled by `exclude`.
45
-- @usage
46
-- include = {
47
-- "mymodule$", -- the main module
48
-- "mymodule%/.+$", -- and everything namespaced underneath it
49
-- }
50
include = {},
51
52
--- Lua patterns for files to exclude when reporting.
53
-- Nothing will be excluded if nothing is listed.
54
-- Do not include the '.lua' extension. Path separator is always '/'.
55
-- Overrules `include`.
56
exclude = {
57
-- don't include library files
58
"common/base64",
59
"common/lunacolors",
60
"common/log",
61
"pandoc/datadir/_base64",
62
"pandoc/datadir/_json",
63
-- don't include test filters
64
"tests/docs"
65
},
66
67
--- Table mapping names of modules to be included to their filenames.
68
-- Has no effect if empty.
69
-- Real filenames mentioned here will be used for reporting
70
-- even if the modules have been installed elsewhere.
71
-- Module name can contain '*' wildcard to match groups of modules,
72
-- in this case corresponding path will be used as a prefix directory
73
-- where modules from the group are located.
74
-- @usage
75
-- modules = {
76
-- ["some_rock"] = "src/some_rock.lua",
77
-- ["some_rock.*"] = "src"
78
-- }
79
modules = {},
80
81
--- Enable including untested files in report.
82
-- If `true`, all untested files in "." will be included.
83
-- If it is a table with directory and file paths, all untested files in these paths will be included.
84
-- Note that you are not allowed to use patterns in these paths.
85
-- Default: false.
86
includeuntestedfiles = false,
87
88
}
89
90