(location: ScanLocation)
| 23 | |
| 24 | |
| 25 | def enable_suspicious_files(location: ScanLocation) -> bool: |
| 26 | flag = location.metadata.get("suspicious_files") |
| 27 | if flag is not None: |
| 28 | return flag |
| 29 | |
| 30 | if location.metadata.get("scheme") in ("pypi", "mirror"): |
| 31 | return True |
| 32 | else: |
| 33 | return False |
| 34 | |
| 35 | |
| 36 | @Analyzer.ID("file_analyzer") |