MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / rule_url

Method rule_url

src/licensedcode/models.py:1799–1811  ·  view source on GitHub ↗

Return a string with the permanent URL to this rule on scancode-toolkit github repository.

(self)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected