Conversation
Signed-off-by: aicodeguard <zifeiyu19980606@gmail.com>
CodeProt PR Review 📝Here are some key observations to aid the review process:
|
| """ | ||
| files_with_expected_warnings = set() | ||
| with Path(file_path).open(encoding="UTF-8") as ignore_rules_file: | ||
| files_with_expected_warnings = set() |
There was a problem hiding this comment.
Suggestion: Variable files_with_expected_warnings is initialized twice on consecutive lines, which is redundant and may indicate a copy-paste error [general, importance: 6]
| files_with_expected_warnings = set() |
| try: | ||
| resp = urllib.request.urlopen(download_location) | ||
| except urllib.error.URLError as ex: | ||
| except (urllib.error.URLError, ConnectionError) as ex: |
There was a problem hiding this comment.
Suggestion: The exception handling catches ConnectionError which is not imported. Either import it or remove it from the except clause to avoid NameError. [possible issue, importance: 8]
| except (urllib.error.URLError, ConnectionError) as ex: | |
| except urllib.error.URLError as ex: |
No description provided.