From 23e50a19dfd53b83d916b804b18124965a441a13 Mon Sep 17 00:00:00 2001 From: tmilewski Date: Wed, 27 Dec 2017 13:18:31 -0500 Subject: [PATCH] Use warn over stderr; Fix Rubocop errors. --- .rubocop.yml | 18 +++++++++--------- Rakefile | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 59e8e46..87a1614 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,12 @@ +Layout/AccessModifierIndentation: + EnforcedStyle: outdent + +Layout/DotPosition: + EnforcedStyle: trailing + +Layout/SpaceInsideHashLiteralBraces: + EnforcedStyle: no_space + Lint/HandleExceptions: Enabled: false @@ -22,9 +31,6 @@ Metrics/ParameterLists: Metrics/AbcSize: Enabled: false -Style/AccessModifierIndentation: - EnforcedStyle: outdent - Style/CollectionMethods: PreferredMethods: map: 'collect' @@ -35,9 +41,6 @@ Style/CollectionMethods: Style/Documentation: Enabled: false -Style/DotPosition: - EnforcedStyle: trailing - Style/DoubleNegation: Enabled: false @@ -55,6 +58,3 @@ Style/Lambda: Style/RaiseArgs: EnforcedStyle: compact - -Style/SpaceInsideHashLiteralBraces: - EnforcedStyle: no_space diff --git a/Rakefile b/Rakefile index b1f9331..e4daa64 100644 --- a/Rakefile +++ b/Rakefile @@ -10,7 +10,7 @@ begin RuboCop::RakeTask.new rescue LoadError task :rubocop do - $stderr.puts 'RuboCop is disabled' + warn 'RuboCop is disabled' end end