forked from gitlabhq/omnibus-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
154 lines (136 loc) · 5.48 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-07-31 14:22:05 -0700 using RuboCop version 0.69.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceBeforeFirstArg:
Exclude:
- 'files/gitlab-ctl-commands/pg-upgrade.rb'
# Offense count: 1
Lint/DuplicateMethods:
Exclude:
- 'files/gitlab-ctl-commands/lib/postgresql/pgpass.rb'
# Offense count: 7
Lint/InterpolationCheck:
Exclude:
- 'files/gitlab-cookbooks/gitlab/attributes/default.rb'
- 'spec/chef/recipes/rake-attack_spec.rb'
# Offense count: 88
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Enabled: false
# Offense count: 28
# Configuration parameters: Blacklist.
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Enabled: false
# Offense count: 20
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'features/**/*'
- 'files/gitlab-cookbooks/gitlab/libraries/helpers/base_pg_helper.rb'
- 'files/gitlab-cookbooks/gitlab/libraries/redis_helper.rb'
- 'files/gitlab-cookbooks/monitoring/libraries/prometheus_helper.rb'
- 'files/gitlab-cookbooks/package/libraries/certificate_helper.rb'
- 'files/gitlab-cookbooks/package/libraries/omnibus_helper.rb'
- 'files/gitlab-ctl-commands-ee/lib/repmgr.rb'
- 'files/gitlab-ctl-commands/lib/gitlab_ctl/prometheus_upgrade.rb'
- 'lib/gitlab/build/check.rb'
# Offense count: 8
Style/CommentedKeyword:
Exclude:
- 'files/gitlab-cookbooks/gitlab-ee/libraries/fdw_helper.rb'
- 'files/gitlab-cookbooks/gitlab-ee/libraries/gitlab_geo_helper.rb'
- 'files/gitlab-cookbooks/gitlab/libraries/gitlab_rails.rb'
- 'files/gitlab-cookbooks/mattermost/libraries/mattermost_helper.rb'
- 'files/gitlab-cookbooks/package/libraries/config/roles/default.rb'
- 'files/gitlab-cookbooks/package/libraries/helpers/services_helper.rb'
- 'files/gitlab-cookbooks/package/libraries/helpers/version_helper.rb'
- 'files/gitlab-cookbooks/package/libraries/omnibus_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/Dir:
Exclude:
- 'files/gitlab-cookbooks/solo.rb'
# Offense count: 2
Style/EvalWithLocation:
Exclude:
- 'spec/chef/recipes/config_spec.rb'
# Offense count: 27
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
Enabled: false
# Offense count: 216
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false
# Offense count: 5
# Cop supports --auto-correct.
Style/RedundantBegin:
Exclude:
- 'files/gitlab-cookbooks/postgresql/recipes/bin.rb'
- 'files/gitlab-ctl-commands/lib/gitlab_ctl/pg_upgrade.rb'
- 'files/gitlab-ctl-commands/lib/postgresql.rb'
- 'files/gitlab-ctl-commands/pg-upgrade.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantConditional:
Exclude:
- 'files/gitlab-cookbooks/mattermost/recipes/enable.rb'
- 'files/gitlab-ctl-commands-ee/lib/geo/replication.rb'
# Offense count: 222
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Enabled: false
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
# Whitelist: present?, blank?, presence, try, try!
Style/SafeNavigation:
Exclude:
- 'config/software/rubygems.rb'
- 'files/gitlab-cookbooks/gitlab/libraries/redis_helper.rb'
- 'files/gitlab-cookbooks/monitoring/libraries/prometheus.rb'
- 'files/gitlab-cookbooks/package/libraries/helpers/settings_helper.rb'
# Offense count: 26
# Cop supports --auto-correct.
Style/StderrPuts:
Exclude:
- 'files/gitlab-cookbooks/package/libraries/handlers/gitlab.rb'
- 'files/gitlab-ctl-commands-ee/lib/pgbouncer.rb'
- 'files/gitlab-ctl-commands-ee/lib/repmgr.rb'
- 'files/gitlab-ctl-commands-ee/pgbouncer.rb'
- 'files/gitlab-ctl-commands-ee/repmgr.rb'
- 'files/gitlab-ctl-commands/letsencrypt.rb'
- 'files/gitlab-ctl-commands/lib/gitlab_ctl/pg_upgrade.rb'
- 'files/gitlab-ctl-commands/lib/postgresql/replication.rb'
- 'files/gitlab-ctl-commands/pg-upgrade.rb'
# Offense count: 35
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Enabled: false
# Offense count: 112
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Enabled: false