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-16 23:09:34 +05:30
|
|
|
|
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/**/*'
|
2016-06-16 23:09:34 +05:30
|
|
|
- 'db/fixtures/**/*'
|
2018-11-18 11:00:15 +05:30
|
|
|
- 'db/schema.rb'
|
|
|
|
- 'ee/db/geo/schema.rb'
|
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-11-20 20:47:30 +05:30
|
|
|
# TODO: Move this to gitlab-styles
|
|
|
|
Style/SafeNavigation:
|
|
|
|
Enabled: false
|
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
# Frozen String Literal
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
|
Enabled: true
|
|
|
|
Exclude:
|
|
|
|
- 'config.ru'
|
|
|
|
- 'Dangerfile'
|
|
|
|
- 'Gemfile'
|
|
|
|
- 'Rakefile'
|
|
|
|
- 'app/views/**/*'
|
|
|
|
- 'config/**/*'
|
|
|
|
- 'danger/**/*'
|
|
|
|
- 'db/**/*'
|
|
|
|
- 'ee/**/*'
|
|
|
|
- 'lib/**/*'
|
|
|
|
- 'qa/**/*'
|
|
|
|
- 'rubocop/**/*'
|
|
|
|
- 'scripts/**/*'
|
|
|
|
- 'spec/**/*'
|
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
Naming/FileName:
|
|
|
|
ExpectMatchingDefinition: true
|
|
|
|
Exclude:
|
2018-11-18 11:00:15 +05:30
|
|
|
- 'db/**/*'
|
|
|
|
- 'ee/db/**/*'
|
2018-05-09 12:01:36 +05:30
|
|
|
- 'spec/**/*'
|
|
|
|
- 'features/**/*'
|
|
|
|
- 'ee/spec/**/*'
|
|
|
|
- 'qa/spec/**/*'
|
|
|
|
- 'qa/qa/specs/**/*'
|
|
|
|
- 'qa/bin/*'
|
|
|
|
- 'config/**/*'
|
|
|
|
- 'lib/generators/**/*'
|
2018-11-20 20:47:30 +05:30
|
|
|
- 'locale/unfound_translations.rb'
|
|
|
|
- 'ee/locale/unfound_translations.rb'
|
2018-05-09 12:01:36 +05:30
|
|
|
- 'ee/lib/generators/**/*'
|
|
|
|
IgnoreExecutableScripts: true
|
|
|
|
AllowedAcronyms:
|
|
|
|
- EE
|
|
|
|
- JSON
|
|
|
|
- LDAP
|
|
|
|
- IO
|
|
|
|
- HMAC
|
|
|
|
- QA
|
|
|
|
- ENV
|
|
|
|
- STL
|
|
|
|
- PDF
|
|
|
|
- SVG
|
|
|
|
- CTE
|
|
|
|
- DN
|
|
|
|
- RSA
|
|
|
|
- CI
|
|
|
|
- CD
|
|
|
|
- OAuth
|
|
|
|
# default ones:
|
|
|
|
- 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
|
|
|
|
|
2018-12-05 23:21:45 +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/**/*'
|