tasks/cops_documentation.rake in rubocop-faker-0.2.0 vs tasks/cops_documentation.rake in rubocop-faker-1.0.0

- old
+ new

@@ -195,11 +195,10 @@ examples_object = code_object.tags('example') end cops_body(config, cop, description, examples_object, pars) end - # rubocop:disable Metrics/AbcSize def table_of_content_for_department(cops, department) selected_cops = cops_of_department(cops, department.to_sym).select do |cop| cop.to_s.start_with?('RuboCop::Cop::Faker') end return if selected_cops.empty? @@ -212,10 +211,9 @@ content << "* [#{cop.cop_name}](#{filename}##{anchor})\n" end content end - # rubocop:enable Metrics/AbcSize def print_table_of_contents(cops) path = "#{Dir.pwd}/manual/cops.md" original = File.read(path) content = +"<!-- START_COP_LIST -->\n"