forked from mirrors/gecko-dev
Bug 1838408 - Lint paths referred in toolkit/content/license.html r=sylvestre,glandium,ochameau,Standard8
Paths mentioned between <code> tags are looked up in the repo, and an error is emitted if they don't exist. This should make license.html more resilient to code removal / move. Idea inspired by a discussion with glandium. This patch contains both the linter extension and the normalisation of license.html to pass the linting. Differential Revision: https://phabricator.services.mozilla.com/D180933
This commit is contained in:
parent
078c24bbf8
commit
760512deba
5 changed files with 121 additions and 218 deletions
|
|
@ -1251,7 +1251,6 @@ browser/components/storybook/node_modules/
|
||||||
browser/extensions/formautofill/content/third-party/
|
browser/extensions/formautofill/content/third-party/
|
||||||
browser/extensions/formautofill/test/fixtures/third_party/
|
browser/extensions/formautofill/test/fixtures/third_party/
|
||||||
browser/extensions/formautofill/test/unit/heuristics/
|
browser/extensions/formautofill/test/unit/heuristics/
|
||||||
browser/extensions/screenshots/build/raven.js
|
|
||||||
devtools/client/inspector/markup/test/lib_*
|
devtools/client/inspector/markup/test/lib_*
|
||||||
devtools/client/jsonview/lib/require.js
|
devtools/client/jsonview/lib/require.js
|
||||||
devtools/client/shared/build/babel.js
|
devtools/client/shared/build/babel.js
|
||||||
|
|
|
||||||
|
|
@ -312,8 +312,6 @@ Please commit or stash these changes before vendoring, or re-run with `--ignore-
|
||||||
RUNTIME_LICENSE_PACKAGE_WHITELIST = {
|
RUNTIME_LICENSE_PACKAGE_WHITELIST = {
|
||||||
"BSD-2-Clause": [
|
"BSD-2-Clause": [
|
||||||
"arrayref",
|
"arrayref",
|
||||||
"cloudabi",
|
|
||||||
"Inflector",
|
|
||||||
"mach",
|
"mach",
|
||||||
"qlog",
|
"qlog",
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@
|
||||||
<li><a href="about:license#lgpl-3.0">GNU Lesser General Public License 3.0</a>
|
<li><a href="about:license#lgpl-3.0">GNU Lesser General Public License 3.0</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="about:license#ACE">ACE License</a></li>
|
|
||||||
<li><a href="about:license#acorn">acorn License</a></li>
|
<li><a href="about:license#acorn">acorn License</a></li>
|
||||||
#ifdef MOZ_INSTALL_TRACKING
|
#ifdef MOZ_INSTALL_TRACKING
|
||||||
<li><a href="about:license#adjust">Adjust SDK License</a></li>
|
<li><a href="about:license#adjust">Adjust SDK License</a></li>
|
||||||
|
|
@ -66,11 +65,8 @@
|
||||||
<li><a href="about:license#apache">Apache License 2.0</a></li>
|
<li><a href="about:license#apache">Apache License 2.0</a></li>
|
||||||
<li><a href="about:license#apache-llvm">Apache License 2.0 with LLVM exception</a></li>
|
<li><a href="about:license#apache-llvm">Apache License 2.0 with LLVM exception</a></li>
|
||||||
<li><a href="about:license#apple">Apple License</a></li>
|
<li><a href="about:license#apple">Apple License</a></li>
|
||||||
<li><a href="about:license#apple-mozilla">Apple/Mozilla NPRuntime License</a></li>
|
|
||||||
<li><a href="about:license#apple-password-rules-parser">Apple Password Rules Parser License</a></li>
|
<li><a href="about:license#apple-password-rules-parser">Apple Password Rules Parser License</a></li>
|
||||||
<li><a href="about:license#arm">ARM License</a></li>
|
<li><a href="about:license#arm">ARM License</a></li>
|
||||||
<li><a href="about:license#babel">Babel License</a></li>
|
|
||||||
<li><a href="about:license#babylon">Babylon License</a></li>
|
|
||||||
<li><a href="about:license#boost">boost License</a></li>
|
<li><a href="about:license#boost">boost License</a></li>
|
||||||
<li><a href="about:license#bsd2clause">BSD 2-Clause License</a></li>
|
<li><a href="about:license#bsd2clause">BSD 2-Clause License</a></li>
|
||||||
<li><a href="about:license#bsd3clause">BSD 3-Clause License</a></li>
|
<li><a href="about:license#bsd3clause">BSD 3-Clause License</a></li>
|
||||||
|
|
@ -85,7 +81,6 @@
|
||||||
<li><a href="about:license#diff">diff License</a></li>
|
<li><a href="about:license#diff">diff License</a></li>
|
||||||
<li><a href="about:license#disconnect.me">Disconnect.Me License</a>
|
<li><a href="about:license#disconnect.me">Disconnect.Me License</a>
|
||||||
<li><a href="about:license#dtoa">dtoa License</a></li>
|
<li><a href="about:license#dtoa">dtoa License</a></li>
|
||||||
<li><a href="about:license#fuzz-aldrin">fuzz-aldrin License</a></li>
|
|
||||||
<li><a href="about:license#hunspell-nl">Dutch Spellchecking Dictionary License</a></li>
|
<li><a href="about:license#hunspell-nl">Dutch Spellchecking Dictionary License</a></li>
|
||||||
#if defined(XP_WIN) || defined(XP_LINUX)
|
#if defined(XP_WIN) || defined(XP_LINUX)
|
||||||
<li><a href="about:license#twemoji">Twemoji License</a></li>
|
<li><a href="about:license#twemoji">Twemoji License</a></li>
|
||||||
|
|
@ -139,12 +134,10 @@
|
||||||
<li><a href="about:license#praton1">praton and inet_ntop License</a></li>
|
<li><a href="about:license#praton1">praton and inet_ntop License</a></li>
|
||||||
<li><a href="about:license#qcms">qcms License</a></li>
|
<li><a href="about:license#qcms">qcms License</a></li>
|
||||||
<li><a href="about:license#qrcode-generator">QR Code Generator License</a></li>
|
<li><a href="about:license#qrcode-generator">QR Code Generator License</a></li>
|
||||||
<li><a href="about:license#raven-js">Raven.js License</a></li>
|
|
||||||
<li><a href="about:license#react">React License</a></li>
|
<li><a href="about:license#react">React License</a></li>
|
||||||
<li><a href="about:license#react-redux">React-Redux License</a></li>
|
<li><a href="about:license#react-redux">React-Redux License</a></li>
|
||||||
<li><a href="about:license#xdg">Red Hat xdg_user_dir_lookup License</a></li>
|
<li><a href="about:license#xdg">Red Hat xdg_user_dir_lookup License</a></li>
|
||||||
<li><a href="about:license#redux">Redux License</a></li>
|
<li><a href="about:license#redux">Redux License</a></li>
|
||||||
<li><a href="about:license#ring">Ring License</a></li>
|
|
||||||
<li><a href="about:license#hunspell-ru">Russian Spellchecking Dictionary License</a></li>
|
<li><a href="about:license#hunspell-ru">Russian Spellchecking Dictionary License</a></li>
|
||||||
<li><a href="about:license#sctp">SCTP Licenses</a></li>
|
<li><a href="about:license#sctp">SCTP Licenses</a></li>
|
||||||
<li><a href="about:license#skia">Skia License</a></li>
|
<li><a href="about:license#skia">Skia License</a></li>
|
||||||
|
|
@ -1382,29 +1375,6 @@ permanent authorization for you to choose that version for the
|
||||||
Library.</p>
|
Library.</p>
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h1><a id="ACE"></a>ACE License</h1>
|
|
||||||
|
|
||||||
<p>This license applies to the file
|
|
||||||
<code>media/webrtc/trunk/webrtc/system_wrappers/source/condition_variable_event_win.cc</code>.</p>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
ACE(TM), TAO(TM), CIAO(TM), DAnCE(TM), and CoSMIC(TM)
|
|
||||||
(henceforth referred to as "DOC software") are copyrighted by
|
|
||||||
Douglas C. Schmidt and his research group at Washington University,
|
|
||||||
University of California, Irvine, and Vanderbilt University,
|
|
||||||
Copyright (c) 1993-2009, all rights reserved.
|
|
||||||
Since DOC software is open-source, freely available software,
|
|
||||||
you are free to use, modify, copy, and distribute--perpetually and
|
|
||||||
irrevocably--the DOC software source code and object code produced
|
|
||||||
from the source, as well as copy and distribute modified versions of
|
|
||||||
this software. You must, however, include this copyright statement
|
|
||||||
along with any code built using DOC software that you release. No
|
|
||||||
copyright statement needs to be provided if you just ship binary
|
|
||||||
executables of your software products.
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="android"></a>Android Open Source License</h1>
|
<h1><a id="android"></a>Android Open Source License</h1>
|
||||||
|
|
@ -1485,8 +1455,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
<h1><a id="acorn"></a>acorn License</h1>
|
<h1><a id="acorn"></a>acorn License</h1>
|
||||||
|
|
||||||
<p>This license applies to all files in
|
<p>This license applies to part of the
|
||||||
<code>devtools/shared/acorn</code>.
|
<code>devtools/shared/jsbeautify/src/beautify-js.js</code> file.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (C) 2012 by Marijn Haverbeke <marijnh@gmail.com>
|
Copyright (C) 2012 by Marijn Haverbeke <marijnh@gmail.com>
|
||||||
|
|
@ -1743,45 +1713,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h1><a id="apple-mozilla"></a>Apple/Mozilla NPRuntime License</h1>
|
|
||||||
|
|
||||||
<p>This license applies to the file
|
|
||||||
<code>dom/plugins/base/npruntime.h</code>.</p>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
Copyright © 2004, Apple Computer, Inc. and The Mozilla Foundation.
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
3. Neither the names of Apple Computer, Inc. ("Apple") or The Mozilla
|
|
||||||
Foundation ("Mozilla") nor the names of their contributors may be used
|
|
||||||
to endorse or promote products derived from this software without
|
|
||||||
specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY APPLE, MOZILLA AND THEIR CONTRIBUTORS "AS
|
|
||||||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
||||||
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE, MOZILLA OR
|
|
||||||
THEIR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
||||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
||||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
||||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="arm"></a>ARM License</h1>
|
<h1><a id="arm"></a>ARM License</h1>
|
||||||
|
|
@ -1816,14 +1747,13 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="babel"></a>Babel License</h1>
|
<h1><a id="babel"></a>Babel License</h1>
|
||||||
|
|
||||||
<p>This license applies to this file in the directory
|
<p>This license applies to file bundled in
|
||||||
<code>devtools/client/debugger/debugger.js/</code>.
|
<code>devtools/client/debugger/dist</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 2014-2017 Sebastian McKenzie <sebmck@gmail.com>
|
Copyright (c) 2014-2017 Sebastian McKenzie <sebmck@gmail.com>
|
||||||
|
|
@ -1848,13 +1778,13 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
</hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="babylon"></a>Babylon License</h1>
|
<h1><a id="babylon"></a>Babylon License</h1>
|
||||||
|
|
||||||
<p>This license applies to this file in the directory
|
<p>This license applies to file bundled in
|
||||||
<code>devtools/client/debugger/debugger.js/</code>.
|
<code>devtools/client/debugger/dist</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (C) 2012-2014 by various contributors (see AUTHORS)
|
Copyright (C) 2012-2014 by various contributors (see AUTHORS)
|
||||||
|
|
@ -1923,8 +1853,6 @@ DEALINGS IN THE SOFTWARE.
|
||||||
<p>This license applies to files in the following directories:
|
<p>This license applies to files in the following directories:
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>third_party/rust/arrayref</code></li>
|
<li><code>third_party/rust/arrayref</code></li>
|
||||||
<li><code>third_party/rust/cloudabi</code></li>
|
|
||||||
<li><code>third_party/rust/Inflector</code></li>
|
|
||||||
<li><code>third_party/rust/mach</code></li>
|
<li><code>third_party/rust/mach</code></li>
|
||||||
<li><code>third_party/rust/qlog</code></li>
|
<li><code>third_party/rust/qlog</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -2097,13 +2025,12 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
<p>This license applies to parts of the code in:</p>
|
<p>This license applies to parts of the code in:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>browser/extensions/formautofill/content/heuristicsRegexp.js</code></li>
|
<li><code>browser/extensions/formautofill</code></li>
|
||||||
<li><code>toolkit/components/formautofill/FormAutofillHeuristics.jsm</code></li>
|
<li><code>toolkit/components/formautofill/shared/FormAutofillHeuristics.sys.mjs</code></li>
|
||||||
<li><code>toolkit/components/formautofill/FormAutofillNameUtils.jsm</code></li>
|
<li><code>toolkit/components/formautofill/shared/FormAutofillNameUtils.sys.mjs</code></li>
|
||||||
<li><code>editor/libeditor/EditorEventListener.cpp</code></li>
|
<li><code>editor/libeditor/EditorEventListener.cpp</code></li>
|
||||||
<li><code>mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/StrictModeContext.java</code></li>
|
|
||||||
<li><code>security/sandbox/</code></li>
|
<li><code>security/sandbox/</code></li>
|
||||||
<li><code>toolkit/components/passwordmgr/PasswordGenerator.jsm</code></li>
|
<li><code>toolkit/components/passwordmgr/PasswordGenerator.sys.mjs</code></li>
|
||||||
<li><code>widget/cocoa/GfxInfo.mm</code></li>
|
<li><code>widget/cocoa/GfxInfo.mm</code></li>
|
||||||
<li><code>widget/windows/nsWindow.cpp</code></li>
|
<li><code>widget/windows/nsWindow.cpp</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -2115,7 +2042,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
<li><code>gfx/ycbcr/</code></li>
|
<li><code>gfx/ycbcr/</code></li>
|
||||||
<li><code>ipc/chromium/</code></li>
|
<li><code>ipc/chromium/</code></li>
|
||||||
<li><code>media/openmax_dl/</code></li>
|
<li><code>media/openmax_dl/</code></li>
|
||||||
<li><code>toolkit/components/downloads/chromium/</code></li>
|
<li><code>toolkit/components/reputationservice/</code></li>
|
||||||
<li><code>toolkit/components/url-classifier/chromium/</code></li>
|
<li><code>toolkit/components/url-classifier/chromium/</code></li>
|
||||||
<li><code>tools/profiler/</code></li>
|
<li><code>tools/profiler/</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -2157,18 +2084,19 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
<p>This license applies to all files in
|
<p>This license applies to all files in
|
||||||
<code>devtools/client/shared/sourceeditor/codemirror</code> and
|
<code>devtools/client/shared/sourceeditor/codemirror</code> and
|
||||||
to specified files in the <code>devtools/client/shared/sourceeditor/test/</code>:
|
to the following files:
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>cm_comment_test.js</code></li>
|
<li><code>devtools/client/shared/sourceeditor/test/cm_mode_ruby.js</code></li>
|
||||||
<li><code>cm_driver.js</code></li>
|
<li><code>devtools/client/shared/sourceeditor/test/codemirror/mode/javascript/test.js</code></li>
|
||||||
<li><code>cm_mode_javascript_test.js</code></li>
|
<li><code>devtools/client/shared/sourceeditor/test/codemirror/comment_test.js</code></li>
|
||||||
<li><code>cm_mode_test.css</code></li>
|
<li><code>devtools/client/shared/sourceeditor/test/codemirror/driver.js</code></li>
|
||||||
<li><code>cm_mode_test.js</code></li>
|
<li><code>devtools/client/shared/sourceeditor/test/codemirror/mode_test.css</code></li>
|
||||||
<li><code>cm_test.js</code></li>
|
<li><code>devtools/client/shared/sourceeditor/test/codemirror/mode_test.js</code></li>
|
||||||
|
<li><code>devtools/client/shared/sourceeditor/test/codemirror/test.js</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (C) 2013 by Marijn Haverbeke <marijnh@gmail.com>
|
Copyright (C) 2013 by Marijn Haverbeke <marijnh@gmail.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
@ -2204,7 +2132,7 @@ licences.
|
||||||
<code>security/nss/lib/freebl/sha512-p8.s</code>.
|
<code>security/nss/lib/freebl/sha512-p8.s</code>.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 2006, CRYPTOGAMS by <appro@openssl.org>
|
Copyright (c) 2006, CRYPTOGAMS by <appro@openssl.org>
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
@ -2404,38 +2332,6 @@ OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="fuzz-aldrin"></a>fuzz-aldrin License</h1>
|
|
||||||
|
|
||||||
<p>This license applies to some of the code in
|
|
||||||
<code>devtools/client/debugger/debugger.js</code>.</p>
|
|
||||||
|
|
||||||
<pre>
|
|
||||||
Copyright (c) 2015 Jean Christophe Roy
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h1><a id="hunspell-nl"></a>Dutch Spellchecking Dictionary License</h1>
|
<h1><a id="hunspell-nl"></a>Dutch Spellchecking Dictionary License</h1>
|
||||||
|
|
||||||
<p>This license applies to the Dutch Spellchecking Dictionary. (This
|
<p>This license applies to the Dutch Spellchecking Dictionary. (This
|
||||||
|
|
@ -2608,7 +2504,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
<h1><a id="firebug"></a>Firebug License</h1>
|
<h1><a id="firebug"></a>Firebug License</h1>
|
||||||
|
|
||||||
<p>This license applies to the code
|
<p>This license applies to the code
|
||||||
<code>devtools/shared/webconsole/network-helper.js</code>.</p>
|
<code>devtools/shared/network-observer/NetworkHelper.sys.mjs</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 2007, Parakey Inc.
|
Copyright (c) 2007, Parakey Inc.
|
||||||
|
|
@ -2691,7 +2587,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<p>This license applies to files in the directories
|
<p>This license applies to files in the directories
|
||||||
<code>toolkit/crashreporter/google-breakpad/</code>,
|
<code>toolkit/crashreporter/google-breakpad/</code>,
|
||||||
<code>toolkit/components/protobuf/</code> and
|
<code>toolkit/components/protobuf/</code> and
|
||||||
<code>devtools/client/netmonitor/src/utils/filter-text-utils.js.</code></p>
|
<code>devtools/client/netmonitor/src/utils/filter-text-utils.js</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 2006, Google Inc.
|
Copyright (c) 2006, Google Inc.
|
||||||
|
|
@ -2787,7 +2683,7 @@ shall terminate as of the date such litigation is filed.
|
||||||
<h1><a id="gears-istumbler"></a>Google Gears/iStumbler License</h1>
|
<h1><a id="gears-istumbler"></a>Google Gears/iStumbler License</h1>
|
||||||
|
|
||||||
<p>This license applies to the file
|
<p>This license applies to the file
|
||||||
<code>netwerk/wifi/osx_wifi.h</code>.</p>
|
<code>netwerk/wifi/mac/Wifi.h</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright 2008, Google Inc.
|
Copyright 2008, Google Inc.
|
||||||
|
|
@ -2854,7 +2750,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<h1><a id="gyp"></a>gyp License</h1>
|
<h1><a id="gyp"></a>gyp License</h1>
|
||||||
|
|
||||||
<p>This license applies to certain files in the directory
|
<p>This license applies to certain files in the directory
|
||||||
<code>media/webrtc/trunk/tools/gyp</code>.</p>
|
<code>third_party/python/gyp</code>.</p>
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 2009 Google Inc. All rights reserved.
|
Copyright (c) 2009 Google Inc. All rights reserved.
|
||||||
|
|
||||||
|
|
@ -3228,8 +3124,8 @@ SUCH DAMAGE.
|
||||||
<p>This license applies to the following files:</p>
|
<p>This license applies to the following files:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>openmax_dl/dl/api/omxtypes.h</code></li>
|
<li><code>media/openmax_dl/dl/api/omxtypes.h</code></li>
|
||||||
<li><code>openmax_dl/dl/sp/api/omxSP.h</code></li>
|
<li><code>media/openmax_dl/dl/sp/api/omxSP.h</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
@ -3557,8 +3453,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
<h1><a id="libyuv"></a>libyuv License</h1>
|
<h1><a id="libyuv"></a>libyuv License</h1>
|
||||||
|
|
||||||
<p>This license applies to files in the directory
|
<p>This license applies to files in the directory
|
||||||
<code>media/libyuv</code> except
|
<code>media/libyuv</code>.
|
||||||
for the file <code>media/libyuv/source/x86inc.asm</code>.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
@ -3634,13 +3529,13 @@ SUCH DAMAGE.
|
||||||
<h1><a id="lodash"></a>License - lodash</h1>
|
<h1><a id="lodash"></a>License - lodash</h1>
|
||||||
|
|
||||||
<p>This license applies to some of the code in
|
<p>This license applies to some of the code in
|
||||||
<code>devtools/client/shared/vendor/lodash.js</code>.</p>
|
<var>node_modules/lodash/lodash.js</var>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright JS Foundation and other contributors <https://js.foundation/>
|
Copyright JS Foundation and other contributors <https://js.foundation/>
|
||||||
|
|
||||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
DocumentCloud and Investigative Reporters & Editors <https://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <https://underscorejs.org/>
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
This software consists of voluntary contributions made by many
|
||||||
individuals. For exact contribution history, see the revision history
|
individuals. For exact contribution history, see the revision history
|
||||||
|
|
@ -3728,7 +3623,7 @@ DEALINGS IN THE SOFTWARE.
|
||||||
<h1><a id="apple-password-rules-parser"></a>Apple Password Rules Parser License</h1>
|
<h1><a id="apple-password-rules-parser"></a>Apple Password Rules Parser License</h1>
|
||||||
|
|
||||||
<p>This license applies to the file
|
<p>This license applies to the file
|
||||||
<code>toolkit/component/passwordmgr/PasswordRulesParser.jsm</code>.</p>
|
<code>toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright 2020 Apple Inc.
|
Copyright 2020 Apple Inc.
|
||||||
|
|
@ -4049,7 +3944,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<h1><a id="node-md5"></a>node-md5 License</h1>
|
<h1><a id="node-md5"></a>node-md5 License</h1>
|
||||||
|
|
||||||
<p>This license applies to some of the code in
|
<p>This license applies to some of the code in
|
||||||
<code>devtools/client/debugger/debugger.js</code>.</p>
|
<code>devtools/client/shared/vendor</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright © 2011-2012, Paul Vorbach.
|
Copyright © 2011-2012, Paul Vorbach.
|
||||||
|
|
@ -4158,7 +4053,7 @@ Copyright (C) 1999-2003 RTFM, Inc.
|
||||||
All Rights Reserved
|
All Rights Reserved
|
||||||
|
|
||||||
This package is a SSLv3/TLS protocol analyzer written by Eric Rescorla
|
This package is a SSLv3/TLS protocol analyzer written by Eric Rescorla
|
||||||
<ekr@rtfm.com> and licensed by RTFM, Inc.
|
<ekr@rtfm.com> and licensed by RTFM, Inc.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions
|
modification, are permitted provided that the following conditions
|
||||||
|
|
@ -4232,7 +4127,7 @@ SUCH DAMAGE.
|
||||||
<code>dom/media/webrtc/transport/third_party/nrappkit/src/util/util.c</code>.</p>
|
<code>dom/media/webrtc/transport/third_party/nrappkit/src/util/util.c</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
Copyright (c) 1998 Todd C. Miller >Todd.Miller@courtesan.com<
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
@ -4400,38 +4295,6 @@ THE SOFTWARE.
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="raven-js"></a>Raven.js License</h1>
|
|
||||||
|
|
||||||
<p>This license applies to the file
|
|
||||||
<code>browser/extensions/screenshots/webextension/build/raven.js</code>.</p>
|
|
||||||
<pre>
|
|
||||||
Copyright (c) 2014 Matt Robenolt and other contributors
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer in the documentation and/or
|
|
||||||
other materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h1><a id="react"></a>React License</h1>
|
<h1><a id="react"></a>React License</h1>
|
||||||
|
|
||||||
<p>This license applies to various files in the Mozilla codebase.</p>
|
<p>This license applies to various files in the Mozilla codebase.</p>
|
||||||
|
|
@ -4500,7 +4363,7 @@ SOFTWARE.
|
||||||
<h1><a id="xdg"></a>Red Hat xdg_user_dir_lookup License</h1>
|
<h1><a id="xdg"></a>Red Hat xdg_user_dir_lookup License</h1>
|
||||||
|
|
||||||
<p>This license applies to the
|
<p>This license applies to the
|
||||||
<code>xdg_user_dir_lookup</code> function in
|
<var>xdg_user_dir_lookup</var> function in
|
||||||
<code>xpcom/io/SpecialSystemDirectory.cpp</code>.</p>
|
<code>xpcom/io/SpecialSystemDirectory.cpp</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
@ -4559,29 +4422,6 @@ SOFTWARE.
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<h1><a id="ring"></a>Ring License</h1>
|
|
||||||
|
|
||||||
<p>This license applies to certain files in the directory
|
|
||||||
<code>third_party/rust/rc_crypto/</code>
|
|
||||||
</p>
|
|
||||||
<pre>
|
|
||||||
Copyright 2015-2017 Brian Smith.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
|
||||||
copyright notice and this permission notice appear in all copies.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
|
|
||||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
|
|
||||||
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
||||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
||||||
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<h1><a id="hunspell-ru"></a>Russian Spellchecking Dictionary License</h1>
|
<h1><a id="hunspell-ru"></a>Russian Spellchecking Dictionary License</h1>
|
||||||
|
|
||||||
<p>This license applies to the Russian Spellchecking Dictionary. (This
|
<p>This license applies to the Russian Spellchecking Dictionary. (This
|
||||||
|
|
@ -4803,7 +4643,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<h1><a id="sunsoft"></a>SunSoft License</h1>
|
<h1><a id="sunsoft"></a>SunSoft License</h1>
|
||||||
|
|
||||||
<p>This license applies to the
|
<p>This license applies to the
|
||||||
<code>ICC_H</code> block in
|
<var>ICC_H</var> block in
|
||||||
<code>gfx/qcms/qcms.h</code>.</p>
|
<code>gfx/qcms/qcms.h</code>.</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
@ -5309,8 +5149,7 @@ Database section 7.
|
||||||
directories, certain files in those directories:</p>
|
directories, certain files in those directories:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>dbm/</code></li>
|
<li><code>security/nss/lib/dbm</code></li>
|
||||||
<li><code>db/mork/src/morkQuickSort.cpp</code></li>
|
|
||||||
<li><code>xpcom/ds/nsQuickSort.cpp</code></li>
|
<li><code>xpcom/ds/nsQuickSort.cpp</code></li>
|
||||||
<li><code>nsprpub/pr/src/misc/praton.c</code></li>
|
<li><code>nsprpub/pr/src/misc/praton.c</code></li>
|
||||||
<li><code>dom/media/webrtc/transport/third_party/nICEr/src/stun/addrs.c</code></li>
|
<li><code>dom/media/webrtc/transport/third_party/nICEr/src/stun/addrs.c</code></li>
|
||||||
|
|
@ -5453,7 +5292,7 @@ Additional Contributors:
|
||||||
<code>js/src/irregexp</code>,
|
<code>js/src/irregexp</code>,
|
||||||
<code>js/src/builtin</code>,
|
<code>js/src/builtin</code>,
|
||||||
<code>js/src/jit/arm</code>,
|
<code>js/src/jit/arm</code>,
|
||||||
<code>js/src/jit/mips</code> and
|
<code>js/src/jit/mips*</code> and
|
||||||
<code>js/src/jit/riscv64</code>.
|
<code>js/src/jit/riscv64</code>.
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
|
|
@ -5490,11 +5329,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<h1><a id="validator"></a>Validator License</h1>
|
<h1><a id="validator"></a>Validator License</h1>
|
||||||
|
|
||||||
<p>This license applies to certain files in the directory
|
<p>This license applies to certain files in the directory
|
||||||
<code>devtools/shared/stringvalidator/</code>,
|
<code>devtools/shared/storage/vendor/stringvalidator/</code>,
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
|
|
||||||
Copyright (c) 2016 Chris O"Hara <cohara87@gmail.com>
|
Copyright (c) 2016 Chris O"Hara <cohara87@gmail.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
|
|
@ -5560,7 +5399,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<h1><a id="webrtc"></a>WebRTC License</h1>
|
<h1><a id="webrtc"></a>WebRTC License</h1>
|
||||||
|
|
||||||
<p>This license applies to certain files in the directory
|
<p>This license applies to certain files in the directory
|
||||||
<code>media/webrtc/trunk</code>.</p>
|
<code>third_party/libwebrtc/</code>.</p>
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (c) 2011, The WebRTC project authors. All rights reserved.
|
Copyright (c) 2011, The WebRTC project authors. All rights reserved.
|
||||||
|
|
||||||
|
|
@ -5598,16 +5437,16 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<h1><a id="x264"></a>x264 License</h1>
|
<h1><a id="x264"></a>x264 License</h1>
|
||||||
|
|
||||||
<p>This license applies to the file <code>
|
<p>This license applies to the file <code>
|
||||||
media/webrtc/trunk/third_party/libyuv/source/x86inc.asm</code>.
|
third_party/aom/third_party/libyuv/source/x86inc.asm</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
Copyright (C) 2005-2012 x264 project
|
Copyright (C) 2005-2012 x264 project
|
||||||
|
|
||||||
Authors: Loren Merritt <lorenm@u.washington.edu>
|
Authors: Loren Merritt <lorenm@u.washington.edu>
|
||||||
Anton Mitrofanov <BugMaster@narod.ru>
|
Anton Mitrofanov <BugMaster@narod.ru>
|
||||||
Jason Garrett-Glaser <darkshikari@gmail.com>
|
Jason Garrett-Glaser <darkshikari@gmail.com>
|
||||||
Henrik Gramner <hengar-6@student.ltu.se>
|
Henrik Gramner <hengar-6@student.ltu.se>
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|
@ -5727,8 +5566,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
<p>These terms apply to the following files;
|
<p>These terms apply to the following files;
|
||||||
they are referred to below as "Distributable Code":
|
they are referred to below as "Distributable Code":
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>d3d*.dll</code> (Direct3D libraries)</li>
|
<li><var>d3d*.dll</var> (Direct3D libraries)</li>
|
||||||
<li><code>msvc*.dll</code> (C and C++ runtime libraries)</li>
|
<li><var>msvc*.dll</var> (C and C++ runtime libraries)</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,14 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
from glob import glob
|
||||||
|
from html.parser import HTMLParser
|
||||||
|
|
||||||
from mozlint import result
|
from mozlint import result
|
||||||
from mozlint.pathutils import expand_exclusions
|
from mozlint.pathutils import expand_exclusions
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
topsrcdir = os.path.join(here, "..", "..", "..")
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
|
|
@ -162,7 +165,7 @@ def fix_me(log, filename):
|
||||||
# Last line, we end by -->
|
# Last line, we end by -->
|
||||||
end = " -->"
|
end = " -->"
|
||||||
license.append(start + l.strip() + end)
|
license.append(start + l.strip() + end)
|
||||||
if ext != ".svg" or end == "":
|
if ext != ".svg" or not end:
|
||||||
# When dealing with an svg, we should not have a space between
|
# When dealing with an svg, we should not have a space between
|
||||||
# the license and the content
|
# the license and the content
|
||||||
license.append("\n")
|
license.append("\n")
|
||||||
|
|
@ -170,6 +173,50 @@ def fix_me(log, filename):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
class HTMLParseError(Exception):
|
||||||
|
def __init__(self, msg, pos):
|
||||||
|
super().__init__(msg, *pos)
|
||||||
|
|
||||||
|
|
||||||
|
class LicenseHTMLParser(HTMLParser):
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
|
self.in_code = False
|
||||||
|
self.invalid_paths = []
|
||||||
|
|
||||||
|
def handle_starttag(self, tag, attrs):
|
||||||
|
if tag == "code":
|
||||||
|
if self.in_code:
|
||||||
|
raise HTMLParseError("nested code tag", self.getpos())
|
||||||
|
self.in_code = True
|
||||||
|
|
||||||
|
def handle_endtag(self, tag):
|
||||||
|
if tag == "code":
|
||||||
|
if not self.in_code:
|
||||||
|
raise HTMLParseError("not started code tag", self.getpos())
|
||||||
|
self.in_code = False
|
||||||
|
|
||||||
|
def handle_data(self, data):
|
||||||
|
if self.in_code:
|
||||||
|
path = data.strip()
|
||||||
|
abspath = os.path.join(topsrcdir, path)
|
||||||
|
if not glob(abspath):
|
||||||
|
self.invalid_paths.append((path, self.getpos()))
|
||||||
|
|
||||||
|
|
||||||
|
def lint_license_html(path):
|
||||||
|
parser = LicenseHTMLParser()
|
||||||
|
with open(path) as fd:
|
||||||
|
content = fd.read()
|
||||||
|
parser.feed(content)
|
||||||
|
return parser.invalid_paths
|
||||||
|
|
||||||
|
|
||||||
|
def is_html_licence_summary(path):
|
||||||
|
license_html = os.path.join(topsrcdir, "toolkit", "content", "license.html")
|
||||||
|
return os.path.samefile(path, license_html)
|
||||||
|
|
||||||
|
|
||||||
def lint(paths, config, fix=None, **lintargs):
|
def lint(paths, config, fix=None, **lintargs):
|
||||||
log = lintargs["log"]
|
log = lintargs["log"]
|
||||||
files = list(expand_exclusions(paths, config, lintargs["root"]))
|
files = list(expand_exclusions(paths, config, lintargs["root"]))
|
||||||
|
|
@ -192,4 +239,25 @@ def lint(paths, config, fix=None, **lintargs):
|
||||||
fix_me(log, f)
|
fix_me(log, f)
|
||||||
fixed += 1
|
fixed += 1
|
||||||
|
|
||||||
|
if is_html_licence_summary(f):
|
||||||
|
try:
|
||||||
|
for invalid_path, (lineno, column) in lint_license_html(f):
|
||||||
|
res = {
|
||||||
|
"path": f,
|
||||||
|
"message": "references unknown path {}".format(invalid_path),
|
||||||
|
"level": "error",
|
||||||
|
"lineno": lineno,
|
||||||
|
"column": column,
|
||||||
|
}
|
||||||
|
results.append(result.from_config(config, **res))
|
||||||
|
except HTMLParseError as err:
|
||||||
|
res = {
|
||||||
|
"path": f,
|
||||||
|
"message": err.args[0],
|
||||||
|
"level": "error",
|
||||||
|
"lineno": err.args[1],
|
||||||
|
"column": err.args[2],
|
||||||
|
}
|
||||||
|
results.append(result.from_config(config, **res))
|
||||||
|
|
||||||
return {"results": results, "fixed": fixed}
|
return {"results": results, "fixed": fixed}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ browser/components/pocket/content/panels/js/vendor/
|
||||||
browser/components/storybook/node_modules/
|
browser/components/storybook/node_modules/
|
||||||
browser/extensions/formautofill/content/third-party/
|
browser/extensions/formautofill/content/third-party/
|
||||||
browser/extensions/formautofill/test/fixtures/third_party/
|
browser/extensions/formautofill/test/fixtures/third_party/
|
||||||
browser/extensions/screenshots/build/raven.js
|
|
||||||
devtools/client/inspector/markup/test/lib_*
|
devtools/client/inspector/markup/test/lib_*
|
||||||
devtools/client/jsonview/lib/require.js
|
devtools/client/jsonview/lib/require.js
|
||||||
devtools/client/shared/build/babel.js
|
devtools/client/shared/build/babel.js
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue