Commit Graph

87 Commits (a0f7be75de316107a1ab65518d54cd8cc05d238e)

Author SHA1 Message Date
Josselin a0f7be75de slither-format: 6 years ago
Josselin 5b0a788766 slither-format: clean code 6 years ago
Josselin eaf1c99ffe Slither-format: 6 years ago
rajeevgopalakrishna 9c7f71fa12 Adds multiline formatting changes. 6 years ago
rajeevgopalakrishna 37cdcc12c5 Makes regex stricter for external-function detector. 6 years ago
rajeevgopalakrishna 32120be441 Adds use of get_contract_from_name and other loop optimizations. 6 years ago
rajeevgopalakrishna b9962c0d96 Adds five more real-world non-trivial contracts for testing. 6 years ago
rajeevgopalakrishna 9e482a4f92 Adds patch file creation. Keeps track of relative and absolute file names. Fixes bug in patch overlap and naming-convention of function definition/calls and contract function variable. 6 years ago
rajeevgopalakrishna 85c3133634 Addresses source mapping utf-8 related issue fixed by #252. 6 years ago
rajeevgopalakrishna 4b09dc702b Adds missing import of sys. 6 years ago
rajeevgopalakrishna 6c1dd58eec Fixes a regex bug (missing space) in formatting external-function. 6 years ago
rajeevgopalakrishna 99c1fcdd10 Enables logging. 6 years ago
rajeevgopalakrishna 91ce3b701e Adds debug prints. Adds CryptoKitty Core test which fails because of incorrect source mappings? 6 years ago
rajeevgopalakrishna ebb5502ac9 Adds support for crytic_compile cryticparser. 6 years ago
rajeevgopalakrishna 128f1a3ced Fixes uninitialised variable bugh! Manifests when patch count is zero. 6 years ago
rajeevgopalakrishna 2e93076528 Adds support for inheritance in naming-convention of modifier uses. 6 years ago
rajeevgopalakrishna da8f14c84b Adds support for inheritance in naming-convention of event calls. 6 years ago
rajeevgopalakrishna be84d6618a Adds support for inheritance in naming-convention of enums. 6 years ago
rajeevgopalakrishna 54f3f26e8a Adds support for inheritance in naming-convention of structure variables. 6 years ago
rajeevgopalakrishna f8a07a90e1 Moves the inheritance testing to existing test. 6 years ago
rajeevgopalakrishna 2724365c60 Adds support for inheritance in naming-convention of state variables. 6 years ago
rajeevgopalakrishna 3e68ffc8a2 Adds overlapping patch detection and pruning. Adds a test for detector combinations. 6 years ago
rajeevgopalakrishna f60e4d4915 Adds --verbose-json option to print patches in json format. The earlier --verbose option is now --verbose-test for use with unit tests. 6 years ago
rajeevgopalakrishna 2c987ad250 Corrects list of available detectors for usage --help 6 years ago
rajeevgopalakrishna 92792bcdb3 Adds minor formatting edits to README.md 6 years ago
rajeevgopalakrishna d2422dc649 Adds README.md 6 years ago
rajeevgopalakrishna 993418b2f4 Updates .gitignore to exclude emacs backup files ending in ~ 6 years ago
rajeevgopalakrishna c2461693da Simplifies format_external_function to focus on public/implicit visibility specifier. 6 years ago
rajeevgopalakrishna a450661cd0 Refined format_constant_function to focus on the specific (view|pure|constant) string. 6 years ago
rajeevgopalakrishna 36afdca50e Changes use of parameters_src and returns_src to source_mapping objects instead of raw source text. 6 years ago
rajeevgopalakrishna f0fa6c6d2c Use source_mapping of variables/events directly instead of get_source_event/var_declaration, which will be removed from slither. 6 years ago
ggrieco-tob a9466230a8 final fixes 6 years ago
rajeevgopalakrishna 4d687c504d Updates format_naming_convention to use filename_absolute and other JSON output field updates. Removed the use of event.full_name to simply use name instead (so PR #236 not required). naming-convention tests pass (except the index variable test which is expected to fail); run_all_tests passes except that one. Testing requires checking out slither core/parsing changes from dev-slither-changes-for-slither-format-new. 6 years ago
Josselin 140ea6fd0b Remove Solidity dependencies 6 years ago
Josselin 2047ca6e88 Minor improvements in slither-similar: 6 years ago
rajeevgopalakrishna ced9498f56 Updates format_external_function to use filename_absolute. test_external_function passes. 6 years ago
rajeevgopalakrishna 82495e608a Updates format_pragma to use filename_absolute and, directive name instead of the earlier expression name. test_pragma passes. Removes patch_file check for now. Need to change verbose output to JSON format and include patch_file then. 6 years ago
rajeevgopalakrishna 8a4f8235bb Updates format_solc_version to use filename_absolute and, directive name instead of the earlier expression name. test_solc_version passes. Removes patch_file check for now. Need to change verbose output to JSON format and include patch_file then. 6 years ago
rajeevgopalakrishna f0e8077ad1 Updates format_constable_states to use filename_absolute. test_constable_states passes. 6 years ago
rajeevgopalakrishna d271973965 Updates format_unused_state to use filename_absolute and apply only to variable types. test_unused_state_vars passes. 6 years ago
rajeevgopalakrishna c25649eda0 Updates format_constant_function to use filename_absolute. test_constant_function passes. 6 years ago
ggrieco-tob d3f9816999 more fixes 6 years ago
ggrieco-tob 7f39c77219 improved module loading 6 years ago
ggrieco-tob 06d70856bd fix 6 years ago
ggrieco-tob 802ab4edb2 fixes 6 years ago
rajeevgopalakrishna 106928f911 All changes specific to slither-format tool, excluding the dependencies on slither parsing/core and detectors. Single commit because of checking out utils/slither_format from dev-slither-format into this branch. 6 years ago
ggrieco-tob ee706bf5a9 fixes and improvements in slither-simil 6 years ago
ggrieco-tob 6c613dde8c fixed formating 6 years ago
ggrieco-tob 1752a1abfb added crytic-compile options into the slither-simil command line 6 years ago
Josselin 843802ff66 Use crytic-compile options in tools 6 years ago