Creating a Project

To create a project in PC-lint Plus View you will first have to generate the necessary data (JSON files) using PC-lint Plus command line, and then push the results to PC-lint Plus View server using PC-lint Plus View agent command line.

Generating JSON files with PC-lint Plus

The JSON files will contain the necessary data that will later be used to import the results in PC-lint Plus View server. They are generated using the -server_data option in your otherwise usual PC-lint Plus command line.

The -server_data must be specified before any modules are processed, as follows:

pclp co.lnt -server_data="<your-json-folder>" "+metric_report(scope=all,format=json,filename=<your-json-folder>/metrics.json)" project.lnt

Where:

  • co.lnt is your compiler configuration file.

  • -server_data is the option allowing to generate JSON files for PC-lint Plus View server.

  • <your-json-folder> is the path to the output folder where JSON files will be generated.

  • project.lnt is your project configuration file.

To know more about available options and PC-lint Plus command line usage, have a look at the Getting Started guides.

Pushing results to PC-lint Plus View server

PC-lint Plus results will be pushed to PC-lint Plus View server using PC-lint Plus View agent in a command line, which will allow you to create and update projects on the server.

Prerequisites

Before going further, make sure that you have downloaded PC-lint Plus View agent and that you have an authentication token.

Execute command line
java -jar pclpview-agent.jar -t <your-token> http://localhost:8280 -- --name="<your-project-name>" --dp="type=pclp,pclp_dir=<your-json-folder>" --repository="type=scm_auto,path=<your-source-folder>"

Where:

  • <your-token> is the token for authentication.

  • <your-project-name> is the name of your project.

  • <your-json-folder> is the path to the folder containing the JSON files generated in Generating JSON files with PC-lint Plus.

  • <your-source-folder> is the path to the folder containing the source code of your project.

Connect to PC-lint Plus View server

You can then visualize the results in PC-lint Plus View server, by connecting to the server URL in your web browser: http://localhost:8280.

To know more about available options and PC-lint Plus View agent command line usage, have a look at the Command Line guide