Skip to content

Commit

Permalink
Enable Lint/UnifiedInteger cop
Browse files Browse the repository at this point in the history
Follow up #2038 and #2081.

This PR enables `Lint/UnifiedInteger` cop.
  • Loading branch information
koic committed Jul 18, 2020
1 parent 4719b57 commit d129a88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ Lint/AmbiguousBlockAssociation:
Description: This cop checks for ambiguous block association with method when param passed without parentheses.
Enabled: false

Lint/UnifiedInteger:
Description: This cop checks for using Fixnum or Bignum constant.
Enabled: false

Metrics/AbcSize:
Description: This cop checks that the ABC size of methods is not higher than the configured maximum.
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion script/txt2html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require File.dirname(__FILE__) + '/../lib/faker/version.rb'
version = Faker::VERSION
download = 'http://rubyforge.org/projects/faker'

class Fixnum
class Integer
def ordinal
# teens
return 'th' if (10..19).cover?(self % 100)
Expand Down

0 comments on commit d129a88

Please sign in to comment.