Skip to content

xsd for the checkstyle configuration xml file #7517

@debashisdeb

Description

@debashisdeb

Use Case :

I'm planning to introduce custom checks for multiple users, in which each project owner can define their own set of checks. I also have a set of default set of checks that needs to run for every project. During the run time of Checkstyle, I want to merge the project specific checks and the default checks. Having a XSD can help me validate if the merged XML configuration file is formed correctly or not.
Since some of the checks go inside of the Checker module and many checks go inside the TreeWalker module, we need to correctly place the checks, so that the run doesn't fail at all after creating a wrong merged XML.

Question :
Is there any XSD available for validating ? Or may be an API within Checkstyle which can do the merge ?
I've seen the DTD that is present, but that doesn't help in completely validating the entire configuration file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions