mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
4.3 KiB
96 lines
4.3 KiB
2 years ago
|
[
|
||
|
[
|
||
|
{
|
||
2 years ago
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "highCC",
|
||
|
"source_mapping": {
|
||
|
"start": 244,
|
||
|
"length": 536,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol",
|
||
2 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol",
|
||
2 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29,
|
||
|
30,
|
||
|
31
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "HighCyclomaticComplexity",
|
||
|
"source_mapping": {
|
||
|
"start": 25,
|
||
|
"length": 757,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol",
|
||
2 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol",
|
||
2 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13,
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29,
|
||
|
30,
|
||
|
31,
|
||
|
32,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 0
|
||
|
}
|
||
|
},
|
||
|
"signature": "highCC()"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "HighCyclomaticComplexity.highCC() (tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol#17-31) has a high cyclomatic complexity (12).\n",
|
||
|
"markdown": "[HighCyclomaticComplexity.highCC()](tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol#L17-L31) has a high cyclomatic complexity (12).\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/cyclomatic-complexity/0.8.16/HighCyclomaticComplexity.sol#L17-L31",
|
||
2 years ago
|
"id": "405b9e7f5697539c75171d728f0a10b6ebb7fe08441c445b0e63c33982c98e2d",
|
||
2 years ago
|
"check": "cyclomatic-complexity",
|
||
|
"impact": "Informational",
|
||
|
"confidence": "High"
|
||
|
}
|
||
|
]
|
||
|
]
|