Closed utkuozdemir closed 8 months ago
feat: add support for multiple licenses
Allow specifying multiple policy documents of type: commit in .conform.yaml.
type: commit
.conform.yaml
Join these multiple policy declarations into a single license check policy.
In the license check spec, introduce a new field, root, to allow specifying in which directory that license check should run.
root
With this change, a single repository will be able to have different license rules for different paths.
Sample conform file with the changes:
policies: - type: commit spec: "..." - type: license spec: includeSuffixes: - .go excludeSuffixes: - .pb.go - .pb.gw.go header: "// ROOT LICENSE" - type: license spec: root: staging/client/ includeSuffixes: - .go excludeSuffixes: - .pb.go - .pb.gw.go header: "// SUBDIR LICENSE"
/m
feat: add support for multiple licenses
Allow specifying multiple policy documents of
type: commit
in.conform.yaml
.Join these multiple policy declarations into a single license check policy.
In the license check spec, introduce a new field,
root
, to allow specifying in which directory that license check should run.With this change, a single repository will be able to have different license rules for different paths.
Sample conform file with the changes: