C-Style Metrics

Number of Functions

Mnemonic: FUNC

Description: Total number of functions defined in the source file

Artefact Type: FILE;HEADER

Default Value: 0

Assignment Operators

Mnemonic: ASOP

Description: Number of assignment operators used in the source file

Artefact Type: FILE;HEADER;FUNCTION;CLASS

Default Value: 0

Comparison Operators

Mnemonic: CPOP

Description: Number of comparison operators used in the source file

Artefact Type: FILE;HEADER;FUNCTION;CLASS

Default Value: 0

Standard Operators

Mnemonic: STOP

Description: Number of standard operators used in the source file

Artefact Type: FILE;HEADER;FUNCTION;CLASS

Default Value: 0

Special Operators

Mnemonic: SPOP

Description: Number of special operators used in the source file

Artefact Type: FILE;HEADER;FUNCTION;CLASS

Default Value: 0

Cyclomatic Complexity

Mnemonic: CCN

Description: Number of linearly independent paths in the function control graph.

Artefact Type: FUNCTION

Default Value: 1

Non-Cyclic Paths

Mnemonic: PATH

Description: Number of non-cyclic paths in the function.

Artefact Type: FUNCTION

Default Value: 1

Return Statements

Mnemonic: RETURN

Description: Number of 'return' statements in the function

Artefact Type: FUNCTION

Default Value: 1

Number of Parameters

Mnemonic: NOP

Description: Number of formal parameters in the function

Artefact Type: FUNCTION

Default Value: 0

For Statements

Mnemonic: FOR

Description: Number of 'for' statements in the function

Artefact Type: FUNCTION

Default Value: 0

While Statements

Mnemonic: WHIL

Description: Number of 'while' statements in the function

Artefact Type: FUNCTION

Default Value: 0

Do While Statements

Mnemonic: DOWH

Description: Number of 'do...while' statements in the function

Artefact Type: FUNCTION

Default Value: 0

Switch Statements

Mnemonic: SWIT

Description: Number of 'switch' statements in the function

Artefact Type: FUNCTION

Default Value: 0

Continue Statements

Mnemonic: CONT

Description: Number of 'continue' statements in the function

Artefact Type: FUNCTION

Default Value: 0

Loop Statements

Mnemonic: LOOP

Description: Number of loop statements in the function

Artefact Type: FUNCTION

Default Value: 0

Orelse operators

Mnemonic: OREL

Description: Number of 'orelse' operators

Artefact Type: FUNCTION

Default Value: 0

Andthen Operators

Mnemonic: ANTH

Description: Number of 'andthen' operators

Artefact Type: FUNCTION

Default Value: 0

Ternary operators

Mnemonic: TERN

Description: Number of ternary operators i.e. ?:

Artefact Type: FUNCTION

Default Value: 0

Break in Switch

Mnemonic: BRKS

Description: Number of 'break' statements in 'switch' in the function

Artefact Type: FUNCTION

Default Value: 0

Break in Loop

Mnemonic: BRKL

Description: Number of 'break' statements in loop in the function

Artefact Type: FUNCTION

Default Value: 0

Case Labels

Mnemonic: CASE

Description: Number of 'case' labels in the function

Artefact Type: FUNCTION

Default Value: 0

Case Blocks

Mnemonic: CABL

Description: Number of 'case' blocks in 'switch' in the function

Artefact Type: FUNCTION

Default Value: 0

Call to exit

Mnemonic: EXIT

Description: Number of calls to the exit function

Artefact Type: FUNCTION

Default Value: 0