Skip to content

Commit cd174ba

Browse files
fix it tests
1 parent 1eb3c6e commit cd174ba

File tree

2 files changed

+12
-12
lines changed
  • integration-tests

2 files changed

+12
-12
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
patterns:
22
Lizard_ccn-minor:
33
category: Complexity
4-
description: Check the Cyclomatic Complexity value of a function or logic block. If the threshold is not met, raise a Minor issue. The default threshold is 5.
4+
description: Checks that the cyclomatic complexity of functions or logic blocks does not exceed a minor threshold, defaulting to 5.
55
explanation: |-
66
# Minor Cyclomatic Complexity control
77
@@ -11,10 +11,10 @@ patterns:
1111
severityLevel: Info
1212
threshold: 5
1313
timeToFix: 5
14-
title: Minor Cyclomatic Complexity control
14+
title: Enforce Minor Cyclomatic Complexity Threshold
1515
Lizard_nloc-critical:
1616
category: Complexity
17-
description: Check the number of lines of code (without comments) in a function or logic block. If the threshold is not met, raise a Critical issue. The default threshold is 100.
17+
description: Checks if functions or logic blocks exceed a set maximum number of lines of code (excluding comments), defaulting to 100 lines.
1818
explanation: |-
1919
# Critical NLOC control - Number of Lines of Code (without comments)
2020
@@ -23,11 +23,11 @@ patterns:
2323
level: Error
2424
severityLevel: Error
2525
threshold: 100
26-
timeToFix: 5
27-
title: Critical NLOC control - Number of Lines of Code (without comments)
26+
timeToFix: 15
27+
title: Enforce Maximum Number of Lines of Code in Functions
2828
Lizard_nloc-medium:
2929
category: Complexity
30-
description: Check the number of lines of code (without comments) in a function. If the threshold is not met, raise a Medium issue. The default threshold is 50.
30+
description: Checks if the number of lines of code (excluding comments) in a function exceeds a medium threshold (default 50 lines).
3131
explanation: |-
3232
# Medium NLOC control - Number of Lines of Code (without comments)
3333
@@ -36,5 +36,5 @@ patterns:
3636
level: Warning
3737
severityLevel: Warning
3838
threshold: 50
39-
timeToFix: 5
40-
title: Medium NLOC control - Number of Lines of Code (without comments)
39+
timeToFix: 10
40+
title: Enforce Medium Number of Lines of Code (NLOC) Limit

integration-tests/init-without-token/expected/tools-configs/lizard.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ patterns:
1010
level: Warning
1111
severityLevel: Warning
1212
threshold: 8
13-
timeToFix: 5
13+
timeToFix: 10
1414
title: Enforce Medium Cyclomatic Complexity Threshold
1515
Lizard_file-nloc-medium:
1616
category: Complexity
@@ -20,7 +20,7 @@ patterns:
2020
level: Warning
2121
severityLevel: Warning
2222
threshold: 500
23-
timeToFix: 5
23+
timeToFix: 10
2424
title: Enforce Medium File Length Limit Based on Number of Lines of Code
2525
Lizard_nloc-medium:
2626
category: Complexity
@@ -33,7 +33,7 @@ patterns:
3333
level: Warning
3434
severityLevel: Warning
3535
threshold: 50
36-
timeToFix: 5
36+
timeToFix: 10
3737
title: Enforce Medium Number of Lines of Code (NLOC) Limit
3838
Lizard_parameter-count-medium:
3939
category: Complexity
@@ -46,5 +46,5 @@ patterns:
4646
level: Warning
4747
severityLevel: Warning
4848
threshold: 8
49-
timeToFix: 5
49+
timeToFix: 10
5050
title: Enforce Medium Parameter Count Limit

0 commit comments

Comments
 (0)