Check frozen string in style builds
This commit is contained in:
parent
d5734de3d6
commit
8ace2d5c55
2 changed files with 24 additions and 0 deletions
19
.rubocop.yml
19
.rubocop.yml
|
@ -35,6 +35,25 @@ Style/MutableConstant:
|
|||
Style/SafeNavigation:
|
||||
Enabled: false
|
||||
|
||||
# Frozen String Literal
|
||||
Style/FrozenStringLiteralComment:
|
||||
Enabled: true
|
||||
Exclude:
|
||||
- 'config.ru'
|
||||
- 'Dangerfile'
|
||||
- 'Gemfile'
|
||||
- 'Rakefile'
|
||||
- 'app/views/**/*'
|
||||
- 'config/**/*'
|
||||
- 'danger/**/*'
|
||||
- 'db/**/*'
|
||||
- 'ee/**/*'
|
||||
- 'lib/**/*'
|
||||
- 'qa/**/*'
|
||||
- 'rubocop/**/*'
|
||||
- 'scripts/**/*'
|
||||
- 'spec/**/*'
|
||||
|
||||
Naming/FileName:
|
||||
ExpectMatchingDefinition: true
|
||||
Exclude:
|
||||
|
|
5
changelogs/unreleased/frozen-string-app-enforce.yml
Normal file
5
changelogs/unreleased/frozen-string-app-enforce.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Check frozen string in style builds
|
||||
merge_request:
|
||||
author: gfyoung
|
||||
type: other
|
Loading…
Reference in a new issue