-
Notifications
You must be signed in to change notification settings - Fork 712
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
Fix linter errors #2068
Fix linter errors #2068
Conversation
1b4860b
to
143d788
Compare
143d788
to
a71de01
Compare
Please don't modify tools directory in-place (it's a git tree). Also, I believe that Would you mind creating a PR to remove it in https://github.com/weaveworks/build-tools and another one to bump the git-tree (and optionally add the script to extras) in the repository? Thanks |
@iaguis ping |
4b7d5c6 Merge pull request weaveworks#59 from weaveworks/57-fix-lint-properly b7f0e69 Merge pull request weaveworks#58 from weaveworks/fix-lint 794702c Pin version of shfmt ab1b11d Fix lint 81d80f3 Merge pull request weaveworks#55 from weaveworks/lint-tf 05ad5f2 Review feedback 4c0d046 Use hclfmt to lint terraform. fd875e2 Fix test wrt shellcheck 54ec2d9 Don't capitalise error messages 19d3b6e Merge pull request weaveworks#49 from weaveworks/pin-shfmt fea98f6 Go get from the vendor dir 1d867b0 Try and vendor a specific version of shfmt 76619c2 Merge pull request weaveworks#48 from weaveworks/revert-41-user-tokens 4f96c51 Revert "Add experimental support for user tokens" d00033f Merge pull request weaveworks#41 from weaveworks/user-tokens 245ed26 Merge pull request weaveworks#47 from weaveworks/46-shfmt c1d7815 Fix shfmt error cb39746 Don't overright lint_result with 0 when shellcheck succeeds 8ab80e8 Merge pull request weaveworks#45 from weaveworks/lint 83d5bd1 getting integration/config and test shellcheck-compliant cff9ec3 Fix some shellcheck errors 7a843d6 run shellcheck as part of lint if it is installed 31552a0 removing spurious space from test 6ca7c5f Merge pull request weaveworks#44 from weaveworks/shfmt 952356d Allow lint to lint itself b7ac59c Run shfmt on all shell files in this repo 5570b0e Add shfmt formatting of shell files in lint 0a67594 fix circle build by splatting gopath permissions 354e083 Fixing lint 586060b Add experimental support for user tokens git-subtree-dir: tools git-subtree-split: 4b7d5c6
a71de01
to
d5b864c
Compare
Sorry for letting this slip through the cracks. It seems |
Hm, and now I get tons of shellcheck errors |
It seems it was added directly to the scope repo instead of adding it to the build-tools repo so we need to delete it manually.
It was removed from the build-tools repository. Add it to extra/ and fix a couple of linter errors.
4201e71
to
3bf7747
Compare
Not sure what the problem is now. The error is not very useful:
|
45dcff9
to
7d75d8e
Compare
The problems were shfmt issues. PTAL. |
@@ -26,10 +23,10 @@ infer_release_type() { | |||
setup() { | |||
# Ensure we have exactly one annotated tag pointing at HEAD | |||
HEAD_TAGS=$(git tag --points-at HEAD) | |||
TAG_COUNT=$(echo $(echo $HEAD_TAGS | wc -w)) # mac hack | |||
TAG_COUNT=$(echo "$HEAD_TAGS" | wc -w) # mac hack |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Found via shellcheck.
ca2d804
to
5cb5c7d
Compare
Thanks a lot for this @iaguis , it must have been a pain ... |
Crap, I missed there are linter fixes in |
Oh noes, I missed that too 😞 |
Again, please remember that tools is a subtree |
I will use the file version from build-tools, if the linter keeps bitching we can fix it there. |
Symptoms: the Scope URL are printed this way: ``` Weave Scope is reachable at the following URL(s): * http://10.2.2.1 172.16.28.1 172.16.28.1 192.168.99.1 192.168.35.117 172.16.28.1 172.16.28.1 192.168.122.1:4040/ ``` Regression from weaveworks#2068
@@ -2,4 +2,4 @@ | |||
|
|||
set -e | |||
|
|||
./in_parallel.sh "make RM=" $(find . -maxdepth 2 -name *.go -printf "%h\n" | sort -u | sed -n 's/\.\/\(.*\)/\1\/\1/p') | |||
./in_parallel.sh "make RM=" "$(find . -maxdepth 2 -name "./*.go" -printf "%h\n" | sort -u | sed -n 's/\.\/\(.*\)/\1\/\1/p')" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
https://github.com/koalaman/shellcheck/wiki/SC2048
We get a https://github.com/koalaman/shellcheck/wiki/SC2016
but we do mean literal backquotes.