otclient-redemption/.reviewdog.yml
Eduardo Dantas 16b9b49107
ci: rework build workflows and vcpkg baseline (#1703)
Chores:
- Reorganized CI into reusable workflows, removed legacy workflows, added cache-cleanup and scheduled vcpkg baseline updater.
- Modernized Docker builds to multi-stage Ubuntu 24.04, added reusable Docker build and browser builder improvements.
- Refined CMake presets/toolchain defaults, exposed vcpkg baseline update, and broadened dependency platform support.
- Expanded linting/analysis configs and Lua syntax checks; updated ignore patterns for build/artifact files.

Bug Fixes:
- Various build, packaging and runtime configuration reliability fixes across Windows, Linux and macOS.
2026-05-01 19:42:53 -03:00

30 lines
1.1 KiB
YAML

---
runner:
cppcheck:
cmd: >-
bash -o pipefail -c
'cppcheck --enable=warning,style,performance,portability --suppress=missingIncludeSystem --template="{file}:{line}:{severity}:{message}" -i src/protobuf -i vcpkg -i vcpkg_installed -i build -i .git -i cmake-build-debug -i cmake-build-release --max-configs=1 -j 2 src/ 2>&1 | sed "s/:error:/:E:/;s/:warning:/:W:/;s/:style:/:I:/;s/:performance:/:I:/;s/:portability:/:I:/"'
errorformat:
- "%f:%l:%t:%m"
luacheck:
cmd: luacheck --formatter=plain --no-color --no-config --no-global \
--no-unused --no-unused-args --no-cache --no-max-line-length \
--no-max-code-line-length --no-max-string-line-length \
--no-max-comment-line-length --ignore 4 211 212 213 311 542 -d ./data/ ./modules/ || true
errorformat:
- "%f:%l:%c: %m"
level: warning
luac:
cmd: find data/ modules/ -name '*.lua' -exec sh -c 'luajit -b "$1" /dev/null' _ {} \;
errorformat:
- "%r: %f:%l: %m"
level: error
xmllint:
cmd: find data/ -name '*.xml' -exec xmllint --noout {} \;
errorformat:
- "%f:%l: %m"
level: error