Skip to content

Commit

Permalink
Disable Rubocop Style/IfUnlessModifier globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanni Brasil committed Mar 27, 2023
1 parent 3ce52b2 commit 4a46759
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions lib/faker/default/internet.rb
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -607,4 +606,3 @@ def construct_email(local_part, domain_name)
end
end
end
# rubocop:enable Style/IfUnlessModifier

0 comments on commit 4a46759

Please sign in to comment.