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.
149 lines
7.4 KiB
149 lines
7.4 KiB
[
|
|
[
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "testVariable",
|
|
"source_mapping": {
|
|
"start": 69,
|
|
"length": 21,
|
|
"filename_relative": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 30
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "f",
|
|
"source_mapping": {
|
|
"start": 23,
|
|
"length": 149,
|
|
"filename_relative": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "Similar",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 174,
|
|
"filename_relative": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 0
|
|
}
|
|
},
|
|
"signature": "f()"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "variable",
|
|
"name": "textVariable",
|
|
"source_mapping": {
|
|
"start": 100,
|
|
"length": 21,
|
|
"filename_relative": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
4
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 30
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "f",
|
|
"source_mapping": {
|
|
"start": 23,
|
|
"length": 149,
|
|
"filename_relative": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "Similar",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 174,
|
|
"filename_relative": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/similar-names/0.5.16/similar_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 0
|
|
}
|
|
},
|
|
"signature": "f()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Variable Similar.f().testVariable (tests/detectors/similar-names/0.5.16/similar_variables.sol#3) is too similar to Similar.f().textVariable (tests/detectors/similar-names/0.5.16/similar_variables.sol#4)\n",
|
|
"markdown": "Variable [Similar.f().testVariable](tests/detectors/similar-names/0.5.16/similar_variables.sol#L3) is too similar to [Similar.f().textVariable](tests/detectors/similar-names/0.5.16/similar_variables.sol#L4)\n",
|
|
"first_markdown_element": "tests/detectors/similar-names/0.5.16/similar_variables.sol#L3",
|
|
"id": "2f767a2bb6f48a8435ce456e2d3ad859bdeccf66507735a14e20515e914038d5",
|
|
"check": "similar-names",
|
|
"impact": "Informational",
|
|
"confidence": "Medium"
|
|
}
|
|
]
|
|
] |