From 2ba8bdc8d5d93dc568c727a4c98294d28e76cbd8 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Wed, 5 Jul 2017 01:46:11 -0400 Subject: [PATCH] Enable LineLength cop. --- .rubocop-disables.yml | 7 +++---- Rakefile | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.rubocop-disables.yml b/.rubocop-disables.yml index a9742d2..9e3741a 100644 --- a/.rubocop-disables.yml +++ b/.rubocop-disables.yml @@ -200,11 +200,10 @@ Style/Lambda: Layout/LeadingCommentSpace: Enabled: false -# TODO -# Offense count: 218 -# Configuration parameters: AllowURI. Metrics/LineLength: - Max: 340 + Exclude: + - 'spec/**/*.rb' + - 'Rakefile' # TODO # Offense count: 28 diff --git a/Rakefile b/Rakefile index f804fdb..39b9873 100644 --- a/Rakefile +++ b/Rakefile @@ -70,8 +70,8 @@ namespace :all do task :build => ['ruby:build'] + \ WindowsPlatforms.map {|p| "windows:#{p}:build"} - desc "Create tag v#{RestClient::VERSION} and for all platforms build and push " \ - "rest-client #{RestClient::VERSION} to Rubygems" + desc "Create tag v#{RestClient::VERSION} and for all platforms build and " \ + "push rest-client #{RestClient::VERSION} to Rubygems" task :release => ['build', 'ruby:release'] + \ WindowsPlatforms.map {|p| "windows:#{p}:push"}