lib/rubocop/cop/style/constant_name.rb in rubocop-0.12.0 vs lib/rubocop/cop/style/constant_name.rb in rubocop-0.13.0

- old
+ new

@@ -16,12 +16,10 @@ _scope, const_name, value = *node # We cannot know the result of method calls line # NewClass = something_that_returns_a_class unless value && [:send, :block].include?(value.type) - if const_name !~ SNAKE_CASE - add_offence(:convention, node.loc.name, MSG) - end + convention(node, :name) if const_name !~ SNAKE_CASE end end end end end