You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
5
+
explanation: |-
6
+
# Minor Cyclomatic Complexity control
7
+
8
+
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 4.
9
+
id: Lizard_ccn-minor
10
+
level: Info
11
+
severityLevel: Info
12
+
threshold: 5
13
+
timeToFix: 5
14
+
title: Minor Cyclomatic Complexity control
15
+
Lizard_nloc-critical:
16
+
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.
18
+
explanation: |-
19
+
# Critical NLOC control - Number of Lines of Code (without comments)
20
+
21
+
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.
22
+
id: Lizard_nloc-critical
23
+
level: Error
24
+
severityLevel: Error
25
+
threshold: 100
26
+
timeToFix: 5
27
+
title: Critical NLOC control - Number of Lines of Code (without comments)
28
+
Lizard_nloc-medium:
29
+
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.
31
+
explanation: |-
32
+
# Medium NLOC control - Number of Lines of Code (without comments)
33
+
34
+
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.
35
+
id: Lizard_nloc-medium
36
+
level: Warning
37
+
severityLevel: Warning
38
+
threshold: 50
39
+
timeToFix: 5
40
+
title: Medium NLOC control - Number of Lines of Code (without comments)
message: Named Credentials (and callout endpoints) should be used instead of hard-coding credentials. 1. Hard-coded credentials are hard to maintain when mixed in with application code. 2. It is particularly hard to update hard-coded credentials when they are used amongst different classes. 3. Granting a developer access to the codebase means granting knowledge of credentials, and thus keeping a two-level access is not possible. 4. Using different credentials for different environments is troublesome and error-prone.
6
+
metadata:
7
+
category: security
8
+
confidence: HIGH
9
+
cwe:
10
+
- 'CWE-540: Inclusion of Sensitive Information in Source Code'
11
+
impact: HIGH
12
+
likelihood: LOW
13
+
references:
14
+
- https://cwe.mitre.org/data/definitions/540.html
15
+
subcategory:
16
+
- vuln
17
+
technology:
18
+
- salesforce
19
+
min-version: 1.44.0
20
+
mode: taint
21
+
pattern-sinks:
22
+
- patterns:
23
+
- pattern: req.setHeader($X, ...);
24
+
- focus-metavariable: $X
25
+
pattern-sources:
26
+
- pattern: '...String $X = ''Authorization'';'
27
+
severity: ERROR
28
+
- id: clojure.lang.security.use-of-md5.use-of-md5
29
+
languages:
30
+
- clojure
31
+
message: MD5 hash algorithm detected. This is not collision resistant and leads to easily-cracked password hashes. Replace with current recommended hashing algorithms.
0 commit comments