Skip to content

Rename shared Rubocop config#1

Open
franzliedke wants to merge 2 commits intoRagnarson:masterfrom
franzliedke:patch-1
Open

Rename shared Rubocop config#1
franzliedke wants to merge 2 commits intoRagnarson:masterfrom
franzliedke:patch-1

Conversation

@franzliedke
Copy link
Copy Markdown

Rubocop treats relative paths in shared configs differently, based on their name.

See https://docs.rubocop.org/rubocop/latest/configuration/include_exclude.html#path-relativity.

The .rubocop prefix is meant for files containing rules related to the project itself. Shared rulesets meant to be inherited should have any different prefix.

Not doing this can result in excluded paths not taking effect in projects inheriting from this config.

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.

1 participant