Organizing your code into modules
Organizing your code into modulesA module is a subset of your project's code base, reflecting the physical structure of your code. Modules can help you:
Prerequisites If an access control method has been set, you must have the Project admin role or have the 'manage modules' permission to create and edit modules. In order to add or change access permissions on a module, you need the 'assign role' permission (which a Project admin has by default). You must also create a project. Creating a moduleYou create modules in the Project Management area of Klocwork Static Code Analysis.
Test your new module
Precedence of module permissions rulesPrecedence is established for module permissions rules as follows:
Editing a moduleTo edit a module:
Only the module creator and those with permissions for the current project can edit a module.
Switching from path patterns to tree selectionWhen editing your module, if you have path patterns defined in a module and you switch to tree mode, the path patterns are applied to the tree. Once you save the changes, your previous path patterns are overwritten by the tree selections. This means that complex wildcard path patterns are not preserved. For example, if you previously specified /space/a* as your path pattern and it contains /space/apath and /space/anotherpath, both of these paths are selected in your tree. However, when you save the module, /space/a* is not preserved, so future paths that fit this criteria are not included by default. If you prefer this behavior, it may be best to stick with path patterns. What's next?Now you can:
|