GBS Logo HELP HOME Generic Build Support (GBS) - User Manual
The sca_*.gbs files Bottom Doc. Button
Release RMC-06.02
(2024-04-29)


- Home
Getting Started
- Quick Start
- Release Notes
- Install Notes
- Create a GBS-WA/System
- FAQ
- Terms and Conditions (The Fine Print)
Basics
- Definitions & Acronyms
- Introduction
- Top Level Directory Structure
- Full Directory Structure
- Handling SubSystems & Steps
- Procedures
- Software Configuration Management Support

Manual Pages
- The Command-Line Interface
- All Commands
- The gbssys... Commands
- Generating Code (Building)
- Libraries & Executables and Testing
- Exporting Deliverables
- Auditing
- Customisations (Session)
- Customisations (User)
- Customisations (Admin)
- Integration with other Tools
- Plugins (Admin)
- Environment Variables (EnvVars)
User Files
- The GLKBT (glk/glb/glt) Files
Internal (.gbs) Files
- GBS Files - General
- audit.gbs
- broadcast.gbs
- build.gbs
- export.gbs
- flags_*.gbs
- subsys.gbs (.bat/.sh)
- incs_*.gbs
- owners.gbs
- sca_*.gbs
- scope.gbs
- site.gbs (.bat/.sh)
- steps.gbs
- switch.gbs (.bat/.sh)
- system.gbs
- tool.gbs
Various
- Development
- About
- Metrics Help

Full Documentation
- All Docs - Printable


Contents Bottom Doc. Button Top Document Button Down Section Button Blank

Description
Example of a sca_*.gbs

Description Bottom Doc. Button Top Document Button Down Section Button Up Section Button

Purpose Bottom Doc. Button Top Document Button Down Section Button Up Section Button Down Chapter Button Blank

The sca_*.gbs files are used to define the behaviour of SCA Audits.
There are two types of sca_*.gbs files:

  • The sca_build.gbs file
    - Primary file
    - Specifies the associated Build
  • The sca_uppercase_name.gbs file
    - Include file
    - Can be included by the sca_build.gbs (and also by other sca_uppercase_name.gbs files.

The sca_*.gbs files can be placed in the following locations:

  • $GBS_SUBSYS_PATH/audit/$audit
  • $GBS_SYSAUDIT_PATH/$audit
The sca_build.gbs file is first searched in the current SubSystem/audit directory.
If not found it is searched in the SYSAUDIT directory

General Bottom Doc. Button Top Document Button Down Section Button Up Section Button Down Chapter Button Up Chapter Button

Please refer to .gbs files: General information

Additional for this file:

  • The .include directive is allowed.
    If the sca_build.gbs was found in the SubSystem the Include-path is:
    - $GBS_SUBSYS_PATH/audit/$audit
    - $GBS_SYSAUDIT_PATH/$audit
    If the sca_build.gbs was found in the SYSAUDIT the Include-path is:
    - $GBS_SYSAUDIT_PATH/$audit (same directory) only

Contents: Bottom Doc. Button Top Document Button Down Section Button Up Section Button Down Chapter Button Up Chapter Button

Syntax:

+|-flag value|value-list [ #comments ]

The file is basically a 'flags' file.
Flags are switched on and off by placing a '+' or '-' in front
One flag per line
Possible flags are: E F Q T
Only the E flag can be disabled all others must be preceded by a '+'

Semantics:

E value-list
Enables/Disables Warnings/Errors from the sca tool.
value-list
ALL | message-id | message--wildcard-id
Initially all Warning/Errors are enabled
Wildcard characters are '*' and '?'
Note that '+E ALL' is the same as '+E *'
F value
Specifies the Format of the warning/error message on stdout.
value
NONE | DEFAULT | PCLINT | VISUAL_C | GNU_C | ECLIPSE
Q path
Ignore (Quiet) warnings/errors in the specified path / file-spec.
path
File or Directory Path
Note that system header-files and files in GBSEXT_plugin_PATH are Quieted by default.
T threshold_expression
Override Threshold setting for a Metric.
threshold_expression
Syntax:
metric_name=[min_value][,max_value][:msg_nr]
Either min_value or max_value must be specified, or both.
msg_nr: Specifies a use-defined message to be output after file-analysis.
Not implemented yet.

Notes: Bottom Doc. Button Top Document Button Down Section Button Up Section Button Blank Up Chapter Button

None

Example of a sca_*.gbs: Bottom Doc. Button Top Document Button Blank Up Section Button

    #========================================================
    #   [SYSAUDIT:pclint[mingw]] sca_mingw.gbs
    #========================================================
    
    .include sca_ALL.gbs
    
    ###EOF###
    
    
and...
    
    #========================================================
    #   [SYSAUDIT:pclint[ALL]] sca_ALL.gbs
    #========================================================
    
    -E ALL
    +E 1* 2* 3*	 # Enable all messages starting with 1 2 or 3
    +E 537           # Repeated include file name
    -E 1042          # At least one class-like operand is required with operator 
    
    +Q $GBSEXT_MINGW_CPP_PATH
    
    +F NONE
    
    +T TLN=20,400:6001
    
    ###EOF###
    
    

sca.html