Static Analyzer for Solidity
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.
slither/tests/expected_json/unused_state.unused-state.json

312 lines
11 KiB

{
"success": true,
"error": null,
"results": {
"detectors": [
{
"elements": [
{
"type": "variable",
"name": "unused",
"source_mapping": {
"start": 44,
"length": 14,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
4
],
"starting_column": 5,
"ending_column": 19
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "A",
"source_mapping": {
"start": 28,
"length": 114,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9
],
"starting_column": 1,
"ending_column": 2
}
}
}
},
{
"type": "contract",
"name": "B",
"source_mapping": {
"start": 144,
"length": 78,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 1,
"ending_column": 2
}
}
],
"description": "A.unused (tests/unused_state.sol#4) is never used in B (tests/unused_state.sol#11-16)\n",
"markdown": "[A.unused](tests/unused_state.sol#L4) is never used in [B](tests/unused_state.sol#L11-L16)\n",
"check": "unused-state",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "variable",
"name": "unused2",
"source_mapping": {
"start": 64,
"length": 15,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
5
],
"starting_column": 5,
"ending_column": 20
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "A",
"source_mapping": {
"start": 28,
"length": 114,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9
],
"starting_column": 1,
"ending_column": 2
}
}
}
},
{
"type": "contract",
"name": "B",
"source_mapping": {
"start": 144,
"length": 78,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 1,
"ending_column": 2
}
}
],
"description": "A.unused2 (tests/unused_state.sol#5) is never used in B (tests/unused_state.sol#11-16)\n",
"markdown": "[A.unused2](tests/unused_state.sol#L5) is never used in [B](tests/unused_state.sol#L11-L16)\n",
"check": "unused-state",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "variable",
"name": "unused3",
"source_mapping": {
"start": 85,
"length": 15,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
6
],
"starting_column": 5,
"ending_column": 20
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "A",
"source_mapping": {
"start": 28,
"length": 114,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9
],
"starting_column": 1,
"ending_column": 2
}
}
}
},
{
"type": "contract",
"name": "B",
"source_mapping": {
"start": 144,
"length": 78,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 1,
"ending_column": 2
}
}
],
"description": "A.unused3 (tests/unused_state.sol#6) is never used in B (tests/unused_state.sol#11-16)\n",
"markdown": "[A.unused3](tests/unused_state.sol#L6) is never used in [B](tests/unused_state.sol#L11-L16)\n",
"check": "unused-state",
"impact": "Informational",
"confidence": "High"
},
{
"elements": [
{
"type": "variable",
"name": "unused4",
"source_mapping": {
"start": 106,
"length": 15,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
7
],
"starting_column": 5,
"ending_column": 20
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "A",
"source_mapping": {
"start": 28,
"length": 114,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
3,
4,
5,
6,
7,
8,
9
],
"starting_column": 1,
"ending_column": 2
}
}
}
},
{
"type": "contract",
"name": "B",
"source_mapping": {
"start": 144,
"length": 78,
"filename_used": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_relative": "tests/unused_state.sol",
"filename_absolute": "/home/travis/build/crytic/slither/tests/unused_state.sol",
"filename_short": "tests/unused_state.sol",
"is_dependency": false,
"lines": [
11,
12,
13,
14,
15,
16
],
"starting_column": 1,
"ending_column": 2
}
}
],
"description": "A.unused4 (tests/unused_state.sol#7) is never used in B (tests/unused_state.sol#11-16)\n",
"markdown": "[A.unused4](tests/unused_state.sol#L7) is never used in [B](tests/unused_state.sol#L11-L16)\n",
"check": "unused-state",
"impact": "Informational",
"confidence": "High"
}
]
}
}