|In this topic:|
Klocwork integrates with your build, capturing all of the information it needs to provide a centralized view of the entire code stream.
Klocwork stores this information in a text file called a build specification. The build specification is the basis of the Klocwork analysis.
It's important that the build specification is an accurate and up-to-date representation of your build. If the build specification is inaccurate, the Klocwork analysis will be inaccurate too.
A build specification is required at both the integration and local build levels. Creating a build specification is the first essential task following installation.
- which file locations will be searched for analyzable files, for example, .js, .ts
Before you can create a build specification
- install the Server package and/or Desktop tools. See Installing Klocwork.
Capture your build settings
kwjsspec -e node -e es6 -e browser -v 2018 -m --typescript -w react --ignores-file joplin.ignore /space/prj/joplin
- -e adds global variables based on the specified environment, in this case: node, es6, browser
- -v adds the ECMA version, in this case: 2018
- --typescript indicates that the project uses Typescript
- -w indicates the framework to use, in this case: react
- --ignores-file specifies a file that contains global file patterns to ignore, in this case: joplin.ignore in /space/prj/joplin
This command generates a build specification for your project in the current directory named kwjsspec.out. Use the -o option to specify a different location for the build specification.