Skip to content

Copyright Check False Positive #481

@chipbennett

Description

@chipbennett

Theme Check is incorrectly returning a WARNING on the Copyright check, for a Theme with both a GNU-recommended formatting for Copyright notice and also with "License:" and ":License URI:" tags present in style.css.

Here is an example of the Copyright notice that is returning a false positive:

* Oenology WordPress Theme, Copyright (C) 2010-2016 Chip Bennett
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * Note: see the "Oenology Reference" admin page for copyright and 
 * license information for bundled resources, including fonts and icons

This should return at best INFO, not WARNING, as both "Copyright" and "(C)" - the explicitly searched-for strings - are included. (Understanding that parsing the verbiage could be beyond the ability of the regex here.)

Perhaps a "Copyright:" tag is needed/would resolve the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions