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

Run shellcheck #537

Merged
merged 2 commits into from
Sep 24, 2020
Merged

Run shellcheck #537

merged 2 commits into from
Sep 24, 2020

Conversation

axic
Copy link
Member

@axic axic commented Sep 21, 2020

Uses https://github.com/koalaman/shellcheck.

Should consider just installing shellcheck and not using the orb.

circle.yml Outdated
@@ -1,5 +1,8 @@
version: 2.1

orbs:
shellcheck: circleci/[email protected]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is actually just a pip package, we should include it in cpp-build-env and make it part of the lint step.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a pip package, but added to cpp-build-env:15-lint and cpp-build-env:15-clang-10.

@codecov
Copy link

codecov bot commented Sep 21, 2020

Codecov Report

Merging #537 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #537   +/-   ##
=======================================
  Coverage   98.74%   98.74%           
=======================================
  Files          58       58           
  Lines        8765     8765           
=======================================
  Hits         8655     8655           
  Misses        110      110           

@axic axic force-pushed the shellcheck branch 3 times, most recently from 8db4920 to 74e769b Compare September 24, 2020 19:59
@axic axic requested a review from chfast September 24, 2020 19:59
circle.yml Outdated
- run:
name: "Run shellcheck"
command: |
git ls-files '*.sh' | xargs shellcheck --external-sources
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this fail on error?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I checked it with removing one quote from apply_patches.sh.

@axic axic merged commit e5025bc into master Sep 24, 2020
@axic axic deleted the shellcheck branch September 24, 2020 20:57
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.

2 participants