Skip to content

Commit

Permalink
cli/reportgen
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Jul 31, 2024
1 parent f86b440 commit 2932410
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
22 changes: 11 additions & 11 deletions reports/report.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files_summary": {
"total_source_units": 74,
"total_sloc": 2089
"total_sloc": 2094
},
"files_details": {
"files_details": [
Expand Down Expand Up @@ -163,7 +163,7 @@
},
{
"file_path": "src/StateVariablesWritten.sol",
"n_sloc": 93
"n_sloc": 98
},
{
"file_path": "src/StorageConditionals.sol",
Expand Down Expand Up @@ -2140,9 +2140,9 @@
},
{
"contract_path": "src/StateVariablesWritten.sol",
"line_no": 58,
"src": "1706:22",
"src_char": "1706:22"
"line_no": 59,
"src": "1733:22",
"src_char": "1733:22"
},
{
"contract_path": "src/ZeroAddressCheck.sol",
Expand Down Expand Up @@ -2231,15 +2231,15 @@
},
{
"contract_path": "src/StateVariablesWritten.sol",
"line_no": 32,
"src": "931:8",
"src_char": "931:8"
"line_no": 33,
"src": "958:8",
"src_char": "958:8"
},
{
"contract_path": "src/StateVariablesWritten.sol",
"line_no": 47,
"src": "1387:12",
"src_char": "1387:12"
"line_no": 48,
"src": "1414:12",
"src_char": "1414:12"
},
{
"contract_path": "src/UninitializedStateVariable.sol",
Expand Down
12 changes: 6 additions & 6 deletions reports/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This report was generated by [Aderyn](https://github.com/Cyfrin/aderyn), a stati
| Key | Value |
| --- | --- |
| .sol Files | 74 |
| Total nSLOC | 2089 |
| Total nSLOC | 2094 |


## Files Details
Expand Down Expand Up @@ -121,7 +121,7 @@ This report was generated by [Aderyn](https://github.com/Cyfrin/aderyn), a stati
| src/SendEtherNoChecks.sol | 58 |
| src/StateShadowing.sol | 17 |
| src/StateVariables.sol | 58 |
| src/StateVariablesWritten.sol | 93 |
| src/StateVariablesWritten.sol | 98 |
| src/StorageConditionals.sol | 59 |
| src/StorageParameters.sol | 16 |
| src/T11sTranferer.sol | 8 |
Expand Down Expand Up @@ -156,7 +156,7 @@ This report was generated by [Aderyn](https://github.com/Cyfrin/aderyn), a stati
| src/reused_contract_name/ContractB.sol | 7 |
| src/uniswap/UniswapV2Swapper.sol | 50 |
| src/uniswap/UniswapV3Swapper.sol | 150 |
| **Total** | **2089** |
| **Total** | **2094** |


## Issue Summary
Expand Down Expand Up @@ -2155,7 +2155,7 @@ Check for `address(0)` when assigning values to address state variables.
addr = newAddr;
```

- Found in src/StateVariablesWritten.sol [Line: 58](../tests/contract-playground/src/StateVariablesWritten.sol#L58)
- Found in src/StateVariablesWritten.sol [Line: 59](../tests/contract-playground/src/StateVariablesWritten.sol#L59)

```solidity
simpleAddress = _value;
Expand Down Expand Up @@ -2250,13 +2250,13 @@ Instead of marking a function as `public`, consider marking it as `external` if
function setNonEmptyAlteredNumbers(
```

- Found in src/StateVariablesWritten.sol [Line: 32](../tests/contract-playground/src/StateVariablesWritten.sol#L32)
- Found in src/StateVariablesWritten.sol [Line: 33](../tests/contract-playground/src/StateVariablesWritten.sol#L33)

```solidity
function addValue(address _user, uint256 _id, int64 _value) public {
```

- Found in src/StateVariablesWritten.sol [Line: 47](../tests/contract-playground/src/StateVariablesWritten.sol#L47)
- Found in src/StateVariablesWritten.sol [Line: 48](../tests/contract-playground/src/StateVariablesWritten.sol#L48)

```solidity
function deleteValues(address _user, uint256 _id) public {
Expand Down
6 changes: 3 additions & 3 deletions reports/report.sarif
Original file line number Diff line number Diff line change
Expand Up @@ -3205,7 +3205,7 @@
},
"region": {
"byteLength": 22,
"byteOffset": 1706
"byteOffset": 1733
}
}
},
Expand Down Expand Up @@ -3368,7 +3368,7 @@
},
"region": {
"byteLength": 8,
"byteOffset": 931
"byteOffset": 958
}
}
},
Expand All @@ -3379,7 +3379,7 @@
},
"region": {
"byteLength": 12,
"byteOffset": 1387
"byteOffset": 1414
}
}
},
Expand Down

0 comments on commit 2932410

Please sign in to comment.