Class: Rigor::CLI::ShowBleedingedgeCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/rigor/cli/show_bleedingedge_command.rb

Overview

Executes rigor show-bleedingedge (ADR-50 § WD2).

Prints the bleeding-edge overlay — the Rigor-maintained set of the next major's queued changes (BleedingEdge) — as an explicit list, and reports which of them the project's bleeding_edge: configuration adopts. Each feature is rendered with its kind: a severity feature prints the rule → severity diff it imposes, and a behaviour feature has no such diff to print, so its summary carries the whole explanation. Ids that have already graduated to default-on (ADR-50 § WD7) are listed after the overlay.

Read-only: it loads .rigor.yml to resolve the active selection but runs no analysis.

Constant Summary collapse

USAGE =
"Usage: rigor show-bleedingedge [options]"

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Rigor::CLI::Command

Instance Method Details

#runInteger

Returns CLI exit status.

Returns:

  • (Integer)

    CLI exit status.



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/rigor/cli/show_bleedingedge_command.rb', line 25

def run
  options = parse_options
  configuration = load_configuration(options)
  return CLI::EXIT_USAGE if configuration.nil?

  case options.fetch(:format)
  when "json" then render_json(configuration)
  else render_text(configuration)
  end
  0
end