summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-10-19 10:04:05 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2016-10-20 15:22:38 +0200
commite9218c7e4e6c46d72d0860ba1107643a9f15f542 (patch)
treea316a9cf0d84d0d17c0dfcfc1666e961a2c3e7f8
parent2510345ee5f36c9cbe7088f7dce9402645c3fcf6 (diff)
downloadgitlab-ce-change-rubocop-to-2-1.tar.gz
Change target Ruby version for Rubocop to 2.1.change-rubocop-to-2-1
We have to use the lowest common denominator to check the supported syntax and in our case it is Ruby 2.1. Please note that it will not help with unsupported syntax in HAML files because they are not checked by Rubocop.
-rw-r--r--.rubocop.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index bec2464c740..13df3f99613 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -5,7 +5,7 @@ require:
inherit_from: .rubocop_todo.yml
AllCops:
- TargetRubyVersion: 2.3
+ TargetRubyVersion: 2.1
# Cop names are not d§splayed in offense messages by default. Change behavior
# by overriding DisplayCopNames, or by giving the -D/--display-cop-names
# option.