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'
13 - 'lib/ruby/vendor/**/*'
14 TargetRubyVersion: 3.1
17 EnforcedHashRocketStyle: table
18 EnforcedColonStyle: table
23 Lint/SuppressedException:
41 Metrics/CyclomaticComplexity:
47 Metrics/ParameterLists:
48 CountKeywordArgs: false
50 Metrics/PerceivedComplexity:
53 Naming/BlockParameterName:
55 - expected_patterns_MiB
57 - size_in_MiB_of_destination_disk
62 - \A(After|Before)Feature\z
63 # Case matters: bit vs. byte
65 # Stay close to Dogtail's API
66 - \A(doubleClick|roleName)\z
67 # Stay close to OpenCV's API
69 # Stay close to Dogtail's API
76 Naming/MethodParameterName:
85 Style/AccessModifierDeclarations:
91 Style/AutoResourceCleanup:
94 Style/ClassAndModuleChildren:
95 EnforcedStyle: compact
99 - 'features/support/helpers/dogtail.rb'
100 - 'features/support/helpers/remote_shell.rb'
102 Style/CollectionMethods:
105 Style/ConstantVisibility:
108 Style/FrozenStringLiteralComment:
118 Style/HashEachMethods:
121 Style/HashTransformKeys:
124 Style/HashTransformValues:
128 EnforcedStyle: ruby19_no_mixed_keys
130 Style/IfUnlessModifier:
133 Style/MethodCallWithArgsParentheses:
153 - remove_entry_secure
169 Style/MethodCalledOnDoEndBlock:
172 Style/NumericLiterals:
184 Style/SingleLineBlockParams:
191 EnforcedStyle: brackets
193 Style/TrailingCommaInArguments:
194 EnforcedStyleForMultiline: no_comma
196 Style/TrailingCommaInArrayLiteral:
197 EnforcedStyleForMultiline: consistent_comma
199 Style/TrailingCommaInHashLiteral:
200 EnforcedStyleForMultiline: consistent_comma
203 EnforcedStyle: brackets