debian-mirror-gitlab/.rubocop.yml

64 lines
1.5 KiB
YAML
Raw Normal View History

2018-03-17 18:26:18 +05:30
inherit_gem:
gitlab-styles:
- rubocop-default.yml
2016-08-24 12:49:21 +05:30
inherit_from: .rubocop_todo.yml
2018-03-17 18:26:18 +05:30
require: ./rubocop/rubocop
2016-06-02 11:05:42 +05:30
AllCops:
2017-09-10 17:25:29 +05:30
TargetRailsVersion: 4.2
2016-06-02 11:05:42 +05:30
Exclude:
- 'vendor/**/*'
2017-08-17 22:00:37 +05:30
- 'node_modules/**/*'
2018-03-27 19:54:05 +05:30
- 'db/**/*'
- 'db/fixtures/**/*'
2018-03-27 19:54:05 +05:30
- 'ee/db/**/*'
2016-06-02 11:05:42 +05:30
- 'tmp/**/*'
- 'bin/**/*'
- 'generator_templates/**/*'
2017-08-17 22:00:37 +05:30
- 'builds/**/*'
2018-03-27 19:54:05 +05:30
- 'plugins/**/*'
2018-03-17 18:26:18 +05:30
CacheRootDirectory: tmp
2016-06-02 11:05:42 +05:30
2018-03-27 19:54:05 +05:30
# This cop checks whether some constant value isn't a
# mutable literal (e.g. array or hash).
Style/MutableConstant:
Enabled: true
Exclude:
- 'db/migrate/**/*'
- 'db/post_migrate/**/*'
- 'ee/db/migrate/**/*'
- 'ee/db/post_migrate/**/*'
- 'ee/db/geo/migrate/**/*'
2018-03-17 18:26:18 +05:30
# Gitlab ###################################################################
2016-06-02 11:05:42 +05:30
2018-03-17 18:26:18 +05:30
Gitlab/ModuleWithInstanceVariables:
Enable: true
2017-08-17 22:00:37 +05:30
Exclude:
2018-03-17 18:26:18 +05:30
# We ignore Rails helpers right now because it's hard to workaround it
- app/helpers/**/*_helper.rb
- ee/app/helpers/**/*_helper.rb
# We ignore Rails mailers right now because it's hard to workaround it
- app/mailers/emails/**/*.rb
- ee/**/emails/**/*.rb
# We ignore spec helpers because it usually doesn't matter
- spec/support/**/*.rb
- features/steps/**/*.rb
2018-03-26 14:24:53 +05:30
Gitlab/HTTParty:
Enabled: true
2018-03-27 19:54:05 +05:30
GitlabSecurity/PublicSend:
Enabled: true
Exclude:
- 'config/**/*'
- 'db/**/*'
- 'features/**/*'
- 'lib/**/*.rake'
- 'qa/**/*'
- 'spec/**/*'
- 'ee/db/**/*'
- 'ee/lib/**/*.rake'
- 'ee/spec/**/*'