Return a sorted mapping of ignorables built from lists of ignorable clues.
(copyrights, holders, authors, urls, emails)
| 2970 | |
| 2971 | |
| 2972 | def build_ignorables_mapping(copyrights, holders, authors, urls, emails): |
| 2973 | """ |
| 2974 | Return a sorted mapping of ignorables built from lists of ignorable clues. |
| 2975 | """ |
| 2976 | ignorables = dict( |
| 2977 | ignorable_copyrights=sorted(copyrights or []), |
| 2978 | ignorable_holders=sorted(holders or []), |
| 2979 | ignorable_authors=sorted(authors or []), |
| 2980 | ignorable_urls=sorted(urls or []), |
| 2981 | ignorable_emails=sorted(emails or []), |
| 2982 | ) |
| 2983 | |
| 2984 | return {k: v for k, v in sorted(ignorables.items()) if v} |
| 2985 | |
| 2986 | |
| 2987 | def rule_exists(text): |
no outgoing calls
no test coverage detected