Exception: SpecGuard::RSpec::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/specguard/rspec.rb

Overview

The Ruby client for SpecGuard.

The linter is complete end to end: it finds @intent: annotations in spec files, captures each payload string-aware, normalizes PROTOCOL.md §1's permissive syntax into strict JSON, validates the result against the vendored OpenTestIntent schema, and reports violations in the reference tool's own grammar under the 0/1/2 exit contract (see CLI).

The RSpec formatter (SpecGuard::RSpecFormatter) is the other half of the client, and it is deliberately not required from here: rspec is a development dependency of this gem, not a runtime one, and bin/specguard-lint loads this file on machines that may have no RSpec at all. Requiring rspec/core from this chain would turn a missing test framework into a broken linter. Load it by its own path when you want it — require "specguard/rspec/formatter" — and see that file for the opt-in wiring.

Direct Known Subclasses

ScanError, SchemaError, UsageError, ValidatorError