From edd6abc45e57d140af2c724f211aff68b38960c2 Mon Sep 17 00:00:00 2001 From: Jim Tucker Date: Wed, 17 Feb 2016 13:00:19 -0600 Subject: [PATCH] Experimenting with RuboCop. --- .rubocop.yml | 11 +++++------ config.ru | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 68df99e711..a917321772 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,21 +5,20 @@ AllCops: Exclude: - 'db/**/*' - 'script/**/*' - - + - 'tmp/**/*' Metrics/LineLength: - Max: 200 + Max: 200 # Use empty lines between defs. Style/EmptyLineBetweenDefs: # If true, this parameter means that single line method definitions don't # need an empty line between them. - AllowAdjacentOneLineDefs: true + AllowAdjacentOneLineDefs: true Metrics/MethodLength: CountComments: false # count full line comments? - Max: 20 + Max: 20 Metrics/ClassLength: CountComments: false # count full line comments? @@ -31,7 +30,7 @@ Metrics/ModuleLength: Metrics/ParameterLists: Max: 5 - CountKeywordArgs: false + CountKeywordArgs: false Rails/FindBy: Include: diff --git a/config.ru b/config.ru index 5bc2a619e8..bd83b25412 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,4 @@ # This file is used by Rack-based servers to start the application. -require ::File.expand_path('../config/environment', __FILE__) +require ::File.expand_path('../config/environment', __FILE__) run Rails.application