Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shellcheck tools and modify copyright hook #27722

Merged
merged 15 commits into from
Oct 13, 2020

Conversation

gongweibao
Copy link
Contributor

@gongweibao gongweibao commented Sep 29, 2020

PR types

New features

PR changes

Others

Describe

  1. 以前的copyright在.sh文件中是不加的,现在加上了。Add shellcheck tools
  2. sh之前没有check,现在用shellcheck做静态检查。Modify copyright hook

How to fix large files:

#27905


COPYRIGHT = '''
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
COPYRIGHT = '''Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2016?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be replaced by the current year in running.

@@ -26,7 +26,7 @@ RUN rm -rf /temp_gcc82 && rm -rf /gcc-8.2.0.tar.xz && rm -rf /gcc-8.2.0
RUN apt-get update && \
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev openmpi-bin openmpi-doc libopenmpi-dev
xz-utils tk-dev libffi-dev liblzma-dev openmpi-bin openmpi-doc libopenmpi-dev shellcheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

除了CI上的镜像要添加shellcheck,开发镜像也要添加 @tianshuo78520a 请帮忙看下开发镜像要添加到哪里

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@gongweibao gongweibao closed this Oct 12, 2020
@gongweibao gongweibao reopened this Oct 12, 2020
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Oct 12, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Oct 12, 2020
@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Oct 12, 2020
@PaddlePaddle PaddlePaddle unlocked this conversation Oct 12, 2020
Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gongweibao gongweibao merged commit 4237fef into PaddlePaddle:develop Oct 13, 2020
@gongweibao gongweibao deleted the addshellcheck branch October 13, 2020 02:11
chen-zhiyu pushed a commit to chen-zhiyu/Paddle that referenced this pull request Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants