Class: SCSSLint::Reporter::TAPReporter

Inherits:
SCSSLint::Reporter show all
Defined in:
lib/scss_lint/reporter/tap_reporter.rb

Overview

Reports in TAP format. testanything.org/

Constant Summary collapse

TAP_VERSION =
'TAP version 13'.freeze

Instance Attribute Summary

Attributes inherited from SCSSLint::Reporter

#files, #lints, #log

Instance Method Summary collapse

Methods inherited from SCSSLint::Reporter

descendants, #initialize

Constructor Details

This class inherits a constructor from SCSSLint::Reporter

Instance Method Details

#report_lintsObject



7
8
9
10
11
12
13
# File 'lib/scss_lint/reporter/tap_reporter.rb', line 7

def report_lints
  output = [TAP_VERSION, format_plan(files, lints)]
  return format_output(output) unless files.any?

  output.concat(format_files(files, lints))
  format_output(output)
end