A specialized rule object that is used for the special case of extracted license statements without any valid license detection. Since there is a license where there is a non empty extracted license statement (typically found in a package manifest), if there is no license detec
| 2801 | |
| 2802 | @attr.s(slots=True, repr=False) |
| 2803 | class UnDetectedRule(SynthethicRule): |
| 2804 | """ |
| 2805 | A specialized rule object that is used for the special case of extracted |
| 2806 | license statements without any valid license detection. |
| 2807 | |
| 2808 | Since there is a license where there is a non empty extracted license |
| 2809 | statement (typically found in a package manifest), if there is no license |
| 2810 | detected by scancode, it would be incorrect to not point out that there |
| 2811 | is a license (though undetected). |
| 2812 | """ |
| 2813 | |
| 2814 | def __attrs_post_init__(self, *args, **kwargs): |
| 2815 | self.identifier = f'package-manifest-{self.pysafe_expression}-{self._unique_id}' |
| 2816 | expression = self.licensing.parse(self.license_expression) |
| 2817 | self.license_expression = expression.render() |
| 2818 | self.license_expression_object = expression |
| 2819 | self.is_license_tag = True |
| 2820 | self.is_small = False |
| 2821 | self.relevance = 100 |
| 2822 | self.has_stored_relevance = True |
| 2823 | |
| 2824 | |
| 2825 | @attr.s(slots=True, repr=False) |
no outgoing calls
no test coverage detected