diff --git a/fareportal/avoid_print_example.py b/fareportal/avoid_print_example.py new file mode 100644 index 0000000000..56825227ce --- /dev/null +++ b/fareportal/avoid_print_example.py @@ -0,0 +1,15 @@ +print("Welcome to Semgrep!" + "Use our Run button to start experimenting -->") + + +print("Example") + +# To detect ALL calls to the print() function, change the Semgrep Rule from print("...") to print(...) +print("Example") +print(not_a_string) + +print(first_var, second_var) +print("Example") +print() + +# print("This is commented out so it will never be found") +print("Example") \ No newline at end of file