aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Morton <apmorton@users.noreply.github.com>2020-09-27 00:20:19 -0400
committerGitHub <noreply@github.com>2020-09-27 00:20:19 -0400
commitde85aecc7dac9495bf5503e3e17daa874ac704f3 (patch)
tree4efdd13dffd94bc7913dcb789bc5afad647afe32
parent4a158e1ff423cbdd1c90fb4146bd95fc77e901dc (diff)
downloadcompiler-explorer-de85aecc7dac9495bf5503e3e17daa874ac704f3.tar.gz
compiler-explorer-de85aecc7dac9495bf5503e3e17daa874ac704f3.zip
Normalize and enforce license disclaimer headers (#2234)
-rw-r--r--.eslint-license-header.yml32
-rw-r--r--.eslintrc.yml1
-rwxr-xr-xapp.js2
-rw-r--r--lib/buildenvsetup/_all.js24
-rw-r--r--lib/buildenvsetup/index.js24
-rw-r--r--lib/clientstate-normalizer.js2
-rw-r--r--lib/clientstate.js2
-rw-r--r--lib/compilers/_all.js24
-rw-r--r--lib/compilers/fortran.js3
-rw-r--r--lib/compilers/index.js24
-rw-r--r--lib/compilers/ispc.js2
-rw-r--r--lib/compilers/tendra.js24
-rw-r--r--lib/demangler/_all.js24
-rw-r--r--lib/demangler/default.js24
-rw-r--r--lib/demangler/index.js24
-rw-r--r--lib/handlers/formatting.js1
-rw-r--r--lib/keyed-type.js24
-rw-r--r--lib/shortener/_all.js24
-rw-r--r--lib/shortener/index.js24
-rw-r--r--lib/sources/index.js24
-rw-r--r--lib/storage/_all.js24
-rw-r--r--lib/storage/base.js1
-rw-r--r--lib/storage/index.js24
-rw-r--r--lib/storage/local.js1
-rw-r--r--lib/storage/null.js1
-rw-r--r--lib/storage/remote.js1
-rw-r--r--lib/storage/s3.js1
-rw-r--r--lib/tooling/_all.js24
-rw-r--r--lib/tooling/index.js24
-rw-r--r--package-lock.json5
-rw-r--r--package.json1
-rw-r--r--static/.eslintrc.yml1
-rw-r--r--static/alert.js1
-rw-r--r--static/ansi-to-html.js2
-rw-r--r--static/codelens-handler.js1
-rw-r--r--static/colour.js1
-rw-r--r--static/main.js3
-rw-r--r--static/modes/ada-mode.js1
-rw-r--r--static/modes/clean-mode.js1
-rw-r--r--static/modes/cppp-mode.js1
-rw-r--r--static/modes/cppx-gold-mode.js3
-rw-r--r--static/modes/cuda-mode.js1
-rw-r--r--static/modes/d-mode.js1
-rw-r--r--static/modes/fortran-mode.js48
-rw-r--r--static/modes/gccdump-rtl-gimple-mode.js6
-rw-r--r--static/modes/haskell-mode.js1
-rw-r--r--static/modes/nc-mode.js1
-rw-r--r--static/modes/ptx-mode.js1
-rw-r--r--static/noscript.js24
-rw-r--r--static/panes/ast-view.js1
-rw-r--r--static/panes/editor.js1
-rw-r--r--static/panes/opt-view.js1
-rw-r--r--static/simplecook.js3
-rw-r--r--test/_setup.js24
-rw-r--r--test/cache-tests.js2
-rw-r--r--test/compilation-env.js2
-rw-r--r--test/csp-tests.js2
-rw-r--r--test/d-tests.js2
-rw-r--r--test/filter-tests.js34
-rw-r--r--test/nim-tests.js2
-rw-r--r--test/properties-test.js2
-rw-r--r--test/sponsors-test.js2
-rw-r--r--test/statenormalisation-tests.js2
-rw-r--r--webpack.config.esm.js24
64 files changed, 575 insertions, 67 deletions
diff --git a/.eslint-license-header.yml b/.eslint-license-header.yml
new file mode 100644
index 000000000..d6d22dddf
--- /dev/null
+++ b/.eslint-license-header.yml
@@ -0,0 +1,32 @@
+---
+plugins:
+- eslint-plugin-header
+rules:
+ header/header:
+ - error
+ - line
+ - - pattern: "^ Copyright \\(c\\) \\d{4}, .*$"
+ template: " Copyright (c) 2020, Compiler Explorer Authors"
+ - " 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."
+ - 2
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 82e03f223..5a1c5fec6 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -8,6 +8,7 @@ plugins:
- sonarjs
- unicorn
extends:
+- ./.eslint-license-header.yml
- eslint:recommended
- plugin:import/recommended
- plugin:node/recommended
diff --git a/app.js b/app.js
index 3f835a034..b17c710e2 100755
--- a/app.js
+++ b/app.js
@@ -1,4 +1,6 @@
#!/usr/bin/env node
+// shebang interferes with license header plugin
+/* eslint-disable header/header */
// Copyright (c) 2012, Compiler Explorer Authors
// All rights reserved.
diff --git a/lib/buildenvsetup/_all.js b/lib/buildenvsetup/_all.js
index ed299d020..41d6afca3 100644
--- a/lib/buildenvsetup/_all.js
+++ b/lib/buildenvsetup/_all.js
@@ -1,2 +1,26 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
export { BuildEnvSetupCeConanDirect } from './ceconan';
export { BuildEnvSetupCliConan } from './cliconan';
diff --git a/lib/buildenvsetup/index.js b/lib/buildenvsetup/index.js
index c0da33da9..a9c944232 100644
--- a/lib/buildenvsetup/index.js
+++ b/lib/buildenvsetup/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { makeKeyedTypeGetter } from '../keyed-type';
import * as all from './_all';
diff --git a/lib/clientstate-normalizer.js b/lib/clientstate-normalizer.js
index cb9d858fa..22f923776 100644
--- a/lib/clientstate-normalizer.js
+++ b/lib/clientstate-normalizer.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/lib/clientstate.js b/lib/clientstate.js
index 7e8c44d04..da7fed2c0 100644
--- a/lib/clientstate.js
+++ b/lib/clientstate.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/lib/compilers/_all.js b/lib/compilers/_all.js
index 07e0afa8f..030b55167 100644
--- a/lib/compilers/_all.js
+++ b/lib/compilers/_all.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
export { AdaCompiler } from './ada';
export { AnalysisTool } from './analysis-tool';
export { AssemblyCompiler } from './assembly';
diff --git a/lib/compilers/fortran.js b/lib/compilers/fortran.js
index 92a8dda62..d7638b85c 100644
--- a/lib/compilers/fortran.js
+++ b/lib/compilers/fortran.js
@@ -1,5 +1,4 @@
-// Copyright (c) 2018, Forschungzentrum Juelich GmbH
-// Juelich Supercomputing Centre
+// Copyright (c) 2018, Forschungzentrum Juelich GmbH, Juelich Supercomputing Centre
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/compilers/index.js b/lib/compilers/index.js
index e33e540eb..dff6a4924 100644
--- a/lib/compilers/index.js
+++ b/lib/compilers/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { makeKeyedTypeGetter } from '../keyed-type';
import * as all from './_all';
diff --git a/lib/compilers/ispc.js b/lib/compilers/ispc.js
index fccf39ab5..5e3dcf31d 100644
--- a/lib/compilers/ispc.js
+++ b/lib/compilers/ispc.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2020, Matt Godbolt & Rubén Rincón
+// Copyright (c) 2017, Matt Godbolt & Rubén Rincón
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/compilers/tendra.js b/lib/compilers/tendra.js
index eeafaf1b3..b98e55ad8 100644
--- a/lib/compilers/tendra.js
+++ b/lib/compilers/tendra.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { GCCCompiler } from './gcc';
export class TenDRACompiler extends GCCCompiler {
diff --git a/lib/demangler/_all.js b/lib/demangler/_all.js
index 8377905c4..696481c7a 100644
--- a/lib/demangler/_all.js
+++ b/lib/demangler/_all.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
export { CppDemangler } from './cpp';
export { DefaultDemangler } from './default';
export { PascalDemangler } from './pascal';
diff --git a/lib/demangler/default.js b/lib/demangler/default.js
index b59383882..27bea89d4 100644
--- a/lib/demangler/default.js
+++ b/lib/demangler/default.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { BaseDemangler } from './base';
export class DefaultDemangler extends BaseDemangler {
diff --git a/lib/demangler/index.js b/lib/demangler/index.js
index 4ab0975c7..34a65dc7f 100644
--- a/lib/demangler/index.js
+++ b/lib/demangler/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { makeKeyedTypeGetter } from '../keyed-type';
import * as all from './_all';
diff --git a/lib/handlers/formatting.js b/lib/handlers/formatting.js
index fc1bd5b8a..5995c61c0 100644
--- a/lib/handlers/formatting.js
+++ b/lib/handlers/formatting.js
@@ -1,5 +1,4 @@
// Copyright (c) 2018, Compiler Explorer Authors
-//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/keyed-type.js b/lib/keyed-type.js
index 0dd7ba9a6..806ceeeec 100644
--- a/lib/keyed-type.js
+++ b/lib/keyed-type.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { logger } from './logger';
function makeKeyMap(typeName, objects) {
diff --git a/lib/shortener/_all.js b/lib/shortener/_all.js
index 81ca02758..9b6fccc64 100644
--- a/lib/shortener/_all.js
+++ b/lib/shortener/_all.js
@@ -1,2 +1,26 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
export { DefaultShortener } from './default';
export { TinyUrlShortener } from './tinyurl';
diff --git a/lib/shortener/index.js b/lib/shortener/index.js
index 281202e9e..bd38d22c3 100644
--- a/lib/shortener/index.js
+++ b/lib/shortener/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { makeKeyedTypeGetter } from '../keyed-type';
import * as all from './_all';
diff --git a/lib/sources/index.js b/lib/sources/index.js
index 59e7be922..29999ebea 100644
--- a/lib/sources/index.js
+++ b/lib/sources/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import * as browser from './browser';
import * as builtin from './builtin';
diff --git a/lib/storage/_all.js b/lib/storage/_all.js
index b84e62932..ebd17eff3 100644
--- a/lib/storage/_all.js
+++ b/lib/storage/_all.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
export { StorageLocal } from './local';
export { StorageNull } from './null';
export { StorageRemote } from './remote';
diff --git a/lib/storage/base.js b/lib/storage/base.js
index 001a100b7..36e9fe4d5 100644
--- a/lib/storage/base.js
+++ b/lib/storage/base.js
@@ -1,5 +1,4 @@
// Copyright (c) 2018, Compiler Explorer Authors
-//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/storage/index.js b/lib/storage/index.js
index a27e6e884..cbff0608f 100644
--- a/lib/storage/index.js
+++ b/lib/storage/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { makeKeyedTypeGetter } from '../keyed-type';
import * as all from './_all';
diff --git a/lib/storage/local.js b/lib/storage/local.js
index c66b3c931..ec4a41d87 100644
--- a/lib/storage/local.js
+++ b/lib/storage/local.js
@@ -1,5 +1,4 @@
// Copyright (c) 2018, Compiler Explorer Authors
-//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/storage/null.js b/lib/storage/null.js
index d979e98f5..04eb27417 100644
--- a/lib/storage/null.js
+++ b/lib/storage/null.js
@@ -1,5 +1,4 @@
// Copyright (c) 2018, Compiler Explorer Authors
-//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/storage/remote.js b/lib/storage/remote.js
index bb6adc5f6..170aeebb5 100644
--- a/lib/storage/remote.js
+++ b/lib/storage/remote.js
@@ -1,5 +1,4 @@
// Copyright (c) 2018, Compiler Explorer Authors
-//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/storage/s3.js b/lib/storage/s3.js
index 1e12cf83e..d93ce74c3 100644
--- a/lib/storage/s3.js
+++ b/lib/storage/s3.js
@@ -1,5 +1,4 @@
// Copyright (c) 2018, Compiler Explorer Authors
-//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
diff --git a/lib/tooling/_all.js b/lib/tooling/_all.js
index 48f38e28f..34d46d87a 100644
--- a/lib/tooling/_all.js
+++ b/lib/tooling/_all.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
export { ClangFormatTool } from './clang-format-tool';
export { ClangQueryTool } from './clang-query-tool';
export { ClangTidyTool } from './clang-tidy-tool';
diff --git a/lib/tooling/index.js b/lib/tooling/index.js
index 85894b0bb..bbf08a203 100644
--- a/lib/tooling/index.js
+++ b/lib/tooling/index.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import { makeKeyedTypeGetter } from '../keyed-type';
import * as all from './_all';
diff --git a/package-lock.json b/package-lock.json
index a6ed2a37f..b6ac2a309 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -4549,6 +4549,11 @@
}
}
},
+ "eslint-plugin-header": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-header/-/eslint-plugin-header-3.1.0.tgz",
+ "integrity": "sha512-jKKcwMsB0/ftBv3UVmuQir1f8AmXzTS9rdzPkileW8/Nz9ivdea8vOU1ZrMbX+WH6CpwnHEo3403baSHk40Mag=="
+ },
"eslint-plugin-import": {
"version": "2.22.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz",
diff --git a/package.json b/package.json
index 1cd225328..a5693ac1b 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
"deep-equal-in-any-order": "^1.0.27",
"es6-promise": "^4.2.8",
"es6-shim": "^0.35.5",
+ "eslint-plugin-header": "^3.1.0",
"esm": "^3.2.25",
"express": "^4.17.1",
"file-saver": "^2.0.2",
diff --git a/static/.eslintrc.yml b/static/.eslintrc.yml
index f1a1a4eaf..db01b501b 100644
--- a/static/.eslintrc.yml
+++ b/static/.eslintrc.yml
@@ -7,6 +7,7 @@ plugins:
- sonarjs
- unicorn
extends:
+- ../.eslint-license-header.yml
- eslint:recommended
- plugin:requirejs/recommended
env:
diff --git a/static/alert.js b/static/alert.js
index 5fc77b1a8..422f42571 100644
--- a/static/alert.js
+++ b/static/alert.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var _ = require('underscore');
diff --git a/static/ansi-to-html.js b/static/ansi-to-html.js
index 6e1aa4c73..0911bbaeb 100644
--- a/static/ansi-to-html.js
+++ b/static/ansi-to-html.js
@@ -1,3 +1,5 @@
+/* eslint-disable header/header */
+
// Copyright (c) 2012 Rob Burns
//
// Permission is hereby granted, free of charge, to any person
diff --git a/static/codelens-handler.js b/static/codelens-handler.js
index 2ce06d5d4..395cfeef3 100644
--- a/static/codelens-handler.js
+++ b/static/codelens-handler.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var _ = require('underscore'),
diff --git a/static/colour.js b/static/colour.js
index 2f290c3de..0b2a91de7 100644
--- a/static/colour.js
+++ b/static/colour.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var _ = require('underscore');
diff --git a/static/main.js b/static/main.js
index 1dd404303..6e1a9b251 100644
--- a/static/main.js
+++ b/static/main.js
@@ -20,7 +20,8 @@
// 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
+// POSSIBILITY OF SUCH DAMAGE.
+
'use strict';
// setup analytics before anything else so we can capture any future errors in sentry
diff --git a/static/modes/ada-mode.js b/static/modes/ada-mode.js
index 1526b7c47..5eeb09c46 100644
--- a/static/modes/ada-mode.js
+++ b/static/modes/ada-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var monaco = require('monaco-editor');
diff --git a/static/modes/clean-mode.js b/static/modes/clean-mode.js
index 945884312..ddc691c2d 100644
--- a/static/modes/clean-mode.js
+++ b/static/modes/clean-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var monaco = require('monaco-editor');
diff --git a/static/modes/cppp-mode.js b/static/modes/cppp-mode.js
index ab33b1a90..ae2fac105 100644
--- a/static/modes/cppp-mode.js
+++ b/static/modes/cppp-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var $ = require('jquery');
var monaco = require('monaco-editor');
diff --git a/static/modes/cppx-gold-mode.js b/static/modes/cppx-gold-mode.js
index fb4ed2dc3..c64eb0fa5 100644
--- a/static/modes/cppx-gold-mode.js
+++ b/static/modes/cppx-gold-mode.js
@@ -1,6 +1,5 @@
// Copyright (c) 2020, Lock3 Software LLC
// All rights reserved.
-// Originally based on `./d-mode.js` by the Compiler Explorer Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
@@ -23,6 +22,8 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
+// Originally based on `./d-mode.js` by the Compiler Explorer Authors
+
'use strict';
var monaco = require('monaco-editor');
diff --git a/static/modes/cuda-mode.js b/static/modes/cuda-mode.js
index 090c60363..895461aca 100644
--- a/static/modes/cuda-mode.js
+++ b/static/modes/cuda-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var $ = require('jquery');
var monaco = require('monaco-editor');
diff --git a/static/modes/d-mode.js b/static/modes/d-mode.js
index 75d37a8a3..ba17aed14 100644
--- a/static/modes/d-mode.js
+++ b/static/modes/d-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var monaco = require('monaco-editor');
diff --git a/static/modes/fortran-mode.js b/static/modes/fortran-mode.js
index 507231bf4..458d61f53 100644
--- a/static/modes/fortran-mode.js
+++ b/static/modes/fortran-mode.js
@@ -1,32 +1,30 @@
-// Copyright (c) 2015, Thomas E. Dunn
-// Copyright (c) 2017, Compiler Explorer Authors
-// Copyright (c) 2018, Forschungzentrum Juelich GmbH
-// Juelich Supercomputing Centre
-// All rights reserved.
+// Copyright (c) 2018, Forschungzentrum Juelich GmbH, Juelich Supercomputing Centre
+// All rights reserved.
//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
+// 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.
+// * 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.
+
// The lists of keywords, operator, functions, and subroutines have been adopted from
-// vs.language.fortran by Thomas E. Dunn
+// vs.language.fortran, Copyright (c) 2015, Thomas E. Dunn
+
'use strict';
var monaco = require('monaco-editor');
diff --git a/static/modes/gccdump-rtl-gimple-mode.js b/static/modes/gccdump-rtl-gimple-mode.js
index 8bb531a00..462f3be5d 100644
--- a/static/modes/gccdump-rtl-gimple-mode.js
+++ b/static/modes/gccdump-rtl-gimple-mode.js
@@ -1,6 +1,3 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Released under the MIT license
-
// Copyright (c) 2017, Marc Poulhiès - Kalray Inc.
// All rights reserved.
//
@@ -25,6 +22,9 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Released under the MIT license
+
// this is mostly based on 'mylang' example from https://microsoft.github.io/monaco-editor/monarch.html
'use strict';
diff --git a/static/modes/haskell-mode.js b/static/modes/haskell-mode.js
index 5472888ae..b1162ad02 100644
--- a/static/modes/haskell-mode.js
+++ b/static/modes/haskell-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var monaco = require('monaco-editor');
diff --git a/static/modes/nc-mode.js b/static/modes/nc-mode.js
index dd1beafab..ad534261d 100644
--- a/static/modes/nc-mode.js
+++ b/static/modes/nc-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var $ = require('jquery');
var monaco = require('monaco-editor');
diff --git a/static/modes/ptx-mode.js b/static/modes/ptx-mode.js
index 9f335db8c..07f5f720d 100644
--- a/static/modes/ptx-mode.js
+++ b/static/modes/ptx-mode.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var $ = require('jquery');
var monaco = require('monaco-editor');
diff --git a/static/noscript.js b/static/noscript.js
index c89507407..4c027ae5d 100644
--- a/static/noscript.js
+++ b/static/noscript.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
require('./noscript.css');
var $ = require('jquery');
diff --git a/static/panes/ast-view.js b/static/panes/ast-view.js
index 45a01c5a5..7b2051f5b 100644
--- a/static/panes/ast-view.js
+++ b/static/panes/ast-view.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var FontScale = require('../fontscale');
diff --git a/static/panes/editor.js b/static/panes/editor.js
index 772e9564d..d0ae36a8d 100644
--- a/static/panes/editor.js
+++ b/static/panes/editor.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var _ = require('underscore');
var $ = require('jquery');
diff --git a/static/panes/opt-view.js b/static/panes/opt-view.js
index ada1a1265..9e4f65f40 100644
--- a/static/panes/opt-view.js
+++ b/static/panes/opt-view.js
@@ -21,6 +21,7 @@
// 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.
+
'use strict';
var FontScale = require('../fontscale');
diff --git a/static/simplecook.js b/static/simplecook.js
index 3ca0482b6..363fcbe40 100644
--- a/static/simplecook.js
+++ b/static/simplecook.js
@@ -20,7 +20,8 @@
// 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
+// POSSIBILITY OF SUCH DAMAGE.
+
'use strict';
var $ = require('jquery');
diff --git a/test/_setup.js b/test/_setup.js
index 7f411c4cd..d6547b863 100644
--- a/test/_setup.js
+++ b/test/_setup.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import chaiHttp from 'chai-http';
diff --git a/test/cache-tests.js b/test/cache-tests.js
index b133a22f6..c9d0e4301 100644
--- a/test/cache-tests.js
+++ b/test/cache-tests.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/compilation-env.js b/test/compilation-env.js
index 9f959ae5d..afc21b156 100644
--- a/test/compilation-env.js
+++ b/test/compilation-env.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/csp-tests.js b/test/csp-tests.js
index ba444b5a4..22a1a742d 100644
--- a/test/csp-tests.js
+++ b/test/csp-tests.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/d-tests.js b/test/d-tests.js
index 343e214e8..23ca09c0d 100644
--- a/test/d-tests.js
+++ b/test/d-tests.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/filter-tests.js b/test/filter-tests.js
index 904e24c7c..956957e96 100644
--- a/test/filter-tests.js
+++ b/test/filter-tests.js
@@ -1,25 +1,25 @@
// Copyright (c) 2016, Compiler Explorer Authors
// 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
// modification, are permitted provided that the following conditions are met:
-//
-// * Redistributions of source code must retain the above copyright notice,
+//
+// * 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
+// * 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
+//
+// 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.
import { AsmParser } from '../lib/asm-parser';
diff --git a/test/nim-tests.js b/test/nim-tests.js
index edfe8576c..5f074b297 100644
--- a/test/nim-tests.js
+++ b/test/nim-tests.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/properties-test.js b/test/properties-test.js
index 519646172..df58cd333 100644
--- a/test/properties-test.js
+++ b/test/properties-test.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/sponsors-test.js b/test/sponsors-test.js
index 27bb4a5f3..604f53ac1 100644
--- a/test/sponsors-test.js
+++ b/test/sponsors-test.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/test/statenormalisation-tests.js b/test/statenormalisation-tests.js
index e9452fbc8..f41fb708b 100644
--- a/test/statenormalisation-tests.js
+++ b/test/statenormalisation-tests.js
@@ -18,7 +18,7 @@
// 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) ,
+// 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.
diff --git a/webpack.config.esm.js b/webpack.config.esm.js
index 074cddf0c..a6ee036d1 100644
--- a/webpack.config.esm.js
+++ b/webpack.config.esm.js
@@ -1,3 +1,27 @@
+// Copyright (c) 2020, Compiler Explorer Authors
+// 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.
+
/* eslint-disable node/no-unpublished-import */
import path from 'path';
import { fileURLToPath } from 'url';