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

Lint script files. #3944

Merged
merged 5 commits into from
Jul 6, 2021
Merged

Lint script files. #3944

merged 5 commits into from
Jul 6, 2021

Conversation

jeschkies
Copy link
Contributor

What this PR does / why we need it:
This patch adds a Drone CI step that runs shellcheck on all Bash script
files.

This patch adds a Drone CI step that runs shellcheck on all Bash script
files.
@CLAassistant
Copy link

CLAassistant commented Jul 5, 2021

CLA assistant check
All committers have signed the CLA.

- name: shellcheck
image: koalaman/shellcheck-alpine:stable
commands:
- apk add make bash && make lint-scripts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've follow the pattern make lint-jsonnet and make lint-markdown. However, it would be easier to just have a shellcheck script file and avoid installing make and bash here.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 0cde54c into grafana:main Jul 6, 2021
@jeschkies jeschkies deleted the karsten/shellcheck branch July 6, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants