Skip to content

Commit 17021d7

Browse files
author
never112
committed
feat: add config linter
1 parent fe3e610 commit 17021d7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

config/.image/confcheck.Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ RUN jsonlint -v
4343

4444

4545
# SSH config
46-
46+
RUN mkdir -p /root/.ssh && chown -R root /root/.ssh/ && chgrp -R root /root/.ssh/ \
47+
&& git config --global url."[email protected]:".insteadOf https://github.com/ \
48+
&& git config --global url."git://".insteadOf https://
49+
COPY deploy/config /root/.ssh/config
50+
COPY deploy/github-known-hosts /github_known_hosts
4751

4852
# set go proxy and private repo
53+
RUN go env -w GOPROXY=https://goproxy.cn,direct \
54+
&& go env -w GOPRIVATE=github.com/qbox,qiniu.com
4955

50-
51-
#ENTRYPOINT ["java","-cp /source/p3c/p3c-pmd/target/p3c-pmd-2.1.1-jar-with-dependencies.jar net.sourceforge.pmd.PMD -f emacs -R rulesets/java/ali-comment.xml,rulesets/java/ali-concurrent.xml,rulesets/java/ali-constant.xml,rulesets/java/ali-exception.xml,rulesets/java/ali-flowcontrol.xml,rulesets/java/ali-naming.xml,rulesets/java/ali-oop.xml,rulesets/java/ali-orm.xml,rulesets/java/ali-other.xml,rulesets/java/ali-set.xml -d ./sourcecode"]
52-
53-
#ENTRYPOINT ["yamllint", "/github/workspace"]
54-
55-
56-
#EXPOSE 8888
56+
EXPOSE 8888

config/config.example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ customLinters:
197197
- "--"
198198
args:
199199
- |
200-
yamllint -d ./
200+
yamllint ./ -f parsable -s --no-warnings -d "{extends: relaxed, rules: {line-length: {max: 120}}}"
201201
kubernetesAsRunner:
202202
namespace: "reviewbot"
203203
image: "aslan-spock-register.qiniu.io/reviewbot/base:go1.22.3-confcheck"

0 commit comments

Comments
 (0)