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

Add required Ruby version to generated cops manual #7947

Merged

Conversation

koic
Copy link
Member

@koic koic commented May 9, 2020

Follow up to #7921 (comment).

This PR adds required Ruby version to cops manual generated by rake generate_cops_documentation.


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

@@ -657,6 +657,8 @@ end

## Lint/ErbNewArguments

Required Ruby version: 2.6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have admonitions enabled and this seems like a good use for them. You can some !!! Note prefix to this to turn it into an admonition.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion! This prefix feature is what I wanted thing :-)
I updated this one. Thank you always!

Follow up to rubocop#7921 (comment).

This PR adds required Ruby version to cops manual generated by
`rake generate_cops_documentation`.
@koic koic force-pushed the add_required_ruby_version_to_cops_manual branch from 134e85d to a7e3299 Compare May 9, 2020 18:41
@bbatsov bbatsov merged commit 4a41a06 into rubocop:master May 10, 2020
@koic koic deleted the add_required_ruby_version_to_cops_manual branch May 10, 2020 05:47
koic added a commit to koic/rubocop-performance that referenced this pull request May 21, 2020
koic added a commit to koic/rubocop-rails that referenced this pull request May 21, 2020
renawatson68 added a commit to renawatson68/performance-develop-rubyonrails that referenced this pull request Sep 23, 2022
richardstewart0213 added a commit to richardstewart0213/performance-build-Performance-optimization-analysis- that referenced this pull request Nov 4, 2022
MarttiCheng added a commit to MarttiCheng/Rubocop-Performance that referenced this pull request Sep 28, 2023
SerhiiMisiura added a commit to SerhiiMisiura/Rubocop-Performance that referenced this pull request Oct 5, 2023
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.

None yet

2 participants