Skip to content

Commit

Permalink
Merge pull request #2082 from koic/enable_unified_integer_cop
Browse files Browse the repository at this point in the history
Enable `Lint/UnifiedInteger` cop
  • Loading branch information
koic committed Jul 18, 2020
2 parents 4719b57 + d129a88 commit 68b2cf2
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 68b2cf2

Please sign in to comment.