Generate RuboCop TODO config even without any offenses
Sometimes we enable new cop rules without any offenses and put this rule in "grace period". This is done in the TODO config in `.rubocop_todo/**/*.yml` because it's a temporary configuration which should be removed short after. However, when regenerating TODOs for cops without any offenses we discarded to generate them. This commit fixes this issue and generates a cop TODO config if: * Cop was previously disabled due to too many offenses * Cop is in grace period * Cop excludes files
显示
- rubocop/cop_todo.rb 10 个添加, 2 个删除rubocop/cop_todo.rb
- rubocop/formatter/todo_formatter.rb 19 个添加, 7 个删除rubocop/formatter/todo_formatter.rb
- spec/rubocop/cop_todo_spec.rb 32 个添加, 1 个删除spec/rubocop/cop_todo_spec.rb
- spec/rubocop/formatter/todo_formatter_spec.rb 64 个添加, 4 个删除spec/rubocop/formatter/todo_formatter_spec.rb
想要评论请 注册 或 登录