Skip to content

SEM004 : Cyclomatic complexity

Metrics rule - calculates code cyclomatic complexity.

The rule is only informational.

The rule has a Batch scope and is applied only on the SQL script.

Rule has no parameters.

The rule does not need Analysis Context or SQL Connection.

Not configured.

Metrics

There is no additional info for this rule.

BEGIN TRY
IF (12 <1 )
SELECT 1
ELSE
SELECT 2
END TRY
BEGIN CATCH
IF (12 <1 )
SELECT 1
ELSE
SELECT 2
END CATCH
IF (12 <1 )
SELECT 1
ELSE
IF (12 <1 )
SELECT 1
ELSE
SELECT 2
IF (12>1)
SELECT 4
ELSE
SELECT 5
  Message Line Column
1 SEM004 : CyclomaticComplexity=7 0 0

Analysis Rules