2017-09-19 11:25:42 -04:00
|
|
|
inherit_gem:
|
|
|
|
gitlab-styles:
|
|
|
|
- rubocop-default.yml
|
2016-05-21 19:27:15 -04:00
|
|
|
|
2016-06-29 12:00:22 -04:00
|
|
|
inherit_from: .rubocop_todo.yml
|
2017-12-26 03:30:36 -05:00
|
|
|
require: ./rubocop/rubocop
|
2016-06-29 12:00:22 -04:00
|
|
|
|
2016-03-20 22:49:12 -04:00
|
|
|
AllCops:
|
2017-07-09 11:05:21 -04:00
|
|
|
TargetRailsVersion: 4.2
|
2016-03-20 22:49:12 -04:00
|
|
|
Exclude:
|
|
|
|
- 'vendor/**/*'
|
2017-02-02 13:40:49 -05:00
|
|
|
- 'node_modules/**/*'
|
2018-02-13 09:41:47 -05:00
|
|
|
- 'db/**/*'
|
2016-06-09 08:39:16 -04:00
|
|
|
- 'db/fixtures/**/*'
|
2018-02-13 09:41:47 -05:00
|
|
|
- 'ee/db/**/*'
|
2016-03-20 22:49:12 -04:00
|
|
|
- 'tmp/**/*'
|
|
|
|
- 'bin/**/*'
|
2016-05-19 16:32:07 -04:00
|
|
|
- 'generator_templates/**/*'
|
2017-02-28 07:13:01 -05:00
|
|
|
- 'builds/**/*'
|
2018-02-26 10:33:38 -05:00
|
|
|
- 'plugins/**/*'
|
2018-01-23 10:42:58 -05:00
|
|
|
CacheRootDirectory: tmp
|
2016-03-20 22:49:12 -04:00
|
|
|
|
2018-02-13 09:41:47 -05:00
|
|
|
# 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-08 07:56:54 -05:00
|
|
|
Naming/FileName:
|
|
|
|
ExpectMatchingDefinition: true
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'features/**/*'
|
|
|
|
- 'ee/spec/**/*'
|
|
|
|
- 'qa/spec/**/*'
|
|
|
|
- 'qa/qa/specs/**/*'
|
|
|
|
- 'qa/bin/*'
|
|
|
|
- 'config/**/*'
|
|
|
|
- 'lib/generators/**/*'
|
|
|
|
- '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
|
|
|
|
|
2017-11-22 02:50:36 -05:00
|
|
|
# Gitlab ###################################################################
|
|
|
|
|
|
|
|
Gitlab/ModuleWithInstanceVariables:
|
|
|
|
Enable: true
|
|
|
|
Exclude:
|
|
|
|
# We ignore Rails helpers right now because it's hard to workaround it
|
2017-12-15 06:37:57 -05:00
|
|
|
- app/helpers/**/*_helper.rb
|
2017-12-26 03:30:36 -05:00
|
|
|
- ee/app/helpers/**/*_helper.rb
|
2017-11-22 02:50:36 -05:00
|
|
|
# We ignore Rails mailers right now because it's hard to workaround it
|
2017-12-15 06:37:57 -05:00
|
|
|
- app/mailers/emails/**/*.rb
|
2017-12-26 03:30:36 -05:00
|
|
|
- ee/**/emails/**/*.rb
|
2017-11-22 02:50:36 -05:00
|
|
|
# We ignore spec helpers because it usually doesn't matter
|
|
|
|
- spec/support/**/*.rb
|
|
|
|
- features/steps/**/*.rb
|
2018-02-13 09:41:47 -05:00
|
|
|
|
2018-03-13 18:38:25 -04:00
|
|
|
Gitlab/HTTParty:
|
|
|
|
Enabled: true
|
|
|
|
|
2018-02-13 09:41:47 -05:00
|
|
|
GitlabSecurity/PublicSend:
|
|
|
|
Enabled: true
|
|
|
|
Exclude:
|
|
|
|
- 'config/**/*'
|
|
|
|
- 'db/**/*'
|
|
|
|
- 'features/**/*'
|
|
|
|
- 'lib/**/*.rake'
|
|
|
|
- 'qa/**/*'
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'ee/db/**/*'
|
|
|
|
- 'ee/lib/**/*.rake'
|
|
|
|
- 'ee/spec/**/*'
|