2019-12-03 23:26:13 +00:00
|
|
|
; -*- mode: Lisp;-*-
|
|
|
|
|
|
|
|
(sources
|
2020-04-10 09:27:53 +00:00
|
|
|
/doc/stub/
|
2020-04-22 13:39:39 +00:00
|
|
|
/src/main/resources/*/computercraft/lua/bios.lua
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/
|
2019-12-07 10:33:47 +00:00
|
|
|
/src/test/resources/test-rom)
|
2019-12-03 23:26:13 +00:00
|
|
|
|
2020-04-10 09:27:53 +00:00
|
|
|
|
|
|
|
(doc
|
|
|
|
(title "CC: Tweaked")
|
|
|
|
(index doc/index.md)
|
|
|
|
(source-link https://github.com/SquidDev-CC/CC-Tweaked/blob/${commit}/${path}#L${line})
|
|
|
|
|
|
|
|
(library-path
|
|
|
|
/doc/stub/
|
|
|
|
|
2020-04-22 13:39:39 +00:00
|
|
|
/src/main/resources/*/computercraft/lua/rom/apis
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/apis/command
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/apis/turtle
|
2020-04-10 09:27:53 +00:00
|
|
|
|
2020-04-22 13:39:39 +00:00
|
|
|
/src/main/resources/*/computercraft/lua/rom/modules/main
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/modules/command
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/modules/turtle))
|
2020-04-10 09:27:53 +00:00
|
|
|
|
2019-12-03 23:26:13 +00:00
|
|
|
(at /
|
|
|
|
(linters
|
2020-04-18 09:09:40 +00:00
|
|
|
syntax:string-index
|
|
|
|
|
2019-12-10 18:54:43 +00:00
|
|
|
;; It'd be nice to avoid this, but right now there's a lot of instances of
|
|
|
|
;; it.
|
2019-12-03 23:26:13 +00:00
|
|
|
-var:set-loop
|
|
|
|
|
|
|
|
;; It's useful to name arguments for documentation, so we allow this. It'd
|
|
|
|
;; be good to find a compromise in the future, but this works for now.
|
2020-04-28 08:42:34 +00:00
|
|
|
-var:unused-arg)
|
2020-02-04 16:41:29 +00:00
|
|
|
|
2020-04-18 09:09:40 +00:00
|
|
|
(lint
|
|
|
|
(bracket-spaces
|
|
|
|
(call no-space)
|
|
|
|
(function-args no-space)
|
|
|
|
(parens no-space)
|
|
|
|
(table space)
|
2020-04-28 08:42:34 +00:00
|
|
|
(index no-space))
|
|
|
|
|
|
|
|
;; colours imports from colors, and we don't handle that right now.
|
|
|
|
;; keys is entirely dynamic, so we skip it.
|
|
|
|
(dynamic-modules colours keys)
|
|
|
|
|
|
|
|
(globals
|
|
|
|
:max
|
|
|
|
_CC_DEFAULT_SETTINGS
|
|
|
|
_CC_DISABLE_LUA51_FEATURES
|
|
|
|
;; Ideally we'd pick these up from bios.lua, but illuaminate currently
|
|
|
|
;; isn't smart enough.
|
|
|
|
sleep write printError read rs)))
|
2019-12-03 23:26:13 +00:00
|
|
|
|
2019-12-10 18:54:43 +00:00
|
|
|
;; We disable the unused global linter in bios.lua and the APIs. In the future
|
2019-12-03 23:26:13 +00:00
|
|
|
;; hopefully we'll get illuaminate to handle this.
|
|
|
|
(at
|
2020-04-22 13:39:39 +00:00
|
|
|
(/src/main/resources/*/computercraft/lua/bios.lua
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/apis/)
|
2019-12-10 18:54:43 +00:00
|
|
|
(linters -var:unused-global)
|
2020-04-10 09:27:53 +00:00
|
|
|
(lint (allow-toplevel-global true)))
|
|
|
|
|
|
|
|
;; Silence some variable warnings in documentation stubs.
|
|
|
|
(at /doc/stub
|
|
|
|
(linters -var:unused-global)
|
|
|
|
(lint (allow-toplevel-global true)))
|
2020-04-21 11:12:44 +00:00
|
|
|
|
2020-04-22 13:39:39 +00:00
|
|
|
;; Suppress warnings for currently undocumented modules.
|
2020-04-21 11:12:44 +00:00
|
|
|
(at
|
2020-05-09 07:30:55 +00:00
|
|
|
(/doc/stub/fs.lua
|
2020-04-22 13:39:39 +00:00
|
|
|
/doc/stub/http.lua
|
|
|
|
/doc/stub/os.lua
|
|
|
|
/doc/stub/term.lua
|
|
|
|
/doc/stub/turtle.lua
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/apis/io.lua
|
2020-05-15 09:03:47 +00:00
|
|
|
/src/main/resources/*/computercraft/lua/rom/apis/window.lua)
|
2020-04-22 13:39:39 +00:00
|
|
|
|
|
|
|
(linters -doc:undocumented -doc:undocumented-arg))
|
|
|
|
|
|
|
|
;; These currently rely on unknown references.
|
|
|
|
(at
|
|
|
|
(/src/main/resources/*/computercraft/lua/rom/apis/textutils.lua
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/completion.lua
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/modules/main/cc/shell/completion.lua
|
|
|
|
/src/main/resources/*/computercraft/lua/rom/programs/shell.lua)
|
|
|
|
(linters -doc:unresolved-reference))
|
2020-04-28 08:42:34 +00:00
|
|
|
|
|
|
|
(at /src/test/resources/test-rom
|
|
|
|
(lint
|
|
|
|
(globals
|
|
|
|
:max sleep write
|
|
|
|
cct_test describe expect howlci fail it pending stub)))
|