-Wpedantic -Wno-newline-eof -Wno-gnu-zero-variadic-macro-arguments -Wno-gnu-folding-constant'
- ninja -C build_pedantic_clang
-lint:lua:
+lint:luacheck:
+ <<: *test_nodep
stage: test
- except:
- - master
- dependencies: [] # do not download build artifacts
script:
- - make lint-lua
- tags:
- - docker
+ - meson build_ci_luacheck
+ - ninja -C build_ci_luacheck luacheck
lint:scan-build:
<<: *test
endif
-# Lint
-message('--- lint dependencies ---')
-clangtidy = find_program('clang-tidy', required: false)
-message('-------------------------')
-if clangtidy.found()
- run_target(
- 'tidy',
- command: [
- clangtidy,
- '-quiet',
- '-p', meson.build_root(),
- ] + c_src_lint
- )
-endif
-
# Tests
subdir('tests')
)
+# Lint
+message('--- lint dependencies ---')
+clangtidy = find_program('clang-tidy', required: false)
+luacheck = find_program('luacheck', required: false)
+message('-------------------------')
+
+if clangtidy.found()
+ run_target(
+ 'tidy',
+ command: [
+ clangtidy,
+ '-quiet',
+ '-p', meson.build_root(),
+ ] + c_src_lint
+ )
+endif
+
+if luacheck.found()
+ run_target(
+ 'luacheck',
+ command: [
+ luacheck,
+ '--codes',
+ '--formatter', 'TAP',
+ ] + lua_mod_src + lua_src,
+ )
+endif
+
+
# Summary message
# NOTE: ternary operator in format() not supported
# https://github.com/mesonbuild/meson/issues/2404