-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6642be
commit 2701258
Showing
10 changed files
with
592 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
|
||
|
||
{ | ||
"files.exclude": { | ||
"out": false, // set this to true to hide the "out" folder with the compiled JS files | ||
"dist": false // set this to true to hide the "dist" folder with the compiled JS files | ||
"workbench.colorCustomizations": { | ||
"titleBar.activeForeground": "#860303", | ||
"titleBar.inactiveForeground": "#860303", | ||
"titleBar.activeBackground": "#ffc8c8", | ||
"titleBar.inactiveBackground": "#ffc8c8" | ||
}, | ||
"search.exclude": { | ||
"out": true, // set this to false to include "out" folder in search results | ||
"dist": true // set this to false to include "dist" folder in search results | ||
}, | ||
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
"typescript.tsc.autoDetect": "off" | ||
"editor.tokenColorCustomizations": { | ||
"textMateRules": [ | ||
{ | ||
"scope": [ | ||
"comment", | ||
], | ||
"settings": { | ||
"fontStyle": "", | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pragma solidity 0.8.19; | ||
|
||
error RevertIt(); | ||
|
||
contract Example { | ||
function reverts() external pure { | ||
revert RevertIt(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pragma solidity 0.8.19; | ||
|
||
error RevertIt(); | ||
|
||
contract Example { | ||
function reverts() external pure { | ||
revert RevertIt(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pragma solidity 0.8.19; | ||
|
||
error RevertIt(); | ||
|
||
contract Example { | ||
function reverts() external pure { | ||
revert RevertIt(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "Slither", | ||
"informationUri": "https://github.com/crytic/slither", | ||
"version": "0.10.0", | ||
"rules": [] | ||
} | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"name": "MyContract", | ||
"kind": "contract", | ||
"parentIndex": -1 | ||
}, | ||
{ | ||
"name": "myFunction", | ||
"kind": "function", | ||
"parentIndex": 0 | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"ruleId": "Project", | ||
"message": { | ||
"text": "Check all dependencies for most recent version", | ||
"markdown": "MARKDOWN Check all dependencies for most recent version" | ||
}, | ||
"level": "note", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol" | ||
} | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"index": 1 | ||
}] | ||
}, | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/b.sol" | ||
} | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"index": 1 | ||
}] | ||
}, | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/b.sol" | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"index": 1 | ||
}] | ||
} | ||
} | ||
], | ||
"partialFingerprints": { | ||
"id": "9b6c59ba8db955b843fd53b0e479463ef0abdc939ce0e83a194e8e556b9f2f29" | ||
} | ||
}, | ||
{ | ||
"ruleId": "hoagies", | ||
"message": { | ||
"text": "Pragma version0.8.19 (/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol#1) necessitates a version too recent to be trusted. Consider deploying with 0.8.18.\n", | ||
"markdown": "Pragma version[0.8.19](/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol#L1) necessitates a version too recent to be trusted. Consider deploying with 0.8.18.\n" | ||
}, | ||
"level": "warning", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol" | ||
}, | ||
"region": { | ||
"startLine": 1, | ||
"endLine": 1 | ||
} | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"index": 1 | ||
}] | ||
} | ||
], | ||
"partialFingerprints": { | ||
"id": "9b6c59ba8db955b843fd53b0e479463ef0abdc939ce0e83a194e8e556b9f2f29" | ||
} | ||
}, | ||
{ | ||
"ruleId": "hoagies2", | ||
"message": { | ||
"text": "Pragma version0.8.19 (/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol#1) necessitates a version too recent to be trusted. Consider deploying with 0.8.18.\n", | ||
"markdown": "Pragma version[0.8.19](/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol#L1) necessitates a version too recent to be trusted. Consider deploying with 0.8.18.\n" | ||
}, | ||
"level": "warning", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol" | ||
}, | ||
"region": { | ||
"startLine": 1, | ||
"endLine": 1 | ||
} | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"index": 1 | ||
}] | ||
} | ||
], | ||
"partialFingerprints": { | ||
"id": "9b6c59ba8db955b843fd53b0e479463ef0abdc939ce0e83a194e8e556b9f2f29" | ||
} | ||
}, | ||
{ | ||
"ruleId": "hoagies3", | ||
"message": { | ||
"text": "Pragma version0.8.19 (/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol#1) necessitates a version too recent to be trusted. Consider deploying with 0.8.18.\n", | ||
"markdown": "Pragma version[0.8.19](/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol#L1) necessitates a version too recent to be trusted. Consider deploying with 0.8.18.\n" | ||
}, | ||
"level": "warning", | ||
"locations": [ | ||
{ | ||
"physicalLocation": { | ||
"artifactLocation": { | ||
"uri": "/Users/devtooligan/audit/tools/tob-extensions/vscode-sarif-explorer/src/test/sarif_files/a.sol" | ||
}, | ||
"region": { | ||
"startLine": 1, | ||
"endLine": 1 | ||
} | ||
}, | ||
"logicalLocations": [ | ||
{ | ||
"index": 1 | ||
}] | ||
} | ||
], | ||
"partialFingerprints": { | ||
"id": "9b6c59ba8db955b843fd53b0e479463ef0abdc939ce0e83a194e8e556b9f2f29" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.