GitLab wurde erfolgreich aktualisiert. Das Aktivieren von Shared Runnern in kürzlich erstellten Projekten ist jetzt wieder möglich.

.rubocop.yml 916 Bytes
Newer Older
Rémy Coutable's avatar
Rémy Coutable committed
1
2
3
inherit_gem:
  gitlab-styles:
    - rubocop-default.yml
Robert Speicher's avatar
Robert Speicher committed
4

Z.J. van de Weg's avatar
Z.J. van de Weg committed
5
inherit_from: .rubocop_todo.yml
6
require: ./rubocop/rubocop
Z.J. van de Weg's avatar
Z.J. van de Weg committed
7

8
AllCops:
9
  TargetRailsVersion: 4.2
10
11
  Exclude:
    - 'vendor/**/*'
Mike Greiling's avatar
Mike Greiling committed
12
    - 'node_modules/**/*'
Sean McGivern's avatar
Sean McGivern committed
13
14
    - 'db/*'
    - 'db/fixtures/**/*'
Rémy Coutable's avatar
Rémy Coutable committed
15
    - 'db/geo/*'
16
17
    - 'tmp/**/*'
    - 'bin/**/*'
18
    - 'generator_templates/**/*'
19
    - 'builds/**/*'
Lin Jen-Shin's avatar
Lin Jen-Shin committed
20
  CacheRootDirectory: tmp
21

22
23
24
25
26
27
# Gitlab ###################################################################

Gitlab/ModuleWithInstanceVariables:
  Enable: true
  Exclude:
    # We ignore Rails helpers right now because it's hard to workaround it
Lin Jen-Shin's avatar
Lin Jen-Shin committed
28
    - app/helpers/**/*_helper.rb
29
    - ee/app/helpers/**/*_helper.rb
30
    # We ignore Rails mailers right now because it's hard to workaround it
Lin Jen-Shin's avatar
Lin Jen-Shin committed
31
    - app/mailers/emails/**/*.rb
32
    - ee/**/emails/**/*.rb
33
34
35
    # We ignore spec helpers because it usually doesn't matter
    - spec/support/**/*.rb
    - features/steps/**/*.rb