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.
167 lines
7.9 KiB
167 lines
7.9 KiB
4 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "unused_but_shadowed",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 319,
|
||
|
"length": 56,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
26,
|
||
|
27,
|
||
|
28
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Test4",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 290,
|
||
|
"length": 87,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
25,
|
||
|
26,
|
||
|
27,
|
||
|
28,
|
||
|
29
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "unused_but_shadowed()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test4.unused_but_shadowed() (tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#26-28) is never used and should be removed\n",
|
||
|
"markdown": "[Test4.unused_but_shadowed()](tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#L26-L28) is never used and should be removed\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#L26-L28",
|
||
4 years ago
|
"id": "74ea8421cf7fa9e04d243014b61f3eee7a9c7648df98316c3881dd4f1f2ab3f7",
|
||
4 years ago
|
"check": "dead-code",
|
||
|
"impact": "Informational",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "unused",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 19,
|
||
|
"length": 34,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
2,
|
||
|
3,
|
||
|
4
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Test",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 0,
|
||
|
"length": 55,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
1,
|
||
|
2,
|
||
|
3,
|
||
|
4,
|
||
|
5
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "unused()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test.unused() (tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#2-4) is never used and should be removed\n",
|
||
|
"markdown": "[Test.unused()](tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#L2-L4) is never used and should be removed\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#L2-L4",
|
||
4 years ago
|
"id": "a7c13823116566bbbbb68e8a7efa78fe64785fcb8582069373eda7f27c523cb3",
|
||
4 years ago
|
"check": "dead-code",
|
||
|
"impact": "Informational",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "unused_but_shadowed",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 79,
|
||
|
"length": 55,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
10,
|
||
|
11,
|
||
|
12
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Test2",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 58,
|
||
|
"length": 78,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11,
|
||
|
12,
|
||
|
13
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "unused_but_shadowed()"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test2.unused_but_shadowed() (tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#10-12) is never used and should be removed\n",
|
||
|
"markdown": "[Test2.unused_but_shadowed()](tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#L10-L12) is never used and should be removed\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/dead-code/0.8.0/dead-code.sol#L10-L12",
|
||
4 years ago
|
"id": "aaba496684b73955e90b555de174e1cd03f0fee337849c4d58c10ef76ff93582",
|
||
4 years ago
|
"check": "dead-code",
|
||
|
"impact": "Informational",
|
||
|
"confidence": "Medium"
|
||
|
}
|
||
|
]
|
||
|
]
|