module SimpleCovLinterFormatter
Constants
- LINE_SECTIONS_DIVIDER
- MSG_DIVIDER
- SCOPES
- SORTING_MODES
- VERSION
Attributes
json_filename[W]
summary_covered_bg_color[W]
summary_enabled[W]
summary_enabled_bg[W]
summary_not_covered_bg_color[W]
summary_text_color[W]
Public Instance Methods
cover_all?()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 45 def cover_all? scope == :all end
json_filename()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 29 def json_filename @json_filename || 'coverage.linter.json' end
scope()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 41 def scope (@scope || :all).to_sym end
scope=(value)
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 33 def scope=(value) if !SCOPES.include?(value.to_sym) raise "Invalid scope. Must be one of: #{SCOPES.map(&:to_s).join(', ')}" end @scope = value end
setup() { |self| ... }
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 85 def setup yield self end
summary_coverage_sorting?()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 65 def summary_coverage_sorting? summary_files_sorting == :coverage end
summary_covered_bg_color()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 73 def summary_covered_bg_color (@summary_covered_bg_color || :darkgreen).to_sym end
summary_enabled()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 49 def summary_enabled !!@summary_enabled end
summary_enabled_bg()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 69 def summary_enabled_bg !!@summary_enabled_bg end
summary_files_sorting()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 61 def summary_files_sorting (@summary_files_sorting || :coverage).to_sym end
summary_files_sorting=(value)
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 53 def summary_files_sorting=(value) if !SORTING_MODES.include?(value.to_sym) raise "Invalid summary_files_sorting. Must be one of: #{SORTING_MODES.map(&:to_s).join(', ')}" end @summary_files_sorting = value end
summary_not_covered_bg_color()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 77 def summary_not_covered_bg_color (@summary_not_covered_bg_color || :firebrick).to_sym end
summary_text_color()
click to toggle source
# File lib/simplecov_linter_formatter.rb, line 81 def summary_text_color (@summary_text_color || :white).to_sym end