Skip to content

Commit

Permalink
Merge pull request rubocop#8711 from eugeneius/constant_definition_in…
Browse files Browse the repository at this point in the history
…_block_style_guide

Add style guide link for Lint/ConstantDefinitionInBlock
  • Loading branch information
koic committed Sep 13, 2020
2 parents dca548f + a58e914 commit 52d5c3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/default.yml
Expand Up @@ -1397,6 +1397,7 @@ Lint/CircularArgumentReference:

Lint/ConstantDefinitionInBlock:
Description: 'Do not define constants within a block.'
StyleGuide: '#no-constant-definition-in-block'
Enabled: pending
VersionAdded: '0.91'

Expand Down
4 changes: 4 additions & 0 deletions docs/modules/ROOT/pages/cops_lint.adoc
Expand Up @@ -393,6 +393,10 @@ describe 'making a request' do
end
----

=== References

* https://rubystyle.guide#no-constant-definition-in-block

== Lint/ConstantResolution

|===
Expand Down

0 comments on commit 52d5c3a

Please sign in to comment.