On Sat, Aug 25, 2018 at 10:32:55AM +0200, Julien Puydt wrote:
> Hi,
> 
> the following also triggers the check, and I think it's a false positive,
> and would still be even with the proposed change:
> 
> License: CC0

Indeed - good catch.  We have to treat CC0 differently, as it's got
different license wording and it also appears in
/usr/share/common-licenses.  How about the following then:

if ($full_license and $short_license =~ m/cc-/) {
    if ($full_license !~ /definitions/i and
        $full_license !~ /copyright and related rights/i and
        $full_license !~ m%/usr/share/common-licenses/CC) {
        tag 'incomplete-creative-commons-license';
    }
}

Best wishes,

   Julian

Reply via email to