class CopsDocumentationGenerator

def cops_body(cop, description, examples_objects, safety_objects, see_objects, pars) # rubocop:disable Metrics/AbcSize, Metrics/ParameterLists

rubocop:disable Metrics/AbcSize, Metrics/ParameterLists
def cops_body(cop, description, examples_objects, safety_objects, see_objects, pars) # rubocop:disable Metrics/AbcSize, Metrics/ParameterLists
  check_examples_to_have_the_default_enforced_style!(examples_objects, cop)
  content = h2(cop.cop_name)
  content << required_ruby_version(cop)
  content << properties(cop)
  content << "#{description}\n"
  content << safety_object(safety_objects) if safety_objects.any? { |s| !s.text.blank? }
  content << examples(examples_objects) if examples_objects.any?
  content << configurations(cop.department, pars)
  content << references(cop, see_objects)
  content
end