debian-mirror-gitlab/.rubocop.yml

136 lines
2.3 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-05-09 12:01:36 +05:30
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
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/**/*'