diff --git a/.rubocop.yml b/.rubocop.yml index b61f2ad0a3..2973cfe4cb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -109,3 +109,7 @@ Security/Eval: Description: The use of eval represents a serious security risk. Exclude: - 'lib/faker/default/json.rb' + +Style/IfUnlessModifier: + Description: Checks for `if` and `unless` statements that would fit on one line if written as modifier `if`/`unless`. The cop also checks for modifier `if`/`unless` lines that exceed the maximum line length. + Enabled: false diff --git a/lib/faker/default/internet.rb b/lib/faker/default/internet.rb index 3b00c8011b..0247714341 100644 --- a/lib/faker/default/internet.rb +++ b/lib/faker/default/internet.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true module Faker - # rubocop:disable Style/IfUnlessModifier class Internet < Base # Private, Host, and Link-Local network address blocks as defined in https://en.wikipedia.org/wiki/IPv4#Special-use_addresses PRIVATE_IPV4_ADDRESS_RANGES = [ @@ -607,4 +606,3 @@ def construct_email(local_part, domain_name) end end end -# rubocop:enable Style/IfUnlessModifier