diff --git a/.gitmodules b/.gitmodules index 0582607..13637d8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,7 @@ path = examples/keyword/cpplint/sillycode url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git branch = keyword/cpplint/sillycode +[submodule "examples/keyword/clang-tidy/sillycode"] + path = examples/keyword/clang-tidy/sillycode + url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git + branch = keyword/clang-tidy/sillycode diff --git a/README.md b/README.md index 3997d51..5a27e7a 100644 --- a/README.md +++ b/README.md @@ -46,27 +46,32 @@ go test -coverprofile cover.out -v ./... ? focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/pkg/healthcheck [no test files] focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/executors/dummy coverage: 0.0% of statements focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/cpplint coverage: 0.0% of statements - focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/executors/sandbox coverage: 0.0% of statements - focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/dummy coverage: 0.0% of statements - focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage coverage: 0.0% of statements focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/diff coverage: 0.0% of statements + focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage coverage: 0.0% of statements focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/pkg/dummy coverage: 0.0% of statements + focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/keyword coverage: 0.0% of statements + focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/dummy coverage: 0.0% of statements + focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/executors/sandbox coverage: 0.0% of statements focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/resultstatus coverage: 0.0% of statements === RUN TestMain -=== RUN TestMain/compile/success === RUN TestMain/compile/error -=== RUN TestMain/dummy/success -=== RUN TestMain/dummy/error +=== RUN TestMain/compile/success === RUN TestMain/cpplint/sillycode ---- PASS: TestMain (0.42s) - --- PASS: TestMain/compile/success (0.28s) - --- PASS: TestMain/compile/error (0.01s) - --- PASS: TestMain/dummy/success (0.01s) +=== RUN TestMain/dummy/error +=== RUN TestMain/dummy/success +=== RUN TestMain/keyword/clang-tidy/sillycode +=== RUN TestMain/keyword/cpplint/sillycode +--- PASS: TestMain (2.28s) + --- PASS: TestMain/compile/error (0.03s) + --- PASS: TestMain/compile/success (0.42s) + --- PASS: TestMain/cpplint/sillycode (0.14s) --- PASS: TestMain/dummy/error (0.01s) - --- PASS: TestMain/cpplint/sillycode (0.11s) + --- PASS: TestMain/dummy/success (0.01s) + --- PASS: TestMain/keyword/clang-tidy/sillycode (1.57s) + --- PASS: TestMain/keyword/cpplint/sillycode (0.11s) PASS -coverage: 72.4% of statements -ok focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/cmd/joj3 0.425s coverage: 72.4% of statements +coverage: 74.0% of statements +ok focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/cmd/joj3 2.290s coverage: 74.0% of statements ``` ### For developers diff --git a/examples/keyword/clang-tidy/sillycode b/examples/keyword/clang-tidy/sillycode new file mode 160000 index 0000000..51160e0 --- /dev/null +++ b/examples/keyword/clang-tidy/sillycode @@ -0,0 +1 @@ +Subproject commit 51160e0a0cb01159fa264435865185083d756b06