forked from crytic/slither
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into dev-improve-reentrancy
- Loading branch information
Showing
380 changed files
with
8,484 additions
and
436 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 |
---|---|---|
|
@@ -25,6 25,7 @@ jobs: | |
type: ["cli", | ||
"dapp", | ||
"data_dependency", | ||
"path_filtering", | ||
# "embark", | ||
"erc", | ||
# "etherlime", | ||
|
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 |
---|---|---|
|
@@ -47,6 47,7 @@ coverage.xml | |
*.cover | ||
.hypothesis/ | ||
.vscode/ | ||
storage_layout.json | ||
# Translations | ||
*.mo | ||
*.pot | ||
|
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 |
---|---|---|
@@ -1,8 1,13 @@ | ||
from typing import Tuple, List, Type | ||
|
||
from slither_my_plugin.detectors.example import Example | ||
|
||
from slither.detectors.abstract_detector import AbstractDetector | ||
from slither.printers.abstract_printer import AbstractPrinter | ||
|
||
|
||
def make_plugin(): | ||
def make_plugin() -> Tuple[List[Type[AbstractDetector]], List[Type[AbstractPrinter]]]: | ||
plugin_detectors = [Example] | ||
plugin_printers = [] | ||
plugin_printers: List[Type[AbstractPrinter]] = [] | ||
|
||
return plugin_detectors, plugin_printers |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
### Test path filtering across POSIX and Windows | ||
|
||
solc-select use 0.8.0 | ||
slither "tests/test_path_filtering/test_path_filtering.sol" --config "tests/test_path_filtering/slither.config.json" > "output.txt" 2>&1 | ||
|
||
if ! grep -q "0 result(s) found" "output.txt" | ||
then | ||
echo "Path filtering across POSIX and Windows failed" | ||
rm output.txt | ||
exit 5 | ||
else | ||
rm output.txt | ||
fi |
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
Oops, something went wrong.