This string was causing problem because of the incorrect treatment of escaped double quotes.
"s/[\"
Traceback (most recent call last):
File "/home/ggasparb/workspace/github/content-test-filtering/content_test_filtering.py", line 44, in <module>
diff_structure = diff_analysis.analyse_file(file_record)
File "/home/ggasparb/workspace/github/content-test-filtering/ctf/diff_analysis.py", line 54, in analyse_file
return file_analyzer.process_analysis()
File "/home/ggasparb/workspace/github/content-test-filtering/ctf/analysis/BashAnalysis.py", line 122, in process_analysis
self.analyse_bash()
File "/home/ggasparb/workspace/github/content-test-filtering/ctf/analysis/BashAnalysis.py", line 90, in analyse_bash
token_before = tokens_before.get_token()
File "/usr/lib64/python3.10/shlex.py", line 109, in get_token
raw = self.read_token()
File "/usr/lib64/python3.10/shlex.py", line 191, in read_token
raise ValueError("No closing quotation")
ValueError: No closing quotation
python content_test_filtering.py pr --base bf7b2cf6bc659db649ad3902762b038aedbb96de --remote_repo https://github.com/ComplianceAsCode/content --verbose --rule 9377
This string was causing problem because of the incorrect treatment of escaped double quotes.
"s/[\"