forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.reviewdog.yml
More file actions
28 lines (24 loc) · 1.05 KB
/
Copy path.reviewdog.yml
File metadata and controls
28 lines (24 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
runner:
cppcheck:
cmd: 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/ || true
errorformat:
- "%f:%l:%c: %m"
level: warning
luac:
cmd: find data/ -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