summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2016-06-03 02:32:28 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2016-06-03 02:52:26 -0300
commitfaff0285f52f13884506f0a134d0851115e8c9ba (patch)
treea870722451c68c922a20d09c7816c24c87bce704 /.rubocop.yml
parent5750378075d819609ea7168a1dfec67731e1f701 (diff)
downloadhighline-faff0285f52f13884506f0a134d0851115e8c9ba.tar.gz
Add .rubocop.yml to tweak pronto-rubocop behavior
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
new file mode 100644
index 0000000..898f418
--- /dev/null
+++ b/.rubocop.yml
@@ -0,0 +1,31 @@
+# Bellow the changes to default Rubocop behavior.
+
+# See options at:
+# https://github.com/bbatsov/rubocop/tree/master/config
+
+# General
+
+# Multi-line method chaining should be done with leading dots.
+Style/DotPosition:
+ EnforcedStyle: trailing
+ SupportedStyles:
+ - leading
+ - trailing
+
+# Enabling!
+
+Style/CollectionMethods:
+ Description: 'Preferred collection methods.'
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size'
+ Enabled: true
+
+Style/StringMethods:
+ Description: 'Checks if configured preferred methods are used over non-preferred.'
+ Enabled: true
+
+# Disabling!
+
+Style/StringLiterals:
+ Description: 'Checks if uses of quotes match the configured preference.'
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
+ Enabled: false