-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
use fixed staticcheck version #64
Conversation
shmokmt
commented
Oct 25, 2024
•
edited
Loading
edited
- close Do not use latest staticcheck version (or/and support specifying staticcheck version) #17
- an example PR: chore(deps): update staticcheck to 2024.1.1 #65
afbd8a7
to
e167bbe
Compare
0856fd8
to
786a1ce
Compare
@@ -32,3 +32,29 @@ jobs: | |||
branch: depup/reviewdog | |||
base: master | |||
labels: "bump:minor" | |||
|
|||
staticcheck: |
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.
Since there are too many parameters, it seemed difficult to write them all together using a GitHub Actions matrix 💦
In this case, It's better to write naively.
@kstiehl |
@@ -7,13 +7,15 @@ TEMP_PATH="$(mktemp -d)" | |||
PATH="${TEMP_PATH}:$PATH" | |||
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" | |||
|
|||
STATICCHECK_VERSION="2024.1.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.
This is the latest version
https://github.com/dominikh/go-tools/releases
Will do later today |
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.
Thank you for your work!
I'm sorry for very late reply and review.
Can you fix the problems I mentioned in this review?
Also, this change has not been released yet, actually.
We need to tag PR with bumpr tag before merting PR to release the changes.
echo '::endgroup::' | ||
|
||
|
||
echo '::group:: Running staticcheck with reviewdog 🐶 ...' | ||
staticcheck ${INPUT_STATICCHECK_FLAGS} -f=json ${INPUT_TARGET:-.} \ | ||
staticcheck "${INPUT_STATICCHECK_FLAGS}" -f=json "${INPUT_TARGET:-.}" \ |
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.
Please unquote INPUT_STATICCHECK_FLAGS and INPUT_TARGET.
Space in these env vars should be treated as-is.
You can ignore shellcheck warning.
@@ -22,7 +24,7 @@ staticcheck ${INPUT_STATICCHECK_FLAGS} -f=json ${INPUT_TARGET:-.} \ | |||
-filter-mode="${INPUT_FILTER_MODE}" \ | |||
-fail-on-error="${INPUT_FAIL_ON_ERROR}" \ | |||
-level="${INPUT_LEVEL}" \ | |||
${INPUT_REVIEWDOG_FLAGS} | |||
"${INPUT_REVIEWDOG_FLAGS}" |
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.
ditto.
Yes, of course! |
Space in these env vars should be treated as-is #64 (comment)
@haya14busa |