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

Put ${INPUT_RUBOCOP_FLAGS} at the end of the other flags #120

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

moznion
Copy link
Contributor

@moznion moznion commented Aug 21, 2024

Since PR #103 introduced the default --fail-level flag, the severity level has become unchangeable due to this modification.
Ideally, this flag (and others) should be overridable, but the RuboCop command prioritizes the flags that are specified last. This commit moves the user-specified flags to the end of the hard-coded flags, allowing them to be overridden.

rel: https://github.com/reviewdog/action-rubocop/pull/103/files#r1724248253

Since PR reviewdog#103 introduced the default --fail-level flag,
the severity level has become unchangeable due to this
modification.
Ideally, this flag (and others) should be overridable,
but the RuboCop command prioritizes the flags that are
specified last. This commit moves the user-specified
flags to the end of the hard-coded flags, allowing them
to be overridden.

Signed-off-by: moznion <[email protected]>
@ohbarye
Copy link
Member

ohbarye commented Aug 21, 2024

@moznion Thank you for your contribution.

As stated in https://github.com/reviewdog/action-rubocop/pull/103/files#r1724248253, I wonder if the added --fail-level error is intentional. Anyway, I believe INPUT_RUBOCOP_FLAGS should be prioritized so I'm merging this one.

@ohbarye ohbarye merged commit a162a8e into reviewdog:master Aug 21, 2024
8 checks passed
Copy link
Contributor

🚀 [bumpr] Bumped! New version:v2.18.1 Changes:v2.18.0...v2.18.1

@review-dog
Copy link
Member

Hi, @moznion! We merged your PR to reviewdog! 🐶
Thank you for your contribution! ✨

We just invited you to join the @reviewdog organization on GitHub.
Accept the invite by visiting https://github.com/orgs/reviewdog/invitation.
By joining the team, you'll be a part of reviewdog community and can help the maintenance of reviewdog.

Thanks again!

@moznion moznion deleted the make_rubocop_flag_overridable branch August 21, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants