LicenseFileExists
constLicenseFileExists:object
Defined in: policies/LicenseFileExists.ts:37
A repo policy that checks that a LICENSE file exists in the repository root. This is essential for open source projects to clarify usage rights and obligations.
Type Declaration
Section titled “Type Declaration”description
Section titled “description”description:
string="Ensures a LICENSE file exists in the repository root for open source projects."
handler
Section titled “handler”handler: (
__namedParameters) =>Promise<object[]>
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”RepositoryPolicyArgs<LicenseFileExistsSettings>
Returns
Section titled “Returns”Promise<object[]>
name:
string="LicenseFileExists"
scope:
"repository"="repository"