.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

5
inherit_from: .rubocop_todo.yml
6
require: ./rubocop/rubocop
7

8
AllCops:
9
  TargetRailsVersion: 4.2
10 11
  Exclude:
    - 'vendor/**/*'
12
    - 'node_modules/**/*'
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/**/*'
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