riczardo/solscan

Removing comments from parsed contracts

Closed this issue · 1 comments

Removing comments from parsed contracts

remove_comments utility was created. Since the scanner is static, it works by replacing comment lines with given text, as to not cause false positives in the scanner. Replaced lines are only present during contract parsing and no original code is changed.
Utility works on single line comments as well as multiline.