Class LensContractValidator
java.lang.Object
com.arc_e_tect.gradle.trackerlens.contract.LensContractValidator
Enforces every
ContractRule against a generated dashboard file.
This validator never inspects text content - only the structural presence of the classes and
data-* attributes each ContractRule declares, per the "surrounding text is not
part of the contract" rule described on ContractRule itself.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LensContractValidator
public LensContractValidator()Creates a newLensContractValidator.
-
-
Method Details
-
validate
Validateshtmlagainst everyContractRule.- Parameters:
html- the dashboard HTML file to validate- Returns:
- every violation found, in
ContractRuledeclaration order; empty whenhtmlconforms to the contract
-