Elie Richa de974e024a Merge branch 'topic/elie' into 'main'
Add a LICENSE file and adjust workspace settings

See merge request eng/ide/sarif-ada!4
2024-03-13 15:01:28 +00:00
2024-03-11 15:33:53 +01:00
2024-02-21 11:48:58 +02:00
2024-01-22 14:09:34 +01:00
2024-02-21 11:48:58 +02:00
2024-02-21 11:48:58 +02:00
2024-03-12 16:02:46 +00:00
2024-03-11 15:28:24 +01:00

SARIF Ada

An Ada library generated with the JSON Schema for Ada tool for parsing and producing SARIF reports.

VS Code Workspace

A VS Code workspace is provided to work with this repository. It is recommended to check out the VSS repository relative to this one as ../VSS.

Alternatively you can change the GPR_PROJECT_PATH variable in the .vscode/settings.json workspace settings file to include your custom location of VSS or set it in the environment before invoking VS Code.

SARIF types and I/O subprograms

The program gen_json generates the necessary types and procedures to process SARIF files.

It generates all the necessary code from the official SARIF JSON Schema file sarif-schema-2.1.0.json downloaded from the official source.

Generating the code

Have a working Ada environment, with gnatchop and gnatpp binaries (present by default in GNAT toolchains) and alr available in your PATH (you can download Alire here).

Then you will need to build the gen_json tool from the VSS repository, and make it available in your PATH environment variable. Here are the instructions to achieve that:

git clone https://github.com/AdaCore/VSS.git
cd VSS/tools/json_schema
alr build
export PATH=`pwd`/../../.objs/tools:$PATH

Now you can generate the code with a single make generate command.

Description
No description provided
Readme Apache-2.0 147 KiB
Languages
Ada 99.9%