diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-29 10:52:41 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-29 10:52:41 +0000 |
commit | 227cc997fb107672e3293c56e0dcb1df72ad82d5 (patch) | |
tree | 8f2834bef57b51a581c8958e623377b24b9d6370 | |
parent | d924176117f3cc73f539ed90b47e1912a3478cf0 (diff) | |
parent | 8ace2d5c55d5de545c4124af0de39ad94237058e (diff) | |
download | gitlab-ce-227cc997fb107672e3293c56e0dcb1df72ad82d5.tar.gz |
Merge branch 'frozen-string-app-enforce' into 'master'49897-fix-removing-todos-for-confidential-issues
Check frozen string in style builds
See merge request gitlab-org/gitlab-ce!21999
-rw-r--r-- | .rubocop.yml | 19 | ||||
-rw-r--r-- | changelogs/unreleased/frozen-string-app-enforce.yml | 5 |
2 files changed, 24 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index ce7be208186..b7aec5b8b14 100644 --- a/.rubocop.yml +++ b/.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: diff --git a/changelogs/unreleased/frozen-string-app-enforce.yml b/changelogs/unreleased/frozen-string-app-enforce.yml new file mode 100644 index 00000000000..44686557c45 --- /dev/null +++ b/changelogs/unreleased/frozen-string-app-enforce.yml @@ -0,0 +1,5 @@ +--- +title: Check frozen string in style builds +merge_request: +author: gfyoung +type: other |