def extract_lints_from_offenses(offenses, source_map)
      dummy_node = Struct.new(:line)

      offenses.reject { |offense| Array(config['ignored_cops']).include?(offense.cop_name) }
              .each do |offense|
        record_lint(dummy_node.new(source_map[offense.line]), offense.message,
                    offense.severity.name)
      end
    end
def extract_lints_from_offenses(offenses, source_map)
      dummy_node = Struct.new(:line)

      offenses.reject { |offense| Array(config['ignored_cops']).include?(offense.cop_name) }
              .each do |offense|
        record_lint(dummy_node.new(source_map[offense.line]), offense.message,
                    offense.severity.name)
      end
    end
Aggregates RuboCop offenses and converts them to {HamlLint::Lint}s
 suitable for reporting.

 @param offenses [Array<RuboCop::Cop::Offense>]
 @param source_map [Hash]