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

improve path cleaner #36

Merged
merged 6 commits into from
Feb 11, 2024
Merged

improve path cleaner #36

merged 6 commits into from
Feb 11, 2024

Conversation

lxxxvi
Copy link
Owner

@lxxxvi lxxxvi commented Feb 11, 2024

This PR fixes and improves Rubocop::PathCleanup.

  • It's now possible to cleanup global command patterns (i.e. bin/**/*)
  • It removes the Include: or Exclude: property if all entries have been removed
  • It removes the entire Cop if no properties are left due to cleanup
  • It adds more test cases
  • It adds the CLI option --preserve-paths if cleanup is not wanted

@lxxxvi lxxxvi merged commit 450cb9e into main Feb 11, 2024
5 of 6 checks passed
@lxxxvi lxxxvi deleted the fix-path-cleaner branch February 11, 2024 16:45
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