Creating Custom rules for Unsupported Languages

Hi @LunaticMuch,

The parsing is done by language plugins and each plugin has its own parsing engine, that may use an AST internally or not.

So, there’s no way to tell how to see the AST for a given language because it really depends on how the specific plugin was implemented. This information is neither used nor stored on the SonarQube server.

If you want to parse graphql files, you’ll need to implement a new plugin and parse the files yourself using your preferred library.

2 Likes