Connect to a project or stream on the Validate Server
You get the most from static code analysis when you connect a small local project to a larger project or stream on the Validate Server. The small local project is analyzed quickly while incorporating Klocwork knowledge bases generated on the server where additional source files were analyzed (for example, shared libraries). Connecting to a server project or stream also allows you to share issue status information with the integration build analysis and among team members. You can run a standalone desktop analysis, but the analysis only derives knowledge from the local project's source files.
You perform this step only once for each project.
Connect to a project or stream using classic authentication
- In Visual Studio, go to Extensions > Klocwork > Solution Properties.
- From the Klocwork Server project list, select the server project or stream you want to connect to.
- Click OK.
For a mixed solution, you connect to two server projects: one on the C/C++ Projects tab and one on the C# Projects tab.
Connect to a project or stream using SAML or OIDC authentication
- In Visual Studio, go to Extensions > Klocwork > Options.
- Expand Klocwork and select General.
- Ensure that the Klocwork Server host and port information is correct.
- Click OK. The Klocwork Authentication dialog shows the command that is required to connect to the Validate server.
- Open a command prompt, then run the following command:
kwauth --url http(s)://<ip-address>:<port-number> --insecure
and follow the prompts. - In the Validate Device Authorization page, click Authorize device. Validate shows that your device is now connected.
- In Visual Studio, go to Extensions > Klocwork > Solution Properties.
- From the Klocwork Server project list, select the server project or stream you want to connect to.
- Click OK.