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

Allow autocorrect with display-only-fail-level-offenses #12535

Merged
merged 1 commit into from
Dec 22, 2023

Commits on Dec 13, 2023

  1. Allow autocorrect with display-only-fail-level-offenses

    The `--display-only-fail-level-offenses` option uses
    `considered_failure?` to determine what to print. The same method is
    used to determine the exit code of `rubocop`, so the two options should
    be entirely safe to use together.
    
    This change is useful when using rubocop as part of a pre-commit hook.
    When the hook fails becuase rubocop exited with a non-zero status, we
    can use `--display-only-fail-level-offenses` to avoid having the output
    cluttered up with non-blocking offenses.
    naveg committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    b695ff7 View commit details
    Browse the repository at this point in the history