diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2c2b53c..0ed6061 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -159,17 +159,6 @@ Style/EmptyLineBetweenDefs: - 'spec/decorators/issue_tracker_type_decorator_spec.rb' - 'spec/views/problems/show.html.haml_spec.rb' -# Offense count: 9 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/EmptyLinesAroundModuleBody: - Exclude: - - 'app/helpers/application_helper.rb' - - 'app/helpers/form_helper.rb' - - 'app/helpers/hash_helper.rb' - - 'app/helpers/navigation_helper.rb' - - 'app/helpers/sort_helper.rb' - # Offense count: 22 # Cop supports --auto-correct. # Configuration parameters: AllowForAlignment. diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 317419c..b5d5967 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -84,5 +84,4 @@ module ApplicationHelper def head_size 4 end - end diff --git a/app/helpers/form_helper.rb b/app/helpers/form_helper.rb index 0463a57..62ce57f 100644 --- a/app/helpers/form_helper.rb +++ b/app/helpers/form_helper.rb @@ -1,5 +1,4 @@ module FormHelper - def errors_for(document) return unless document.errors.any? @@ -14,5 +13,4 @@ module FormHelper def label_for_attr(builder, field) (builder.object_name + field).gsub(/[\[\]]/,'_').squeeze('_') end - end diff --git a/app/helpers/hash_helper.rb b/app/helpers/hash_helper.rb index 50409c3..f415e92 100644 --- a/app/helpers/hash_helper.rb +++ b/app/helpers/hash_helper.rb @@ -1,5 +1,4 @@ module HashHelper - def pretty_hash(hash, nesting = 0) return '{}' if hash.empty? @@ -17,5 +16,4 @@ module HashHelper nesting -= 1 pretty += "\n#{' '*nesting*tab_size}}" end - end diff --git a/app/helpers/navigation_helper.rb b/app/helpers/navigation_helper.rb index c39d8a2..b78897a 100644 --- a/app/helpers/navigation_helper.rb +++ b/app/helpers/navigation_helper.rb @@ -1,5 +1,4 @@ module NavigationHelper - # Returns ' active' if you are on a given controller # - active_if_here(:users) => ' active' if users controller # Or on one of a list of controllers @@ -44,5 +43,4 @@ module NavigationHelper def page_count_from_end(current_page, total_pages) (total_pages.to_i - current_page.to_i) + 1 end - end diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index dec0a95..e590b65 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -1,6 +1,5 @@ # encoding: utf-8 module SortHelper - def link_for_sort(name, field=nil) field ||= name.underscore current = (params_sort == field) @@ -10,5 +9,4 @@ module SortHelper options.merge!(:class => "current #{order}") if current link_to(name, url, options) end - end -- libgit2 0.21.2