diff options
-rw-r--r-- | .rubocop.yml | 7 | ||||
-rw-r--r-- | lib/highline/string_extensions.rb | 2 |
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 |