Skip to content

Commit

Permalink
Replace IfNode mixin with node extension
Browse files Browse the repository at this point in the history
This change replaces the use of a cop mixin for access to logic related
to `if` nodes, and instead decorates said nodes with the appropriate
module upon initialization.
  • Loading branch information
Drenmi authored and bbatsov committed Jan 5, 2017
1 parent c36c4e0 commit 219dfe1
Show file tree
Hide file tree
Showing 44 changed files with 924 additions and 404 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Metrics/AbcSize:
# Offense count: 32
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 182
Max: 183

# Offense count: 29
Metrics/CyclomaticComplexity:
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
require 'rubocop/node_pattern'
require 'rubocop/string_interpreter'
require 'rubocop/ast_node/sexp'
require 'rubocop/ast_node/node_extensions/if_node'
require 'rubocop/ast_node'
require 'rubocop/ast_node/builder'
require 'rubocop/ast_node/traversal'
Expand Down Expand Up @@ -67,7 +68,6 @@
require 'rubocop/cop/mixin/frozen_string_literal'
require 'rubocop/cop/mixin/hash_node'
require 'rubocop/cop/mixin/hash_alignment'
require 'rubocop/cop/mixin/if_node'
require 'rubocop/cop/mixin/integer_node'
require 'rubocop/cop/mixin/on_method_def'
require 'rubocop/cop/mixin/match_range'
Expand Down
Loading

0 comments on commit 219dfe1

Please sign in to comment.