microsoft / ApplicationInspector

A source code analyzer built for surfacing features of interest and other characteristics to answer the question 'What's in the code?' quickly using static analysis with a json based rules engine. Ideal for scanning components before use or detecting feature level changes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a Json Schema Specification for AI Rules

gfs opened this issue · comments

Is your feature request related to a problem? Please describe.
The AI (and devskim) rule format is described primary on the Wiki (though the source of truth is the code). The validation we have appears to miss possible formatting errors as noted in #559. It could make validation easier if there were a defined schema.

Describe the solution you'd like
Publish a schema (in the AppInspector repo?) for the JSON rule format and additionally validate rules using the schema - as well as the logical rules validator.