Class: RosettAi::Thor::Tasks::Comply
- Inherits:
-
Thor
- Object
- Thor
- RosettAi::Thor::Tasks::Comply
- Defined in:
- lib/rosett_ai/thor/tasks/comply.rb
Overview
CLI task for rai comply — compliance verification.
Runs CRA, license, and SPDX header compliance checks. Produces TTY-aware or machine-readable (JSON) output. Exit codes: 0 = all pass, 1 = warnings only, 2 = any failure.
Instance Method Summary collapse
Instance Method Details
#check ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rosett_ai/thor/tasks/comply.rb', line 49 def check checks = selected_checks results = RosettAi::Comply::Runner.new( project_root: resolve_project_root, checks: checks ).run reporter = RosettAi::Comply::Reporter.new( results: results, format: [:format] ) reporter.report code = reporter.exit_code exit code unless code.zero? end |