From d129a884d7871d86b89422b2233d616ad540cb94 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 18 Jul 2020 23:33:00 +0900 Subject: [PATCH] Enable `Lint/UnifiedInteger` cop Follow up #2038 and #2081. This PR enables `Lint/UnifiedInteger` cop. --- .rubocop.yml | 4 ---- script/txt2html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c88ba1fe40..e537a24eae 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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 diff --git a/script/txt2html b/script/txt2html index fa7411ed22..51f835caea 100755 --- a/script/txt2html +++ b/script/txt2html @@ -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)