Skip to content

Commit

Permalink
Add style guide link for Lint/ConstantDefinitionInBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneius committed Sep 13, 2020
1 parent dca548f commit a58e914
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 a58e914

Please sign in to comment.