author | Kim Alvefur <zash@zash.se> |
Sat, 04 Mar 2017 20:06:29 +0100 | |
changeset 7951 | ed99a8e3c260 |
parent 7875 | 3105d35cc2c2 |
child 7952 | 8acc35b5355a |
permissions | -rw-r--r-- |
6670
e4338c0f739a
.luacheckrc: Commit initial config for luacheck
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 |
cache = true |
6989
6aae14b079d0
.luacheckrc: Whitelist import() global function
Matthew Wild <mwild1@gmail.com>
parents:
6793
diff
changeset
|
2 |
read_globals = { "prosody", "hosts", "import" } |
6670
e4338c0f739a
.luacheckrc: Commit initial config for luacheck
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 |
globals = { "_M" } |
e4338c0f739a
.luacheckrc: Commit initial config for luacheck
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 |
allow_defined_top = true |
e4338c0f739a
.luacheckrc: Commit initial config for luacheck
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 |
module = true |
e4338c0f739a
.luacheckrc: Commit initial config for luacheck
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 |
unused_secondaries = false |
e4338c0f739a
.luacheckrc: Commit initial config for luacheck
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
7 |
codes = true |
6793
e2cd5848c650
luacheckrc: Ignore unused _ENV variable
Kim Alvefur <zash@zash.se>
parents:
6753
diff
changeset
|
8 |
ignore = { "411/err", "421/err", "411/ok", "421/ok", "211/_ENV" } |
6753
2a2eb30b1ed4
luacheckrc: Allow plugins to implement functions under module.* (module.load, etc.)
Matthew Wild <mwild1@gmail.com>
parents:
6670
diff
changeset
|
9 |
|
7951
ed99a8e3c260
luacheckrc: Set max line length to 150 for now [luacheck]
Kim Alvefur <zash@zash.se>
parents:
7875
diff
changeset
|
10 |
max_line_length = 150 |
ed99a8e3c260
luacheckrc: Set max line length to 150 for now [luacheck]
Kim Alvefur <zash@zash.se>
parents:
7875
diff
changeset
|
11 |
|
7875
3105d35cc2c2
luacheckrc: Allow mutating the global prosody and hosts tables in core/ (luacheck 0.18 adds detection of indirect mutation)
Kim Alvefur <zash@zash.se>
parents:
7482
diff
changeset
|
12 |
files["core/"] = { |
3105d35cc2c2
luacheckrc: Allow mutating the global prosody and hosts tables in core/ (luacheck 0.18 adds detection of indirect mutation)
Kim Alvefur <zash@zash.se>
parents:
7482
diff
changeset
|
13 |
ignore = { "122/prosody", "122/hosts" }; |
3105d35cc2c2
luacheckrc: Allow mutating the global prosody and hosts tables in core/ (luacheck 0.18 adds detection of indirect mutation)
Kim Alvefur <zash@zash.se>
parents:
7482
diff
changeset
|
14 |
} |
6753
2a2eb30b1ed4
luacheckrc: Allow plugins to implement functions under module.* (module.load, etc.)
Matthew Wild <mwild1@gmail.com>
parents:
6670
diff
changeset
|
15 |
files["plugins/"] = { |
7482
a82f88db12f7
luacheckrc: make module a global in plugins/
Anton Shestakov <av6@dwimlabs.net>
parents:
7481
diff
changeset
|
16 |
globals = { "module" }; |
6753
2a2eb30b1ed4
luacheckrc: Allow plugins to implement functions under module.* (module.load, etc.)
Matthew Wild <mwild1@gmail.com>
parents:
6670
diff
changeset
|
17 |
} |
7479
42d8955be784
luacheckrc: Ignore assert helper functions used in tests/*
Kim Alvefur <zash@zash.se>
parents:
6989
diff
changeset
|
18 |
files["tests/"] = { |
7481
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
19 |
read_globals = { |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
20 |
"testlib_new_env", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
21 |
"assert_equal", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
22 |
"assert_table", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
23 |
"assert_function", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
24 |
"assert_string", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
25 |
"assert_boolean", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
26 |
"assert_is", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
27 |
"assert_is_not", |
2489abe342c1
luacheckrc: make test helpers read-only globals, add testlib_new_env and runtest
Anton Shestakov <av6@dwimlabs.net>
parents:
7479
diff
changeset
|
28 |
"runtest", |
7479
42d8955be784
luacheckrc: Ignore assert helper functions used in tests/*
Kim Alvefur <zash@zash.se>
parents:
6989
diff
changeset
|
29 |
}; |
42d8955be784
luacheckrc: Ignore assert helper functions used in tests/*
Kim Alvefur <zash@zash.se>
parents:
6989
diff
changeset
|
30 |
} |