diff --git a/gulpfile.mjs b/gulpfile.mjs index f1876aed2..e694e8357 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -2041,6 +2041,82 @@ gulp.task( ) ); +gulp.task("lint-licenses", function (done) { + console.log("\n### Checking license headers"); + + const jsRE = + /^(?:#[^\n]*\n)?\/\* Copyright \d{4} Mozilla Foundation\n \*\n \* Licensed under the Apache License, Version 2\.0 \(the "License"\);/; + const htmlRE = /^\n