forked from gitlabhq/omnibus-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
76 lines (66 loc) · 1.9 KB
/
.rubocop.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
inherit_gem:
gitlab-styles:
- rubocop-default.yml
inherit_from: .rubocop_todo.yml
require:
- ./lib/rubocop/rubocop
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.5
# Cop names are displayed in offense messages by default. Change behavior
# by overriding DisplayCopNames, or by giving the `--no-display-cop-names`
# option.
DisplayCopNames: true
# Style guide URLs are not displayed in offense messages by default. Change
# behavior by overriding DisplayStyleGuide, or by giving the
# -S/--display-style-guide option.
DisplayStyleGuide: false
# Exclude some GitLab files
Exclude:
- 'bin/*'
- 'gems/**/*'
- '.bundle/**/*'
- 'cache/**/*'
- 'node_modules/**/*'
- 'vendor/bundle/**/*'
- 'files/gitlab-cookbooks/runit/**/*'
- 'scripts/changelog'
- 'scripts/support/changelog/Dangerfile'
- 'scripts/security-harness'
# No rails in omnibus
Rails:
Enabled: false
# TODO re-enable and start updating rspec tests
RSpec:
Enabled: false
# We use git repos in our gemfile, but only our own repos
# TODO: Update the cop to allow us to enable it and whitelist our groups
Cop/GemFetcher:
Enabled: false
# We are not concerned with the security of using public in omnibus but we want to ensure
# Any webserver script we might ship in the future is tested for it
GitlabSecurity/PublicSend:
Enabled: true
Exclude:
- 'files/gitlab-cookbooks/package/**/*'
- 'files/gitlab-ctl-commands/**/*'
- 'files/gitlab-ctl-commands-ee/**/*'
- 'spec/**/*'
# Do not introduce global variables.
Style/GlobalVars:
Enabled: true
Exclude:
- 'lib/backup/**/*'
- 'lib/tasks/**/*'
# This is only useful for our build scripts, used in CI
# Exlude most other locations
Cop/AvoidUsingEnv:
Enabled: true
Exclude:
- omnibus.rb
- files/**/*
- docker/**/*
- lib/gitlab/util.rb
- spec/gitlab/util_spec.rb
Style/MultilineIfModifier:
Enabled: false