Skip to content

Structured report of compliance failures #811

Closed
@roxspring

Description

@roxspring

My team have requested better integration into our CI than simply failing a maven build, at a minimum they'd like to see a PR comment summarising the state of compliance failures. To my mind this would be best accomplished by:

  • Spotless Core gains a mechanism to output a structure (JSON?) report indicating which files and lines need attention
  • Spotless Maven/Gradle plugins gain a third mode of operation: to check fails and build a spotless-report.json on their status without failing the build.
  • I do some integration work to turn the JSON report into a markdown comment or code review (suspect this would be too niche for a Spotless feature)

Is there a better / simpler option I should be looking into? Would a structured report like this be welcome for Spotless?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions