summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-10-04 13:28:01 +0200
committerRobert Speicher <rspeicher@gmail.com>2016-10-04 13:28:01 +0200
commit961c53c2ca46e6cfdb2bcaddc0570b1e210302d2 (patch)
treedfabb807d866812eaec42da2507f57c8b1b0e823 /.rubocop.yml
parent8c280b1c148e97263d3b8fa91b3bbf9b4c54fe5b (diff)
downloadgitlab-ce-961c53c2ca46e6cfdb2bcaddc0570b1e210302d2.tar.gz
Update RuboCop to 0.43.0 and update configurationrs-update-rubocop
`Style/VariableNumber` is explicitly disabled because I don't think we care if we name a variable `var_1` or `var1`.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index c84755859cb..bec2464c740 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -453,6 +453,10 @@ Style/VariableName:
EnforcedStyle: snake_case
Enabled: true
+# Use the configured style when numbering variables.
+Style/VariableNumber:
+ Enabled: false
+
# Use when x then ... for one-line cases.
Style/WhenThen:
Enabled: true