Compare commits
10 Commits
10d9e91c62
...
e00e6bd275
Author | SHA1 | Date | |
---|---|---|---|
e00e6bd275 | |||
97081f27ad | |||
0e135d174e | |||
fccb1bc04c | |||
866e73258c | |||
578be035a0 | |||
40fe2dbef1 | |||
d33b07f18b | |||
0815ab90d7 | |||
8b4a93f53c |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
joj3_result.json
|
74
conf.json
Normal file
74
conf.json
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
"stages": [
|
||||
{
|
||||
"name": "cppcheck",
|
||||
"executor": {
|
||||
"name": "sandbox",
|
||||
"with": {
|
||||
"default": {
|
||||
"args": [
|
||||
"bash",
|
||||
"-c",
|
||||
"cppcheck --suppress=checkersReport --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"}' --force --enable=all --quiet src/*.cpp"
|
||||
],
|
||||
"env": [
|
||||
"PATH=/usr/bin:/bin:/usr/local/bin"
|
||||
],
|
||||
"cpuLimit": 10000000000,
|
||||
"memoryLimit": 419430400,
|
||||
"procLimit": 50,
|
||||
"copyInDir": ".",
|
||||
"copyOut": [
|
||||
"stdout"
|
||||
],
|
||||
"stdin": {
|
||||
"content": ""
|
||||
},
|
||||
"stdout": {
|
||||
"name": "stdout",
|
||||
"max": 65536
|
||||
},
|
||||
"stderr": {
|
||||
"name": "stderr",
|
||||
"max": 65536
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"parser": {
|
||||
"name": "cppcheck",
|
||||
"with": {
|
||||
"score": 100,
|
||||
"matches": [
|
||||
{
|
||||
"severity": [
|
||||
"error"
|
||||
],
|
||||
"score": 5
|
||||
},
|
||||
{
|
||||
"severity": [
|
||||
"warning"
|
||||
],
|
||||
"score": 2
|
||||
},
|
||||
{
|
||||
"severity": [
|
||||
"portability",
|
||||
"performance",
|
||||
"style"
|
||||
],
|
||||
"score": 1
|
||||
},
|
||||
{
|
||||
"severity": [
|
||||
"debug"
|
||||
],
|
||||
"score": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
35
conf.toml
35
conf.toml
|
@ -1,35 +0,0 @@
|
|||
skipGitea = true
|
||||
[[stages]]
|
||||
name = "clangtidy"
|
||||
[stages.executor]
|
||||
name = "sandbox"
|
||||
[stages.executor.with.default]
|
||||
args = ["cppcheck --template='{\"file\":\"{file}\",\"line\":{line}, \"column\":{column}, \"severity\":\"{severity}\", \"message\":\"{message}\", \"id\":\"{id}\"},' --force --enable=all --quiet src/*.cpp"]
|
||||
env = ["PATH=/usr/bin:/bin:/usr/local/bin"]
|
||||
cpuLimit = 10_000_000_000
|
||||
memoryLimit = 419_430_400
|
||||
procLimit = 50
|
||||
copyInCwd = true
|
||||
copyOut = ["stdout"]
|
||||
[stages.executor.with.default.stdin]
|
||||
content = ""
|
||||
[stages.executor.with.default.stdout]
|
||||
name = "stdout"
|
||||
max = 65_536
|
||||
[stages.executor.with.default.stderr]
|
||||
name = "stderr"
|
||||
max = 65_536
|
||||
[stages.parser]
|
||||
name = "cppcheck"
|
||||
[stages.parser.with]
|
||||
score = 100
|
||||
rootdir = "/w"
|
||||
[[stages.parser.with.matches]]
|
||||
keyword = ["cppcoreguidelines-avoid-non-const-global-variables"]
|
||||
score = 5
|
||||
[[stages.parser.with.matches]]
|
||||
keyword = ["readability-identifier-length","misc-use-anonymous-namespace"]
|
||||
score = 2
|
||||
[[stages.parser.with.matches]]
|
||||
keyword = ["llvmlibc-implementation-in-namespace"]
|
||||
score = 1
|
|
@ -1 +1 @@
|
|||
[{"name":"clangtidy","results":[{"score":-185,"comment":"### Test results summary\n\n1. codequality-unchecked-malloc-result: 0\n2. codequality-no-global-variables: 0\n3. codequality-no-header-guard: 0\n4. codequality-no-fflush-stdin: 0\n5. readability-function-size: 0\n6. readability-duplicate-include: 0\n7. readability-identifier-naming: 0\n8. readability-redundant: 0\n9. readability-misleading-indentation: 0\n10. readability-misplaced-array-index: 0\n11. cppcoreguidelines-init-variables: 0\n12. bugprone-suspicious-string-compare: 0\n13. google-global-names-in-headers: 0\n14. clang-diagnostic: 1\n15. clang-analyzer: 0\n16. misc: 9\n17. performance: 5\n18. others: 185\n"}]}]
|
||||
[{"name":"cppcheck","results":[{"score":95,"comment":"### Test results summary\n\n1. error: 1\n2. warning: 0\n3. portability: 0\n4. performance: 0\n5. style: 0\n6. information: 0\n7. debug: 0\n"}],"force_quit":false}]
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include <vector>
|
||||
// #include <vector>
|
||||
|
||||
#include <gtest/test.h>
|
||||
// #include <gtest/test.h>
|
||||
|
||||
#include <something.hh>
|
||||
// #include <something.hh>
|
||||
class Date {
|
||||
// ...
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue
Block a user