brew/Library/Homebrew/cask/.rubocop.yml

132 lines
2.2 KiB
YAML
Raw Normal View History

2016-08-18 22:11:42 +03:00
AllCops:
TargetRubyVersion: 2.0
Exclude:
2016-09-20 22:03:08 +02:00
- '**/.simplecov'
2016-08-18 22:11:42 +03:00
- '**/Casks/**/*'
- '**/vendor/**/*'
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
2016-09-25 02:41:14 +02:00
Enabled: false
2016-08-18 22:11:42 +03:00
Metrics/CyclomaticComplexity:
Enabled: false
2016-09-20 15:06:04 +02:00
Metrics/LineLength:
2016-08-18 22:11:42 +03:00
Enabled: false
2016-09-20 15:06:04 +02:00
Metrics/MethodLength:
2016-08-18 22:11:42 +03:00
Enabled: false
Metrics/ModuleLength:
CountComments: false
Exclude:
- 'lib/hbc/locations.rb'
- 'lib/hbc/macos.rb'
- 'lib/hbc/utils.rb'
2016-09-20 15:06:04 +02:00
Metrics/PerceivedComplexity:
Enabled: false
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Style/BarePercentLiterals:
EnforcedStyle: percent_q
2016-08-18 22:11:42 +03:00
Style/BlockDelimiters:
EnforcedStyle: semantic
FunctionalMethods:
- expect
- let
- let!
- subject
- watch
- inject
- map
- map!
- collect
- collect!
- reject
- reject!
- delete_if
- with_object
ProceduralMethods:
- after
- at_exit
- before
- benchmark
- bm
- bmbm
- capture_io
- capture_output
- capture_subprocess_io
- chdir
- context
- create
- define_method
- define_singleton_method
2016-08-18 22:11:42 +03:00
- each_with_object
- fork
- measure
- new
- open
- realtime
- shutup
- tap
- each
- reverse_each
IgnoredMethods:
- it
- its
- lambda
- proc
Style/ClassAndModuleChildren:
2016-09-24 13:52:43 +02:00
EnforcedStyle: nested
2016-08-18 22:11:42 +03:00
2016-09-20 15:06:04 +02:00
Style/Documentation:
Enabled: false
Style/FileName:
2016-09-20 19:36:32 +02:00
Regex: !ruby/regexp /^((([\dA-Z]+|[\da-z]+)(_([\dA-Z]+|[\da-z]+))*|(\-\-)?([\dA-Z]+|[\da-z]+)(-([\dA-Z]+|[\da-z]+))*))(\.rb)?$/
2016-09-20 15:06:04 +02:00
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
Style/IndentArray:
EnforcedStyle: align_brackets
Style/IndentHash:
EnforcedStyle: align_braces
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '{}'
'%i': '{}'
'%q': '{}'
'%Q': '{}'
'%r': '{}'
'%s': '()'
'%w': '[]'
'%W': '[]'
'%x': '()'
2016-08-18 22:11:42 +03:00
Style/RaiseArgs:
EnforcedStyle: exploded
2016-09-20 15:06:04 +02:00
Style/RegexpLiteral:
EnforcedStyle: percent_r
2016-08-18 22:11:42 +03:00
Style/StringLiterals:
EnforcedStyle: double_quotes
2016-09-20 15:06:04 +02:00
2016-09-20 15:11:33 +02:00
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
2016-09-20 15:06:04 +02:00
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma