Skip to content

Commit

Permalink
Add missing style guide link
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Apr 10, 2020
1 parent a89546c commit 0ae2989
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 @@ -2466,6 +2466,7 @@ Style/ClassAndModuleChildren:

Style/ClassCheck:
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
StyleGuide: '#is-a-vs-kind-of'
Enabled: true
VersionAdded: '0.24'
EnforcedStyle: is_a?
Expand Down
4 changes: 4 additions & 0 deletions manual/cops_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,10 @@ Name | Default value | Configurable values
--- | --- | ---
EnforcedStyle | `is_a?` | `is_a?`, `kind_of?`

### References

* [https://rubystyle.guide#is-a-vs-kind-of](https://rubystyle.guide#is-a-vs-kind-of)

## Style/ClassMethods

Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
Expand Down

0 comments on commit 0ae2989

Please sign in to comment.