From 76d2a31b8222b99ba2320a47dc256662c93ec1c7 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sun, 24 Sep 2017 04:28:08 -0300 Subject: Whitelist some files with snake_case on meth names --- .rubocop.yml | 7 +++++++ lib/highline/string_extensions.rb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1