Return a string with the permanent URL to this rule on scancode-toolkit github repository.
(self)
| 1797 | |
| 1798 | @property |
| 1799 | def rule_url(self): |
| 1800 | """ |
| 1801 | Return a string with the permanent URL to this rule on |
| 1802 | scancode-toolkit github repository. |
| 1803 | """ |
| 1804 | if self.is_synthetic or not self.is_builtin: |
| 1805 | return None |
| 1806 | |
| 1807 | if self.is_from_license: |
| 1808 | # license expression is single key |
| 1809 | return SCANCODE_LICENSE_URL.format(self.license_expression) |
| 1810 | else: |
| 1811 | return SCANCODE_RULE_URL.format(self.identifier) |
| 1812 | |
| 1813 | def rule_file( |
| 1814 | self, |