Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Lint/UnifiedInteger cop #2082

Merged
merged 1 commit into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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