2016-09-27 18:48:06 +02:00
|
|
|
inherit_from:
|
2016-09-29 22:59:49 +02:00
|
|
|
- ../.rubocop_common.yml
|
2016-09-27 18:48:06 +02:00
|
|
|
- .rubocop_todo.yml
|
|
|
|
|
|
|
|
|
|
AllCops:
|
|
|
|
|
Include:
|
|
|
|
|
- '**/.simplecov'
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'cask/**/*'
|
|
|
|
|
- '**/vendor/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
|
|
|
|
|
# `formula do` uses nested method definitions
|
|
|
|
|
Lint/NestedMethodDefinition:
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'test/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
|
CountComments: false
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'cask/lib/hbc/locations.rb'
|
|
|
|
|
- 'cask/lib/hbc/macos.rb'
|
|
|
|
|
- 'cask/lib/hbc/utils.rb'
|
2016-09-27 18:48:06 +02:00
|
|
|
|
|
|
|
|
Style/BarePercentLiterals:
|
|
|
|
|
EnforcedStyle: percent_q
|
|
|
|
|
|
|
|
|
|
Style/BlockDelimiters:
|
|
|
|
|
EnforcedStyle: semantic
|
|
|
|
|
FunctionalMethods:
|
|
|
|
|
- expect
|
|
|
|
|
- find
|
|
|
|
|
- let
|
|
|
|
|
- let!
|
|
|
|
|
- subject
|
|
|
|
|
- watch
|
|
|
|
|
- inject
|
|
|
|
|
- map
|
|
|
|
|
- map!
|
|
|
|
|
- collect
|
|
|
|
|
- collect!
|
|
|
|
|
- reject
|
|
|
|
|
- reject!
|
|
|
|
|
- delete_if
|
|
|
|
|
- with_object
|
|
|
|
|
- popen_read
|
|
|
|
|
ProceduralMethods:
|
|
|
|
|
- after
|
|
|
|
|
- at_exit
|
|
|
|
|
- before
|
|
|
|
|
- benchmark
|
|
|
|
|
- bm
|
|
|
|
|
- bmbm
|
|
|
|
|
- capture_io
|
|
|
|
|
- capture_output
|
|
|
|
|
- capture_subprocess_io
|
|
|
|
|
- chdir
|
|
|
|
|
- context
|
|
|
|
|
- create
|
|
|
|
|
- define_method
|
|
|
|
|
- define_singleton_method
|
|
|
|
|
- fork
|
|
|
|
|
- measure
|
|
|
|
|
- new
|
|
|
|
|
- open
|
|
|
|
|
- realtime
|
|
|
|
|
- shutup
|
|
|
|
|
- tap
|
|
|
|
|
- each
|
|
|
|
|
- each_pair
|
|
|
|
|
- each_with_index
|
|
|
|
|
- reverse_each
|
|
|
|
|
- ignore_interrupts
|
|
|
|
|
IgnoredMethods:
|
|
|
|
|
- each_with_object
|
|
|
|
|
- it
|
|
|
|
|
- its
|
|
|
|
|
- lambda
|
|
|
|
|
- proc
|
|
|
|
|
- formula
|
|
|
|
|
- mock
|
|
|
|
|
- devel
|
|
|
|
|
- stable
|
|
|
|
|
- head
|
|
|
|
|
- assert_raises
|
|
|
|
|
- assert_nothing_raised
|
|
|
|
|
- resource
|
|
|
|
|
- with_build_environment
|
|
|
|
|
- ensure_writable
|
|
|
|
|
- satisfy
|
|
|
|
|
- fetch
|
|
|
|
|
- brew
|
|
|
|
|
- expand
|
|
|
|
|
- env
|
|
|
|
|
- recursive_dependencies
|
|
|
|
|
- trap
|
|
|
|
|
- link_dir
|
|
|
|
|
- with_system_path
|
|
|
|
|
|
|
|
|
|
Style/HashSyntax:
|
|
|
|
|
EnforcedStyle: ruby19_no_mixed_keys
|
|
|
|
|
|
|
|
|
|
# we won't change backward compatible method names
|
|
|
|
|
Style/MethodName:
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'compat/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
|
|
|
|
|
# we won't change backward compatible predicate names
|
|
|
|
|
Style/PredicateName:
|
|
|
|
|
Exclude:
|
2016-09-28 22:34:09 +02:00
|
|
|
- 'compat/**/*'
|
2016-09-27 18:48:06 +02:00
|
|
|
NameWhitelist: is_32_bit?, is_64_bit?
|
|
|
|
|
|