Skip to content

Commit

Permalink
Cop configartion sometimes cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilevsky committed May 13, 2016
1 parent 4941e58 commit 34263f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/face_control/checkers/rubocop.rb
Expand Up @@ -61,7 +61,7 @@ def text(offense, file)

def style_guide_url(offense)
cop_name = offense['cop_name']
cop_config = ::RuboCop::ConfigLoader.default_configuration[cop_name]
cop_config = ::RuboCop::ConfigLoader.default_configuration[cop_name] || {}
cop_config['StyleGuide']
end

Expand Down

0 comments on commit 34263f7

Please sign in to comment.