lib/face_control/checkers/rubocop.rb in face_control-0.8.1 vs lib/face_control/checkers/rubocop.rb in face_control-0.8.2
- old
+ new
@@ -59,10 +59,10 @@
text
end
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
def can_be_autocorrected?(offense)
!offense['corrected'].nil?