diff options
| author | Ibrahim Awwal <ibrahim@volition.co> | 2025-12-10 15:52:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-10 15:52:02 -0800 |
| commit | fa5cb9b1d62a63f59e48649e478284d9fd6bb339 (patch) | |
| tree | 30f23aced409a8990c85dfd36d143907a19e4f00 /apheleia-formatters.el | |
| parent | 35ebd1b65291483fded1cb939cccfe28c9116782 (diff) | |
Pass --force-exclusion to rubocop (#380)
This make rubocop obey exclusions from config files. Otherwise, even if
a file is excluded from in .rubocop.yml, apheleia will still format it.
See
https://docs.rubocop.org/rubocop/usage/basic_usage.html#command-line-flags
Diffstat (limited to 'apheleia-formatters.el')
| -rw-r--r-- | apheleia-formatters.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el index 0cf5a93..0cfad9f 100644 --- a/apheleia-formatters.el +++ b/apheleia-formatters.el @@ -181,7 +181,8 @@ . ("python3" "-m" "json.tool" (apheleia-formatters-indent "--tab" "--indent"))) (rubocop . ("rubocop" "--stdin" filepath "-a" - "--stderr" "--format" "quiet" "--fail-level" "fatal")) + "--stderr" "--format" "quiet" "--fail-level" "fatal" + "--force-exclusion")) (ruby-standard . ("standardrb" "--stdin" filepath "--fix" "--stderr" "--format" "quiet" "--fail-level" "fatal")) (ruby-syntax-tree . ("apheleia-from-project-root" |
