-
Notifications
You must be signed in to change notification settings - Fork 580
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
.coafile: Add ShellCheckBear #2385
Conversation
Comment on 77d9829, file .ci/env_variables.sh, line 1. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 2. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 3. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
fe33730
to
870f058
Compare
Comment on 64e11fb, file .ci/env_variables.sh, line 1. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 64e11fb, file .ci/env_variables.sh, line 2. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 64e11fb, file .ci/env_variables.sh, line 3. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 1. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 2. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 3. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
870f058
to
03c39a2
Compare
Comment on 77d9829, file .ci/env_variables.sh, line 1. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 2. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
Comment on 77d9829, file .ci/env_variables.sh, line 3. Declare and assign separately to avoid masking return values. [SC2155] Origin: ShellCheckBear, Section: |
86c10d7
to
105d991
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM 👍 , one thing again, could you squash your commits into one commit (.coafile: Add ShellCheckBear
), since they're still in the same topic
@refeed, Thank you for your review. As you can see the commit body's comment, I have mentioned that the file inside .ci was modified as per |
Ahh, makes sense, I thought |
.ci/package.json.jinja2
Outdated
@@ -3,4 +3,3 @@ | |||
"version": "{{version}}", | |||
"dependencies": {{dependencies | jsonify(indent=4, sort_keys=True)}} | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not related with #2320 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Should I make it newcomer issue or keep it here? I found this while I was modifying shell scripts in .ci
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, I think a newcomer issue would be fine for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done #2388
d54a65b
to
05c375e
Compare
05c375e
to
48f98fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, where is the line that does:
Also, add `shellcheck` as prerequisite
for CircleCI.
@refeed, good catch 😉. I just removed that line before your comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.ci/deps.r.sh
Outdated
@@ -2,7 +2,7 @@ set -e | |||
set -x | |||
|
|||
# R commands | |||
echo '.libPaths( c( "'"$R_LIB_USER"'", .libPaths()) )' >> .Rprofile | |||
echo 'options(repos=structure(c(CRAN="http://cran.rstudio.com")))' >> .Rprofile | |||
echo '.libPaths( c( "'"$R_LIB_USER"'", .libPaths()) )' >>.Rprofile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm. I find this style very jarring.
can it be disabled?
@yukiisbored your opinion on this rule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have much knowledge about these R
stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isnt R.
All >> foo
are being forced to be >>foo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you find a rule to ignore these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood.
Actually, this was not done by shellcheck
but by the shfmt
.
can it be disabled?
I can revert these changes. 😃
.ci/deps.pip.sh
Outdated
@@ -5,13 +5,13 @@ TERM=dumb | |||
|
|||
# Choose the python versions to install deps for | |||
case $CIRCLE_NODE_INDEX in | |||
0) dep_versions=( "3.4.3" "3.5.1" ) ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all this circle stuff will go with the circle-ci patch.
but that might take a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I keep this file or remove all changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put it on the ignore list.
.ci/check_maintainership.sh
Outdated
@@ -8,6 +8,6 @@ source ../rultor_secrets.sh | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this script will be removed as part of see #2410
should happen quickly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I remove any changes from this file? @jayvdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is fixed; rebase and this file disappears
d0c74f8
to
0b67368
Compare
.ci/deps.apt.sh
Outdated
@@ -19,7 +19,7 @@ case $CIRCLE_BUILD_IMAGE in | |||
# Use xenial, needed to replace outdated julia provided by Circle CI | |||
ADD_APT_UBUNTU_RELEASE=xenial | |||
# Work around lack of systemd on trusty, which xenial's lxc-common expects | |||
echo '#!/bin/sh' | sudo tee /usr/bin/systemd-detect-virt > /dev/null | |||
echo '#!/bin/sh' | sudo tee /usr/bin/systemd-detect-virt >/dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cant we ignore the rule that causes this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
This add a `bash` section and `bash` as default `shell` in `.coafile`. Closes coala#2320
Give coala's shell scripts a standard. Modify .sh files using `shfmt -i 2 -ci` from https://github.com/mvdan/sh#shfmt. This changes shell scripts according to Google's guide. Closes coala#2320
0b67368
to
b650a4b
Compare
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
This add a
bash
section andbash
as default
shell
in.coafile
.Closes #2320
For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!
Checklist
them.
individually. It is not sufficient to have "fixup commits" on your PR,
our bot will still report the issues for the previous commit.) You will
likely receive a lot of bot comments and build failures if coala does not
pass on every single commit!
After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.
Please consider helping us by reviewing other peoples pull requests as well:
corobo mark wip <URL>
to get it outof the review queue.
The more you review, the more your score will grow at coala.io and we will
review your PRs faster!