Commit Graph

101 Commits (8fd5b9533a55ff8258c5c7cca217c9020902dc2a)

Author SHA1 Message Date
Josselin 8fd5b9533a Use difflib to generate patches (WIP) 6 years ago
Josselin 63a07f6ccd naming convention format: Factor together declaration/definition patch generation 6 years ago
Josselin ed239cf970 Minor 6 years ago
Josselin 52f09f95a3 Update to origin/dev-slither-format-tool-only-new 6 years ago
Josselin 0dacdddaa4 slither-format : use utils.patches.create_patch in naming convention 6 years ago
Josselin 7f8289aad0 slither-format: simplify loop iteration on contracts 6 years ago
Josselin aecd47c7d3 slither-format: refactor naming convention 6 years ago
Josselin 7c51caf998 slither-format: remove objects pattern (Todo: naming convention) 6 years ago
Josselin a0f7be75de slither-format: 6 years ago
Josselin 5b0a788766 slither-format: clean code 6 years ago
rajeevgopalakrishna f2b89aaa0b slither-format: 6 years ago
rajeevgopalakrishna 5f7e38869a Updated README's To-do list of known limitations. 6 years ago
rajeevgopalakrishna c8c7c7c799 slither-format: 6 years ago
rajeevgopalakrishna 09e32f1676 slither-format: 6 years ago
rajeevgopalakrishna dd631a1a08 - Fixes contract naming convention to include interface & library 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