summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-09-24 04:28:08 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-09-24 20:19:39 -0300
commit76d2a31b8222b99ba2320a47dc256662c93ec1c7 (patch)
treeecc8d3662577db872c29205980a41fd06e80a9be
parenta9295551a60e03b9fc1fe16f6fb9027dfc5bf371 (diff)
downloadhighline-76d2a31b8222b99ba2320a47dc256662c93ec1c7.tar.gz
Whitelist some files with snake_case on meth names
-rw-r--r--.rubocop.yml7
-rw-r--r--lib/highline/string_extensions.rb2
2 files changed, 8 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 73faa87..5eb0d8b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -34,3 +34,10 @@ Style/StringMethods:
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
+
+# Configuration parameters: SupportedStyles.
+# SupportedStyles: snake_case, camelCase
+Naming/MethodName:
+ EnforcedStyle: snake_case
+ Exclude:
+ - 'test/**/*'
diff --git a/lib/highline/string_extensions.rb b/lib/highline/string_extensions.rb
index 1ff56ce..aab4c27 100644
--- a/lib/highline/string_extensions.rb
+++ b/lib/highline/string_extensions.rb
@@ -4,7 +4,7 @@ class HighLine
# Returns a HighLine::String from any given String.
# @param s [String]
# @return [HighLine::String] from the given string.
- def self.String(s)
+ def self.String(s) # rubocop:disable Naming/MethodName
HighLine::String.new(s)
end