Load exclusion patterns from .spdx-exclude file.
(self)
| 37 | self.company_domains = self._build_company_domain_map() |
| 38 | |
| 39 | def _load_exclude_patterns(self) -> List[str]: |
| 40 | """Load exclusion patterns from .spdx-exclude file.""" |
| 41 | exclude_file = self.repo_root / ".spdx-exclude" |
| 42 | patterns = [] |
| 43 | |
| 44 | if exclude_file.exists(): |
| 45 | with open(exclude_file, "r") as f: |
| 46 | for line in f: |
| 47 | line = line.strip() |
| 48 | if line and not line.startswith("#"): |
| 49 | patterns.append(line) |
| 50 | |
| 51 | return patterns |
| 52 | |
| 53 | def _parse_mailmap(self) -> Dict[str, Tuple[str, str]]: |
| 54 | """Parse .mailmap file to get canonical name/email mappings.""" |