未验证 提交 19b4ff47 编写于 作者: S Sing_chan 提交者: GitHub

【code format check upgrade】 step1:cpplint (#43175)

* test=document_fix

* cpplint set version 1.6.0;test=document_fix
上级 e8605381
#!/bin/bash #!/bin/bash
TOTAL_ERRORS=0 TOTAL_ERRORS=0
readonly VERSION="1.6.0"
version=$(cpplint --version)
if [[ ! $TRAVIS_BRANCH ]]; then if [[ ! $TRAVIS_BRANCH ]]; then
# install cpplint on local machine. # install cpplint on local machine.
if [[ ! $(which cpplint) ]]; then if ! [[ $version == *"$VERSION"* ]]; then
pip install cpplint pip install cpplint==1.6.0
fi fi
# diff files on local machine. # diff files on local machine.
files=$(git diff --cached --name-status | awk '$1 != "D" {print $2}') files=$(git diff --cached --name-status | awk '$1 != "D" {print $2}')
......
...@@ -10,7 +10,7 @@ readonly VERSION="2.12.0" ...@@ -10,7 +10,7 @@ readonly VERSION="2.12.0"
version=$(pylint --version | grep 'pylint') version=$(pylint --version | grep 'pylint')
if ! [[ $version == *"$VERSION"* ]]; then if ! [[ $version == *"$VERSION"* ]]; then
pip install pylint==2.12.0 1>nul pip install pylint==2.12.0
fi fi
# The trick to remove deleted files: https://stackoverflow.com/a/2413151 # The trick to remove deleted files: https://stackoverflow.com/a/2413151
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册