specberus
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -69,2 +69,3 @@ | ||
, "headers.copyright.not-found": "Missing copyright paragraph." | ||
, "headers.copyright.permissive-license": "Using the permissive document license." | ||
// links/internal | ||
@@ -71,0 +72,0 @@ , "links.internal.anchor": "Link to missing anchor: '${id}'." |
@@ -69,2 +69,3 @@ | ||
, "headers.copyright.not-found": "Missing copyright paragraph." | ||
, "headers.copyright.permissive-license": "Using the permissive document license." | ||
// links/internal | ||
@@ -71,0 +72,0 @@ , "links.internal.anchor": "Link to missing anchor: '${id}'." |
@@ -17,3 +17,4 @@ 'use strict'; | ||
, dualLicenseStatement = ", Some Rights Reserved: this document is dual-licensed, CC-BY and W3C Document License" | ||
, endRex = "\\. W3C liability, trademark,? and document use rules apply\\.$" | ||
, endRex = "\\. W3C liability, trademark,? and (document use|permissive document license) rules apply\\.$" | ||
, isPermissiveLicense = /permissive document license/.test(text); | ||
; | ||
@@ -34,2 +35,3 @@ | ||
if (isDualLicensed) sr.warning(exports.name, "kitten-friendly"); | ||
if (isPermissiveLicense) sr.warning(exports.name, "permissive-license"); | ||
@@ -48,2 +50,6 @@ // check the links | ||
}; | ||
if (isPermissiveLicense) { | ||
links["http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"] = "permissive document license"; | ||
delete links["http://www.w3.org/Consortium/Legal/copyright-documents"]; | ||
} | ||
if (isDualLicensed) { | ||
@@ -56,4 +62,5 @@ links["https://creativecommons.org/licenses/by/3.0/"] = "CC-BY"; | ||
var $lnk = $c.find("a[href='" + href + "']"); | ||
if (!$lnk.length || sr.norm($lnk.text()) !== links[href]) | ||
if (!$lnk.length || sr.norm($lnk.text()) !== links[href]) { | ||
err("link-text", { href: href, text: links[href] }); | ||
} | ||
} | ||
@@ -60,0 +67,0 @@ } |
@@ -12,12 +12,12 @@ | ||
wanted = "This document is governed by the 24 January 2002 CPP as amended by the W3C Patent " + | ||
"Policy Transition Procedure. "; | ||
"Policy Transition Procedure\\. "; | ||
else { | ||
wanted = "This document was produced by " + | ||
((groups.length == 2) ? "groups " : "a group ") + | ||
"operating under the 5 February 2004 W3C Patent Policy. "; | ||
"operating under the 5 February 2004 W3C Patent Policy\\. "; | ||
if (config.recTrackStatus && config.noRecTrack) | ||
wanted += ((groups.length == 2) ? "The groups do not " : "The group does not ") + | ||
"expect this document to become a W3C Recommendation. "; | ||
"expect this document to become a W3C Recommendation\\. "; | ||
if (config.informativeOnly) | ||
wanted += "This document is informative only. "; | ||
wanted += "This document is informative only\\. "; | ||
} | ||
@@ -29,13 +29,13 @@ wanted += "W3C maintains "; | ||
wanted += groups.map(function(wg) { | ||
return "a public list of any patent disclosures (" + wg + ")"; | ||
}).join(' and '); | ||
return "a public list of any patent disclosures \\(" + wg + "( Working Group)?\\)"; | ||
}).join(" and "); | ||
} | ||
wanted += " made in connection with the deliverables of " + | ||
((groups.length == 2) ? "each group; these pages also include " : "the group; that page also includes ") + | ||
"instructions for disclosing a patent."; | ||
"instructions for disclosing a patent\\."; | ||
if (config.recTrackStatus || config.noteStatus || isPP2002) | ||
wanted += " An individual who has actual knowledge of a patent which the individual " + | ||
"believes contains Essential Claim(s) must disclose the information in " + | ||
"accordance with section 6 of the W3C Patent Policy."; | ||
return wanted; | ||
"believes contains Essential Claim\\(s\\) must disclose the information in " + | ||
"accordance with section 6 of the W3C Patent Policy\\."; | ||
return new RegExp(wanted); | ||
} | ||
@@ -60,3 +60,3 @@ | ||
} | ||
if (text === wanted) { | ||
if (wanted.test(text)) { | ||
$pp = $p; | ||
@@ -63,0 +63,0 @@ return false; |
@@ -16,5 +16,5 @@ | ||
if ('2015' === processDocument) { | ||
proc = '1 September 2015'; | ||
procUri = 'http://www.w3.org/2015/Process-20150901/'; | ||
if (processDocument === "2015") { | ||
proc = "1 September 2015"; | ||
procUri = "http://www.w3.org/2015/Process-20150901/"; | ||
} | ||
@@ -21,0 +21,0 @@ else if (processDocument === "2005") { |
{ | ||
"name": "specberus", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Specberus is a checker used at W3C to validate the compliance of Technical Reports with publication rules.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -90,2 +90,3 @@ | ||
, { doc: "headers/fails.html", errors: ["headers.copyright"] } | ||
, { doc: "headers/permissive-doc-license.html", warnings: ["headers.copyright"] } | ||
] | ||
@@ -92,0 +93,0 @@ , translations: [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1219432
164
5974