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

use fixed staticcheck version #64

Merged
merged 3 commits into from
Oct 27, 2024
Merged

Conversation

shmokmt
Copy link
Member

@shmokmt shmokmt commented Oct 25, 2024

@shmokmt shmokmt changed the title use fixed staticcheck version WIP / use fixed staticcheck version Oct 25, 2024
@shmokmt shmokmt force-pushed the do-not-use-latest-staticcheck branch 2 times, most recently from 0856fd8 to 786a1ce Compare October 25, 2024 22:18
@@ -32,3 +32,29 @@ jobs:
branch: depup/reviewdog
base: master
labels: "bump:minor"

staticcheck:
Copy link
Member Author

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.

@shmokmt shmokmt changed the title WIP / use fixed staticcheck version use fixed staticcheck version Oct 25, 2024
@shmokmt shmokmt marked this pull request as ready for review October 25, 2024 22:24
@shmokmt shmokmt requested a review from kstiehl October 25, 2024 22:32
@shmokmt shmokmt self-assigned this Oct 25, 2024
@shmokmt
Copy link
Member Author

shmokmt commented Oct 25, 2024

@kstiehl
Could you review it when you have time?

@@ -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"
Copy link
Member Author

Choose a reason for hiding this comment

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

@kstiehl
Copy link
Member

kstiehl commented Oct 26, 2024

Will do later today

@shmokmt shmokmt merged commit 09d3c09 into master Oct 27, 2024
6 checks passed
@shmokmt shmokmt deleted the do-not-use-latest-staticcheck branch October 27, 2024 07:51
Copy link
Member

@haya14busa haya14busa left a comment

Choose a reason for hiding this comment

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

@shmokmt

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:-.}" \
Copy link
Member

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}"
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

@shmokmt
Copy link
Member Author

shmokmt commented Jan 27, 2025

@haya14busa

Can you fix the problems I mentioned in this review?

Yes, of course!
I'll make a patch.

shmokmt added a commit that referenced this pull request Jan 27, 2025
Space in these env vars should be treated as-is

#64 (comment)
@shmokmt shmokmt mentioned this pull request Jan 27, 2025
@shmokmt
Copy link
Member Author

shmokmt commented Jan 27, 2025

@haya14busa
Please review a pull request when you have time :)
#67

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.

Do not use latest staticcheck version (or/and support specifying staticcheck version)
3 participants