1 # This file (.rubocop.yml) encodes consciously chosen deviation from Rubocop's
2 # default configuration. The jury is still out regarding other checks, which are
3 # disabled or tweaked in .rubocop_todo.yml.
5 inherit_from: .rubocop_todo.yml
9 # Let's ignore this script until we start using it and maintaining
10 # the corresponding doc-source-relationships.yml
11 - 'bin/doc-impacted-by'
12 TargetRubyVersion: 2.5
15 EnforcedHashRocketStyle: table
16 EnforcedColonStyle: table
18 Lint/SuppressedException:
36 Metrics/CyclomaticComplexity:
42 Metrics/ParameterLists:
43 CountKeywordArgs: false
45 Metrics/PerceivedComplexity:
48 Naming/BlockParameterName:
50 - expected_patterns_MiB
52 - size_in_MiB_of_destination_disk
57 - \A(After|Before)Feature\z
58 # Case matters: bit vs. byte
60 # Stay close to Dogtail's API
61 - \A(pressKey|roleName|typeText)\z
62 # Stay close to OpenCV's API
65 Naming/MethodParameterName:
74 Style/AccessModifierDeclarations:
80 Style/AutoResourceCleanup:
83 Style/ClassAndModuleChildren:
84 EnforcedStyle: compact
88 - 'features/support/helpers/dogtail.rb'
89 - 'features/support/helpers/remote_shell.rb'
91 Style/CollectionMethods:
94 Style/ConstantVisibility:
97 Style/FrozenStringLiteralComment:
107 Style/HashEachMethods:
110 Style/HashTransformKeys:
113 Style/HashTransformValues:
117 EnforcedStyle: ruby19_no_mixed_keys
119 Style/MethodCallWithArgsParentheses:
139 - remove_entry_secure
155 Style/MethodCalledOnDoEndBlock:
158 Style/NumericLiterals:
170 Style/SingleLineBlockParams:
177 EnforcedStyle: brackets
179 Style/TrailingCommaInArguments:
180 EnforcedStyleForMultiline: no_comma
182 Style/TrailingCommaInArrayLiteral:
183 EnforcedStyleForMultiline: consistent_comma
185 Style/TrailingCommaInHashLiteral:
186 EnforcedStyleForMultiline: consistent_comma
189 EnforcedStyle: brackets