Class AssetsSourcesReservedRule
java.lang.Object
io.github.duckasteroid.agentdocs.publish.validation.AssetsSourcesReservedRule
- All Implemented Interfaces:
AgentDocsValidationRule
Flags an author-provided
assets/sources entry in the docs root, because
agent-docs-resolve-gradle-plugin reserves that exact path: when a consumer enables
includeSources, it unpacks the dependency's sources jar there, overwriting whatever the author
shipped without warning.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid()Stable rule identifier used for opt-out configuration.validate(ValidationContext context) Validates the docs using the provided context.
-
Constructor Details
-
AssetsSourcesReservedRule
public AssetsSourcesReservedRule()
-
-
Method Details
-
id
Description copied from interface:AgentDocsValidationRuleStable rule identifier used for opt-out configuration.- Specified by:
idin interfaceAgentDocsValidationRule- Returns:
- rule ID
-
validate
Description copied from interface:AgentDocsValidationRuleValidates the docs using the provided context.- Specified by:
validatein interfaceAgentDocsValidationRule- Parameters:
context- validation context- Returns:
- validation result including rule ID and any failure details
-