Skip to content

Format .rubocop.yml via a rake task#9687

Merged
jekyllbot merged 1 commit intojekyll:masterfrom
ashmaroli:sort-cop-directives
Sep 20, 2024
Merged

Format .rubocop.yml via a rake task#9687
jekyllbot merged 1 commit intojekyll:masterfrom
ashmaroli:sort-cop-directives

Conversation

@ashmaroli
Copy link
Copy Markdown
Member

Summary

Add a new rake task rake rubocop:format_config to sort Cop directives alphabetically simultaneously maintain readability by separating cops of various departments with a blank line.

Limitations

  • Dumped list values do not have an indentation with respect to parent key.
  • New cop directives need to be manually pasted into the config file prior to using the rake task to sort them into appropriate locations.

@ashmaroli
Copy link
Copy Markdown
Member Author

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 94831d5 into jekyll:master Sep 20, 2024
@jekyllbot jekyllbot added the fix label Sep 20, 2024
jekyllbot added a commit that referenced this pull request Sep 20, 2024
@ashmaroli ashmaroli deleted the sort-cop-directives branch September 20, 2024 11:25
@jekyll jekyll locked and limited conversation to collaborators Sep 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants