From 8c6aad8440e8a3b4b2898737ed7d55e0c2221fd0 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sun, 8 Jan 2023 16:11:38 -0800 Subject: [PATCH] chore: add license headers, and a CI check for their presence --- .eslintrc.js | 16 + .license-check.json | 52 ++ .license-header.txt | 13 + .prettierrc.js | 15 + Herebyfile.mjs | 9 +- package-lock.json | 677 ++++++++++++------ package.json | 3 + packages/jsdoc-cli/index.js | 15 + packages/jsdoc-cli/lib/engine.js | 15 + packages/jsdoc-cli/lib/flags.js | 15 + packages/jsdoc-cli/lib/help.js | 15 + packages/jsdoc-cli/lib/logger.js | 15 + packages/jsdoc-cli/test/specs/index.js | 15 + packages/jsdoc-cli/test/specs/lib/engine.js | 15 + packages/jsdoc-cli/test/specs/lib/flags.js | 15 + packages/jsdoc-cli/test/specs/lib/help.js | 15 + packages/jsdoc-cli/test/specs/lib/logger.js | 15 + packages/jsdoc-core/index.js | 15 + packages/jsdoc-core/lib/config.js | 15 + packages/jsdoc-core/lib/dependencies.js | 15 + packages/jsdoc-core/lib/env.js | 15 + packages/jsdoc-core/lib/name.js | 15 + packages/jsdoc-core/test/specs/index.js | 15 + packages/jsdoc-core/test/specs/lib/config.js | 15 + .../jsdoc-core/test/specs/lib/dependencies.js | 15 + packages/jsdoc-core/test/specs/lib/env.js | 15 + packages/jsdoc-core/test/specs/lib/name.js | 15 + packages/jsdoc-eslint-config/index.js | 15 + packages/jsdoc-parse/index.js | 15 + packages/jsdoc-parse/lib/ast-builder.js | 15 + packages/jsdoc-parse/lib/ast-node.js | 15 + packages/jsdoc-parse/lib/syntax.js | 15 + packages/jsdoc-parse/test/specs/index.js | 15 + .../jsdoc-parse/test/specs/lib/ast-builder.js | 15 + .../jsdoc-parse/test/specs/lib/ast-node.js | 15 + packages/jsdoc-parse/test/specs/lib/syntax.js | 15 + packages/jsdoc-prettier-config/index.js | 15 + packages/jsdoc-salty/index.js | 15 + packages/jsdoc-salty/lib/salty.js | 15 + packages/jsdoc-salty/test/specs/index.js | 15 + packages/jsdoc-salty/test/specs/lib/salty.js | 15 + packages/jsdoc-tag/index.js | 15 + packages/jsdoc-tag/lib/inline.js | 15 + packages/jsdoc-tag/lib/type.js | 15 + packages/jsdoc-tag/test/specs/index.js | 15 + packages/jsdoc-tag/test/specs/lib/inline.js | 15 + packages/jsdoc-tag/test/specs/lib/type.js | 15 + packages/jsdoc-task-runner/index.js | 15 + packages/jsdoc-task-runner/lib/task-runner.js | 15 + packages/jsdoc-task-runner/lib/task.js | 15 + packages/jsdoc-task-runner/lib/validators.js | 15 + .../jsdoc-task-runner/test/specs/index.js | 15 + .../test/specs/lib/task-runner.js | 15 + .../jsdoc-task-runner/test/specs/lib/task.js | 15 + packages/jsdoc-test-matchers/index.js | 15 + packages/jsdoc-util/index.js | 15 + packages/jsdoc-util/lib/bus.js | 15 + packages/jsdoc-util/lib/cast.js | 15 + packages/jsdoc-util/lib/fs.js | 15 + packages/jsdoc-util/lib/log.js | 15 + packages/jsdoc-util/test/specs/index.js | 15 + packages/jsdoc-util/test/specs/lib/bus.js | 15 + packages/jsdoc-util/test/specs/lib/cast.js | 15 + packages/jsdoc-util/test/specs/lib/fs.js | 15 + packages/jsdoc-util/test/specs/lib/log.js | 15 + packages/jsdoc/cli.js | 15 + packages/jsdoc/jsdoc.js | 15 + packages/jsdoc/lib/jsdoc/augment.js | 15 + packages/jsdoc/lib/jsdoc/borrow.js | 15 + packages/jsdoc/lib/jsdoc/doclet.js | 15 + packages/jsdoc/lib/jsdoc/package.js | 15 + packages/jsdoc/lib/jsdoc/plugins.js | 15 + packages/jsdoc/lib/jsdoc/schema.js | 15 + packages/jsdoc/lib/jsdoc/src/filter.js | 15 + packages/jsdoc/lib/jsdoc/src/handlers.js | 15 + packages/jsdoc/lib/jsdoc/src/parser.js | 15 + packages/jsdoc/lib/jsdoc/src/scanner.js | 15 + packages/jsdoc/lib/jsdoc/src/visitor.js | 15 + packages/jsdoc/lib/jsdoc/src/walker.js | 15 + packages/jsdoc/lib/jsdoc/tag.js | 15 + packages/jsdoc/lib/jsdoc/tag/dictionary.js | 15 + .../lib/jsdoc/tag/dictionary/definitions.js | 15 + packages/jsdoc/lib/jsdoc/tag/validator.js | 15 + packages/jsdoc/lib/jsdoc/template.js | 15 + .../jsdoc/lib/jsdoc/util/templateHelper.js | 15 + packages/jsdoc/plugins/commentConvert.js | 15 + packages/jsdoc/plugins/commentsOnly.js | 15 + packages/jsdoc/plugins/escapeHtml.js | 15 + packages/jsdoc/plugins/eventDumper.js | 15 + packages/jsdoc/plugins/overloadHelper.js | 15 + packages/jsdoc/plugins/partial.js | 15 + packages/jsdoc/plugins/railsTemplate.js | 15 + packages/jsdoc/plugins/shout.js | 15 + packages/jsdoc/plugins/sourcetag.js | 15 + packages/jsdoc/plugins/summarize.js | 15 + .../plugins/test/specs/commentConvert.js | 15 + .../jsdoc/plugins/test/specs/escapeHtml.js | 15 + .../plugins/test/specs/overloadHelper.js | 15 + .../jsdoc/plugins/test/specs/railsTemplate.js | 15 + packages/jsdoc/plugins/test/specs/shout.js | 15 + .../jsdoc/plugins/test/specs/sourcetag.js | 15 + .../jsdoc/plugins/test/specs/summarize.js | 15 + .../jsdoc/plugins/test/specs/underscore.js | 15 + packages/jsdoc/plugins/underscore.js | 15 + packages/jsdoc/templates/default/publish.js | 15 + .../default/static/scripts/linenumber.js | 15 + .../templates/default/tmpl/augments.tmpl | 16 + .../templates/default/tmpl/container.tmpl | 16 + .../jsdoc/templates/default/tmpl/details.tmpl | 16 + .../jsdoc/templates/default/tmpl/example.tmpl | 16 + .../templates/default/tmpl/examples.tmpl | 18 +- .../templates/default/tmpl/exceptions.tmpl | 16 + .../jsdoc/templates/default/tmpl/layout.tmpl | 16 + .../templates/default/tmpl/mainpage.tmpl | 16 + .../jsdoc/templates/default/tmpl/members.tmpl | 16 + .../jsdoc/templates/default/tmpl/method.tmpl | 16 + .../templates/default/tmpl/modifies.tmpl | 16 + .../jsdoc/templates/default/tmpl/params.tmpl | 16 + .../templates/default/tmpl/properties.tmpl | 16 + .../jsdoc/templates/default/tmpl/returns.tmpl | 18 +- .../jsdoc/templates/default/tmpl/source.tmpl | 18 +- .../jsdoc/templates/default/tmpl/type.tmpl | 18 +- packages/jsdoc/templates/silent/publish.js | 15 + packages/jsdoc/test/.eslintrc.js | 15 + packages/jsdoc/test/helpers/jsdoc.js | 15 + packages/jsdoc/test/index.js | 15 + .../jsdoc/test/specs/documentation/alias.js | 15 + .../jsdoc/test/specs/documentation/also.js | 15 + .../specs/documentation/anonymousclass.js | 15 + .../documentation/anonymousclassparam.js | 15 + .../test/specs/documentation/arrowfunction.js | 15 + .../test/specs/documentation/asyncfunction.js | 15 + .../test/specs/documentation/callback.js | 15 + .../specs/documentation/classproperties.js | 15 + .../specs/documentation/classwithoutname.js | 15 + .../jsdoc/test/specs/documentation/const.js | 15 + .../test/specs/documentation/defaultparams.js | 15 + .../test/specs/documentation/emptycomments.js | 15 + .../test/specs/documentation/exportclass.js | 15 + .../test/specs/documentation/exportdefault.js | 15 + .../specs/documentation/exportdefaultclass.js | 15 + .../jsdoc/test/specs/documentation/exports.js | 15 + .../specs/documentation/funcExpression.js | 15 + .../test/specs/documentation/generators.js | 15 + .../jsdoc/test/specs/documentation/getset.js | 15 + .../test/specs/documentation/inlinecomment.js | 15 + .../specs/documentation/inlineparamcomment.js | 15 + .../jsdoc/test/specs/documentation/inner.js | 15 + .../test/specs/documentation/innerscope.js | 15 + .../specs/documentation/instanceproperty.js | 15 + .../jsdoc/test/specs/documentation/jsx.js | 15 + .../jsdoc/test/specs/documentation/lends.js | 15 + .../test/specs/documentation/letkeyword.js | 15 + .../specs/documentation/methoddefinition.js | 15 + .../jsdoc/test/specs/documentation/mixins.js | 15 + .../test/specs/documentation/moduleclasses.js | 15 + .../test/specs/documentation/moduleinner.js | 15 + .../documentation/moduleisconstructor.js | 15 + .../specs/documentation/moduleisfunction.js | 15 + .../jsdoc/test/specs/documentation/modules.js | 15 + .../test/specs/documentation/objectkeys.js | 15 + .../test/specs/documentation/objectlit.js | 15 + .../specs/documentation/objectpropertykeys.js | 15 + .../specs/documentation/paramtagsametype.js | 15 + .../test/specs/documentation/quotename.js | 15 + .../test/specs/documentation/restparams.js | 15 + .../test/specs/documentation/specialchars.js | 15 + .../test/specs/documentation/specialnames.js | 15 + .../test/specs/documentation/starbangstar.js | 15 + .../jsdoc/test/specs/documentation/this.js | 15 + .../specs/documentation/trailingcomment.js | 15 + .../test/specs/documentation/typetaginline.js | 15 + .../specs/documentation/typetagwithnewline.js | 15 + .../jsdoc/test/specs/documentation/var.js | 15 + .../test/specs/documentation/variations.js | 15 + .../jsdoc/test/specs/documentation/virtual.js | 15 + packages/jsdoc/test/specs/jsdoc/augment.js | 15 + packages/jsdoc/test/specs/jsdoc/borrow.js | 15 + packages/jsdoc/test/specs/jsdoc/doclet.js | 15 + packages/jsdoc/test/specs/jsdoc/package.js | 15 + packages/jsdoc/test/specs/jsdoc/plugins.js | 15 + packages/jsdoc/test/specs/jsdoc/schema.js | 15 + packages/jsdoc/test/specs/jsdoc/src/filter.js | 15 + .../jsdoc/test/specs/jsdoc/src/handlers.js | 15 + packages/jsdoc/test/specs/jsdoc/src/parser.js | 15 + .../jsdoc/test/specs/jsdoc/src/scanner.js | 15 + .../jsdoc/test/specs/jsdoc/src/visitor.js | 15 + packages/jsdoc/test/specs/jsdoc/src/walker.js | 15 + packages/jsdoc/test/specs/jsdoc/tag.js | 15 + .../jsdoc/test/specs/jsdoc/tag/dictionary.js | 15 + .../specs/jsdoc/tag/dictionary/definitions.js | 15 + .../jsdoc/test/specs/jsdoc/tag/validator.js | 15 + packages/jsdoc/test/specs/jsdoc/template.js | 15 + .../test/specs/jsdoc/util/templateHelper.js | 16 +- packages/jsdoc/test/specs/plugins/plugins.js | 15 + packages/jsdoc/test/specs/tags/abstracttag.js | 15 + packages/jsdoc/test/specs/tags/accesstag.js | 15 + packages/jsdoc/test/specs/tags/aliastag.js | 15 + packages/jsdoc/test/specs/tags/asynctag.js | 15 + packages/jsdoc/test/specs/tags/augmentstag.js | 15 + packages/jsdoc/test/specs/tags/authortag.js | 15 + packages/jsdoc/test/specs/tags/borrowstag.js | 15 + .../jsdoc/test/specs/tags/classdesctag.js | 15 + packages/jsdoc/test/specs/tags/classtag.js | 15 + packages/jsdoc/test/specs/tags/constanttag.js | 15 + .../jsdoc/test/specs/tags/constructortag.js | 15 + .../jsdoc/test/specs/tags/constructstag.js | 15 + .../jsdoc/test/specs/tags/copyrighttag.js | 15 + packages/jsdoc/test/specs/tags/defaulttag.js | 15 + packages/jsdoc/test/specs/tags/definetag.js | 15 + .../jsdoc/test/specs/tags/deprecatedtag.js | 15 + .../jsdoc/test/specs/tags/descriptiontag.js | 15 + packages/jsdoc/test/specs/tags/dicttag.js | 15 + packages/jsdoc/test/specs/tags/enumtag.js | 15 + .../jsdoc/test/specs/tags/eventfirestag.js | 15 + packages/jsdoc/test/specs/tags/exampletag.js | 15 + .../jsdoc/test/specs/tags/exceptiontag.js | 15 + packages/jsdoc/test/specs/tags/exportstag.js | 15 + packages/jsdoc/test/specs/tags/exporttag.js | 15 + packages/jsdoc/test/specs/tags/externaltag.js | 15 + packages/jsdoc/test/specs/tags/externstag.js | 15 + .../jsdoc/test/specs/tags/fileoverviewtag.js | 15 + packages/jsdoc/test/specs/tags/filetag.js | 15 + packages/jsdoc/test/specs/tags/functiontag.js | 15 + .../jsdoc/test/specs/tags/generatortag.js | 15 + packages/jsdoc/test/specs/tags/globaltag.js | 15 + .../test/specs/tags/hideconstructortag.js | 15 + packages/jsdoc/test/specs/tags/ignoretag.js | 15 + .../jsdoc/test/specs/tags/implementstag.js | 15 + .../jsdoc/test/specs/tags/implicitcasttag.js | 15 + .../jsdoc/test/specs/tags/inheritdoctag.js | 15 + .../jsdoc/test/specs/tags/interfacetag.js | 15 + packages/jsdoc/test/specs/tags/kindtag.js | 15 + packages/jsdoc/test/specs/tags/lendstag.js | 15 + packages/jsdoc/test/specs/tags/licensetag.js | 15 + packages/jsdoc/test/specs/tags/listenstag.js | 15 + packages/jsdoc/test/specs/tags/memberoftag.js | 15 + packages/jsdoc/test/specs/tags/membertag.js | 15 + packages/jsdoc/test/specs/tags/mixestag.js | 15 + packages/jsdoc/test/specs/tags/mixintag.js | 15 + packages/jsdoc/test/specs/tags/modifiestag.js | 15 + packages/jsdoc/test/specs/tags/moduletag.js | 15 + .../jsdoc/test/specs/tags/namespacetag.js | 15 + packages/jsdoc/test/specs/tags/nametag.js | 15 + packages/jsdoc/test/specs/tags/noaliastag.js | 15 + .../jsdoc/test/specs/tags/nocollapsetag.js | 15 + .../jsdoc/test/specs/tags/nocompiletag.js | 15 + .../jsdoc/test/specs/tags/nosideeffectstag.js | 15 + packages/jsdoc/test/specs/tags/overridetag.js | 15 + packages/jsdoc/test/specs/tags/overviewtag.js | 15 + packages/jsdoc/test/specs/tags/packagetag.js | 15 + packages/jsdoc/test/specs/tags/paramtag.js | 15 + .../test/specs/tags/polymerbehaviortag.js | 15 + packages/jsdoc/test/specs/tags/polymertag.js | 15 + packages/jsdoc/test/specs/tags/preservetag.js | 15 + packages/jsdoc/test/specs/tags/privatetag.js | 15 + packages/jsdoc/test/specs/tags/propertytag.js | 15 + .../jsdoc/test/specs/tags/protectedtag.js | 15 + packages/jsdoc/test/specs/tags/publictag.js | 15 + packages/jsdoc/test/specs/tags/readonlytag.js | 15 + packages/jsdoc/test/specs/tags/requirestag.js | 15 + packages/jsdoc/test/specs/tags/returnstag.js | 15 + packages/jsdoc/test/specs/tags/scopetags.js | 15 + packages/jsdoc/test/specs/tags/seetag.js | 15 + packages/jsdoc/test/specs/tags/sincetag.js | 15 + packages/jsdoc/test/specs/tags/structtag.js | 15 + packages/jsdoc/test/specs/tags/summarytag.js | 15 + packages/jsdoc/test/specs/tags/suppresstag.js | 15 + packages/jsdoc/test/specs/tags/templatetag.js | 15 + packages/jsdoc/test/specs/tags/thistag.js | 15 + packages/jsdoc/test/specs/tags/todotag.js | 15 + packages/jsdoc/test/specs/tags/typedeftag.js | 15 + packages/jsdoc/test/specs/tags/typekind.js | 15 + packages/jsdoc/test/specs/tags/typetag.js | 15 + .../jsdoc/test/specs/tags/undocumentedtag.js | 15 + .../jsdoc/test/specs/tags/unrestrictedtag.js | 15 + .../jsdoc/test/specs/tags/variationtag.js | 15 + packages/jsdoc/test/specs/tags/versiontag.js | 15 + packages/jsdoc/test/specs/tags/yieldstag.js | 15 + 279 files changed, 4681 insertions(+), 209 deletions(-) create mode 100644 .license-check.json create mode 100644 .license-header.txt diff --git a/.eslintrc.js b/.eslintrc.js index b6f3ccee..935a2680 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,19 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ module.exports = { extends: ['@jsdoc', 'plugin:prettier/recommended'], + root: true, }; diff --git a/.license-check.json b/.license-check.json new file mode 100644 index 00000000..1f29dab1 --- /dev/null +++ b/.license-check.json @@ -0,0 +1,52 @@ +{ + "defaultFormat": { + "prepend": "", + "append": "" + }, + "ignore": [ + ".parcel-cache", + "**/.*", + "!**/.*.js", + "**/*.EXAMPLE", + "**/*.json", + "**/*.md", + "**/*.txt", + "**/AUTHORS", + "**/CONTRIB*", + "**/coverage", + "**/test/fixtures", + "out", + "packages/jsdoc/templates/default/static", + "tmp" + ], + "license": ".license-header.txt", + "licenseFormats": { + "css|js|mjs|scss|ts": { + "prepend": "/*", + "eachLine": { + "prepend": " " + }, + "append": "*/" + }, + "njk": { + "prepend": "{#-", + "eachLine": { + "prepend": " " + }, + "append": "-#}" + }, + "tmpl": { + "prepend": "" + }, + "yaml": { + "eachLine": { + "prepend": "# " + } + } + }, + "regexIdentifier": "%%" +} diff --git a/.license-header.txt b/.license-header.txt new file mode 100644 index 00000000..ef3005d3 --- /dev/null +++ b/.license-header.txt @@ -0,0 +1,13 @@ +Copyright %%[0-9]{4}%% the JSDoc Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/.prettierrc.js b/.prettierrc.js index e66e678d..c548555c 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,3 +1,18 @@ +/* + Copyright 2021 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ module.exports = { ...require('./packages/jsdoc-prettier-config'), }; diff --git a/Herebyfile.mjs b/Herebyfile.mjs index 75874316..79a2fc61 100644 --- a/Herebyfile.mjs +++ b/Herebyfile.mjs @@ -84,9 +84,16 @@ export const format = task({ }, }); +export const licenseHeaders = task({ + name: 'license-headers', + run: async () => { + await execa(bin('license-check-and-add'), ['check', '-f', '.license-check.json']); + }, +}); + export const licenseCheck = task({ name: 'license-check', - dependencies: [dependencyLicenses], + dependencies: [dependencyLicenses, licenseHeaders], }); export const lint = task({ diff --git a/package-lock.json b/package-lock.json index a2098426..ffd50e45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "js-green-licenses": "^3.0.1", "klaw-sync": "^6.0.0", "lerna": "^6.0.3", + "license-check-and-add": "^4.0.5", "lodash": "^4.17.21", "mock-fs": "^5.2.0", "prettier": "^2.7.1", @@ -655,15 +656,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/@lerna/cli/node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, "node_modules/@lerna/cli/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -2966,6 +2958,16 @@ "node": ">= 10" } }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", @@ -2990,6 +2992,12 @@ "integrity": "sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==", "dev": true }, + "node_modules/@types/node": { + "version": "18.11.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", + "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", + "dev": true + }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", @@ -3582,15 +3590,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/c8/node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, "node_modules/c8/node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -3854,6 +3853,15 @@ "node": ">=6" } }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/camelcase-keys": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", @@ -3871,15 +3879,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/camelcase-keys/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -3957,6 +3956,17 @@ "node": ">= 10" } }, + "node_modules/cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "dependencies": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, "node_modules/clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", @@ -3992,15 +4002,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -4311,15 +4312,6 @@ "node": ">=4" } }, - "node_modules/conventional-changelog-core/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/conventional-changelog-core/node_modules/path-type": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", @@ -5855,6 +5847,43 @@ "node": ">=4.0.0" } }, + "node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/find-up/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/find-up/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", @@ -6049,6 +6078,15 @@ "node": ">=10" } }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, "node_modules/get-pkg-repo": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz", @@ -6111,15 +6149,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/get-pkg-repo/node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, "node_modules/get-pkg-repo/node_modules/hosted-git-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", @@ -6334,6 +6363,15 @@ "ini": "^1.3.2" } }, + "node_modules/gitignore-to-glob": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/gitignore-to-glob/-/gitignore-to-glob-0.3.0.tgz", + "integrity": "sha512-mk74BdnK7lIwDHnotHddx1wsjMOFIThpLY3cPNniJ/2fA/tlLzHnFxIdR+4sLOu5KGgQJdij4kjJ2RoUNnCNMA==", + "dev": true, + "engines": { + "node": ">=4.4 <5 || >=6.9" + } + }, "node_modules/glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", @@ -8165,6 +8203,73 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/license-check-and-add": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/license-check-and-add/-/license-check-and-add-4.0.5.tgz", + "integrity": "sha512-FySnMi3Kf/vO5jka8tcbVF1FhDFb8PWsQ8pg5Y7U/zkQgta+fIrJGcGHO58WFjfKlgvhneG1uQ00Fpxzhau3QA==", + "dev": true, + "dependencies": { + "fs-extra": "^8.1.0", + "gitignore-to-glob": "^0.3.0", + "globby": "^10.0.1", + "ignore": "^5.1.2", + "yargs": "^13.3.0" + }, + "bin": { + "license-check-and-add": "dist/src/cli.js" + } + }, + "node_modules/license-check-and-add/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/license-check-and-add/node_modules/globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "dev": true, + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/license-check-and-add/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/license-check-and-add/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", @@ -9347,15 +9452,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/nx": { "version": "15.0.1", "resolved": "https://registry.npmjs.org/nx/-/nx-15.0.1.tgz", @@ -9596,15 +9692,6 @@ "node": ">=12" } }, - "node_modules/nx/node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, "node_modules/nx/node_modules/glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", @@ -9975,27 +10062,6 @@ "node": ">=6" } }, - "node_modules/ora/node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/ora/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", @@ -10337,6 +10403,15 @@ "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", "dev": true }, + "node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -10892,6 +10967,12 @@ "node": ">=0.10.0" } }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, "node_modules/resolve": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", @@ -11315,50 +11396,53 @@ } }, "node_modules/string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, "node_modules/string-width/node_modules/is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", "dev": true, - "dependencies": { - "number-is-nan": "^1.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, "node_modules/strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "dependencies": { - "ansi-regex": "^2.0.0" + "ansi-regex": "^4.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, "node_modules/strip-ansi/node_modules/ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, "node_modules/strip-bom": { @@ -11835,6 +11919,12 @@ "defaults": "^1.0.3" } }, + "node_modules/which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, "node_modules/wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", @@ -11881,6 +11971,20 @@ "node": ">=8" } }, + "node_modules/wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -12044,6 +12148,12 @@ "node": ">=0.4" } }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -12059,6 +12169,24 @@ "node": ">= 6" } }, + "node_modules/yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "dependencies": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, "node_modules/yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", @@ -12068,6 +12196,16 @@ "node": ">=10" } }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -12562,12 +12700,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -14359,6 +14491,16 @@ "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", "dev": true }, + "@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "requires": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, "@types/istanbul-lib-coverage": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", @@ -14383,6 +14525,12 @@ "integrity": "sha512-fZQQafSREFyuZcdWFAExYjBiCL7AUCdgsk80iO0q4yihYYdcIiH28CcuPTGFgLOCC8RlW49GSQxdHwZP+I7CNg==", "dev": true }, + "@types/node": { + "version": "18.11.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", + "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", + "dev": true + }, "@types/normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", @@ -14844,12 +14992,6 @@ "path-exists": "^4.0.0" } }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, "locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -15050,6 +15192,12 @@ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, "camelcase-keys": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", @@ -15059,14 +15207,6 @@ "camelcase": "^5.3.1", "map-obj": "^4.0.0", "quick-lru": "^4.0.1" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - } } }, "chalk": { @@ -15125,6 +15265,17 @@ "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", "dev": true }, + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "requires": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, "clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", @@ -15154,12 +15305,6 @@ "mkdirp-infer-owner": "^2.0.0" } }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true - }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -15416,12 +15561,6 @@ "json-parse-better-errors": "^1.0.1" } }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "dev": true - }, "path-type": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", @@ -16583,6 +16722,36 @@ "array-back": "^3.0.1" } }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + }, + "dependencies": { + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + } + } + }, "flat": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", @@ -16729,6 +16898,12 @@ "node-fetch": "^2.6.1" } }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, "get-pkg-repo": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-4.2.1.tgz", @@ -16776,12 +16951,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, "hosted-git-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", @@ -16948,6 +17117,12 @@ "ini": "^1.3.2" } }, + "gitignore-to-glob": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/gitignore-to-glob/-/gitignore-to-glob-0.3.0.tgz", + "integrity": "sha512-mk74BdnK7lIwDHnotHddx1wsjMOFIThpLY3cPNniJ/2fA/tlLzHnFxIdR+4sLOu5KGgQJdij4kjJ2RoUNnCNMA==", + "dev": true + }, "glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", @@ -18369,6 +18544,63 @@ } } }, + "license-check-and-add": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/license-check-and-add/-/license-check-and-add-4.0.5.tgz", + "integrity": "sha512-FySnMi3Kf/vO5jka8tcbVF1FhDFb8PWsQ8pg5Y7U/zkQgta+fIrJGcGHO58WFjfKlgvhneG1uQ00Fpxzhau3QA==", + "dev": true, + "requires": { + "fs-extra": "^8.1.0", + "gitignore-to-glob": "^0.3.0", + "globby": "^10.0.1", + "ignore": "^5.1.2", + "yargs": "^13.3.0" + }, + "dependencies": { + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + } + } + }, "lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", @@ -19281,12 +19513,6 @@ "set-blocking": "^2.0.0" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true - }, "nx": { "version": "15.0.1", "resolved": "https://registry.npmjs.org/nx/-/nx-15.0.1.tgz", @@ -19464,12 +19690,6 @@ "universalify": "^2.0.0" } }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", @@ -19746,23 +19966,6 @@ "log-symbols": "^2.2.0", "strip-ansi": "^5.2.0", "wcwidth": "^1.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } } }, "os-tmpdir": { @@ -20019,6 +20222,12 @@ "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", "dev": true }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -20428,6 +20637,12 @@ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, "resolve": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", @@ -20762,40 +20977,43 @@ } }, "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" }, "dependencies": { + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true } } }, "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "^4.1.0" }, "dependencies": { "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", "dev": true } } @@ -21171,6 +21389,12 @@ "defaults": "^1.0.3" } }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, "wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", @@ -21210,6 +21434,17 @@ } } }, + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + } + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -21341,6 +21576,12 @@ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -21353,6 +21594,36 @@ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true }, + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + }, + "dependencies": { + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, "yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", diff --git a/package.json b/package.json index 6b2e68be..0bd01206 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "js-green-licenses": "^3.0.1", "klaw-sync": "^6.0.0", "lerna": "^6.0.3", + "license-check-and-add": "^4.0.5", "lodash": "^4.17.21", "mock-fs": "^5.2.0", "prettier": "^2.7.1", @@ -28,8 +29,10 @@ "scripts": { "coverage": "node_modules/.bin/hereby coverage", "default": "node_modules/.bin/hereby", + "dependency-licenses": "node_modules/.bin/hereby dependency-licenses", "format": "node_modules/.bin/hereby format", "license-check": "node_modules/.bin/hereby license-check", + "license-headers": "node_modules/.bin/hereby license-headers", "lint": "node_modules/.bin/hereby lint", "test": "node_modules/.bin/hereby test" } diff --git a/packages/jsdoc-cli/index.js b/packages/jsdoc-cli/index.js index 7fd3945d..47c81734 100644 --- a/packages/jsdoc-cli/index.js +++ b/packages/jsdoc-cli/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Engine = require('./lib/engine'); module.exports = Engine; diff --git a/packages/jsdoc-cli/lib/engine.js b/packages/jsdoc-cli/lib/engine.js index 052cf8be..66a6e765 100644 --- a/packages/jsdoc-cli/lib/engine.js +++ b/packages/jsdoc-cli/lib/engine.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const { EventBus } = require('@jsdoc/util'); const flags = require('./flags'); diff --git a/packages/jsdoc-cli/lib/flags.js b/packages/jsdoc-cli/lib/flags.js index d38b1b66..b3a3a20c 100644 --- a/packages/jsdoc-cli/lib/flags.js +++ b/packages/jsdoc-cli/lib/flags.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { cast } = require('@jsdoc/util'); const querystring = require('querystring'); diff --git a/packages/jsdoc-cli/lib/help.js b/packages/jsdoc-cli/lib/help.js index 83e22d29..16bed25d 100644 --- a/packages/jsdoc-cli/lib/help.js +++ b/packages/jsdoc-cli/lib/help.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const flags = require('./flags'); function padLeft(str, length) { diff --git a/packages/jsdoc-cli/lib/logger.js b/packages/jsdoc-cli/lib/logger.js index a1c5fbdb..1178dc99 100644 --- a/packages/jsdoc-cli/lib/logger.js +++ b/packages/jsdoc-cli/lib/logger.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const { default: ow } = require('ow'); diff --git a/packages/jsdoc-cli/test/specs/index.js b/packages/jsdoc-cli/test/specs/index.js index ebcab13e..428f625d 100644 --- a/packages/jsdoc-cli/test/specs/index.js +++ b/packages/jsdoc-cli/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Engine = require('../../index'); describe('@jsdoc/cli', () => { diff --git a/packages/jsdoc-cli/test/specs/lib/engine.js b/packages/jsdoc-cli/test/specs/lib/engine.js index 91b13a37..805dea79 100644 --- a/packages/jsdoc-cli/test/specs/lib/engine.js +++ b/packages/jsdoc-cli/test/specs/lib/engine.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const RealEngine = require('../../../lib/engine'); const flags = require('../../../lib/flags'); const { LEVELS } = require('../../../lib/logger'); diff --git a/packages/jsdoc-cli/test/specs/lib/flags.js b/packages/jsdoc-cli/test/specs/lib/flags.js index 03405aa2..8f5413b7 100644 --- a/packages/jsdoc-cli/test/specs/lib/flags.js +++ b/packages/jsdoc-cli/test/specs/lib/flags.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const flags = require('../../../lib/flags'); const { default: ow } = require('ow'); diff --git a/packages/jsdoc-cli/test/specs/lib/help.js b/packages/jsdoc-cli/test/specs/lib/help.js index 37370f8b..c99899a1 100644 --- a/packages/jsdoc-cli/test/specs/lib/help.js +++ b/packages/jsdoc-cli/test/specs/lib/help.js @@ -1 +1,16 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // `@jsdoc/cli/lib/help` is tested indirectly by the tests for `@jsdoc/cli/lib/engine`. diff --git a/packages/jsdoc-cli/test/specs/lib/logger.js b/packages/jsdoc-cli/test/specs/lib/logger.js index 2c6ce4db..a7cc972e 100644 --- a/packages/jsdoc-cli/test/specs/lib/logger.js +++ b/packages/jsdoc-cli/test/specs/lib/logger.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { EventBus } = require('@jsdoc/util'); const { LEVELS, Logger } = require('../../../lib/logger'); diff --git a/packages/jsdoc-core/index.js b/packages/jsdoc-core/index.js index 2d61e454..ff415fbe 100644 --- a/packages/jsdoc-core/index.js +++ b/packages/jsdoc-core/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Core functionality for JSDoc. * diff --git a/packages/jsdoc-core/lib/config.js b/packages/jsdoc-core/lib/config.js index 2a727f91..2d93d825 100644 --- a/packages/jsdoc-core/lib/config.js +++ b/packages/jsdoc-core/lib/config.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Manages configuration settings for JSDoc. * diff --git a/packages/jsdoc-core/lib/dependencies.js b/packages/jsdoc-core/lib/dependencies.js index 1ceb1438..7e4e8669 100644 --- a/packages/jsdoc-core/lib/dependencies.js +++ b/packages/jsdoc-core/lib/dependencies.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const Bottle = require('bottlejs'); diff --git a/packages/jsdoc-core/lib/env.js b/packages/jsdoc-core/lib/env.js index 88e2973a..5fa21a59 100644 --- a/packages/jsdoc-core/lib/env.js +++ b/packages/jsdoc-core/lib/env.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Data about the environment in which JSDoc is running, including the configuration settings that * were used to run JSDoc. diff --git a/packages/jsdoc-core/lib/name.js b/packages/jsdoc-core/lib/name.js index 5f6bc66f..b40f94dc 100644 --- a/packages/jsdoc-core/lib/name.js +++ b/packages/jsdoc-core/lib/name.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Methods for manipulating symbol names in JSDoc. * diff --git a/packages/jsdoc-core/test/specs/index.js b/packages/jsdoc-core/test/specs/index.js index 57930372..e01449b8 100644 --- a/packages/jsdoc-core/test/specs/index.js +++ b/packages/jsdoc-core/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const core = require('../../index'); describe('@jsdoc/core', () => { diff --git a/packages/jsdoc-core/test/specs/lib/config.js b/packages/jsdoc-core/test/specs/lib/config.js index 36a28c58..091c5964 100644 --- a/packages/jsdoc-core/test/specs/lib/config.js +++ b/packages/jsdoc-core/test/specs/lib/config.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const mockFs = require('mock-fs'); const config = require('../../../lib/config'); diff --git a/packages/jsdoc-core/test/specs/lib/dependencies.js b/packages/jsdoc-core/test/specs/lib/dependencies.js index 43daec08..e8d3f6b2 100644 --- a/packages/jsdoc-core/test/specs/lib/dependencies.js +++ b/packages/jsdoc-core/test/specs/lib/dependencies.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Dependencies = require('../../../lib/dependencies'); describe('@jsdoc/core/lib/dependencies', () => { diff --git a/packages/jsdoc-core/test/specs/lib/env.js b/packages/jsdoc-core/test/specs/lib/env.js index 3b842650..94983e73 100644 --- a/packages/jsdoc-core/test/specs/lib/env.js +++ b/packages/jsdoc-core/test/specs/lib/env.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/core.env', () => { const { env } = require('../../../index'); diff --git a/packages/jsdoc-core/test/specs/lib/name.js b/packages/jsdoc-core/test/specs/lib/name.js index 7c9f5878..cc81b93f 100644 --- a/packages/jsdoc-core/test/specs/lib/name.js +++ b/packages/jsdoc-core/test/specs/lib/name.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/core.name', () => { const { name } = require('../../../index'); diff --git a/packages/jsdoc-eslint-config/index.js b/packages/jsdoc-eslint-config/index.js index 7136b789..0cad6550 100644 --- a/packages/jsdoc-eslint-config/index.js +++ b/packages/jsdoc-eslint-config/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ module.exports = { env: { es6: true, diff --git a/packages/jsdoc-parse/index.js b/packages/jsdoc-parse/index.js index 0b339838..9cca67af 100644 --- a/packages/jsdoc-parse/index.js +++ b/packages/jsdoc-parse/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { AstBuilder } = require('./lib/ast-builder'); const astNode = require('./lib/ast-node'); const { Syntax } = require('./lib/syntax'); diff --git a/packages/jsdoc-parse/lib/ast-builder.js b/packages/jsdoc-parse/lib/ast-builder.js index 1f4d341d..035b4e69 100644 --- a/packages/jsdoc-parse/lib/ast-builder.js +++ b/packages/jsdoc-parse/lib/ast-builder.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const babelParser = require('@babel/parser'); const { log } = require('@jsdoc/util'); diff --git a/packages/jsdoc-parse/lib/ast-node.js b/packages/jsdoc-parse/lib/ast-node.js index 779688b8..edb74d2e 100644 --- a/packages/jsdoc-parse/lib/ast-node.js +++ b/packages/jsdoc-parse/lib/ast-node.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // TODO: docs /** @module @jsdoc/parse.astNode */ const _ = require('lodash'); diff --git a/packages/jsdoc-parse/lib/syntax.js b/packages/jsdoc-parse/lib/syntax.js index 36f5b723..a26f9e29 100644 --- a/packages/jsdoc-parse/lib/syntax.js +++ b/packages/jsdoc-parse/lib/syntax.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // TODO: docs exports.Syntax = { ArrayExpression: 'ArrayExpression', diff --git a/packages/jsdoc-parse/test/specs/index.js b/packages/jsdoc-parse/test/specs/index.js index 395d3120..6e0e70f1 100644 --- a/packages/jsdoc-parse/test/specs/index.js +++ b/packages/jsdoc-parse/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const parse = require('../../index'); describe('@jsdoc/parse', () => { diff --git a/packages/jsdoc-parse/test/specs/lib/ast-builder.js b/packages/jsdoc-parse/test/specs/lib/ast-builder.js index af5a6fa5..efb36e78 100644 --- a/packages/jsdoc-parse/test/specs/lib/ast-builder.js +++ b/packages/jsdoc-parse/test/specs/lib/ast-builder.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('@jsdoc/parse/lib/ast-builder', () => { const astBuilder = require('../../../lib/ast-builder'); diff --git a/packages/jsdoc-parse/test/specs/lib/ast-node.js b/packages/jsdoc-parse/test/specs/lib/ast-node.js index b4fca86e..44017520 100644 --- a/packages/jsdoc-parse/test/specs/lib/ast-node.js +++ b/packages/jsdoc-parse/test/specs/lib/ast-node.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/parse/lib/ast-node', () => { const astNode = require('../../../lib/ast-node'); const babelParser = require('@babel/parser'); diff --git a/packages/jsdoc-parse/test/specs/lib/syntax.js b/packages/jsdoc-parse/test/specs/lib/syntax.js index caa55dc7..bdccb6c9 100644 --- a/packages/jsdoc-parse/test/specs/lib/syntax.js +++ b/packages/jsdoc-parse/test/specs/lib/syntax.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/parse.Syntax', () => { const { Syntax } = require('../../../index'); diff --git a/packages/jsdoc-prettier-config/index.js b/packages/jsdoc-prettier-config/index.js index 2708d326..49e7519a 100644 --- a/packages/jsdoc-prettier-config/index.js +++ b/packages/jsdoc-prettier-config/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2021 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // https://prettier.io/docs/en/options.html module.exports = { printWidth: 100, diff --git a/packages/jsdoc-salty/index.js b/packages/jsdoc-salty/index.js index 9343ae38..d32c4cab 100644 --- a/packages/jsdoc-salty/index.js +++ b/packages/jsdoc-salty/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2022 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Salty = require('./lib/salty'); module.exports = { diff --git a/packages/jsdoc-salty/lib/salty.js b/packages/jsdoc-salty/lib/salty.js index 0b47e32d..438a6766 100644 --- a/packages/jsdoc-salty/lib/salty.js +++ b/packages/jsdoc-salty/lib/salty.js @@ -1,3 +1,18 @@ +/* + Copyright 2022 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); // Install shim for Object.hasOwn() if necessary. diff --git a/packages/jsdoc-salty/test/specs/index.js b/packages/jsdoc-salty/test/specs/index.js index 7f46ad65..dd15b9a8 100644 --- a/packages/jsdoc-salty/test/specs/index.js +++ b/packages/jsdoc-salty/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2022 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const salty = require('../../index'); describe('@jsdoc/salty', () => { diff --git a/packages/jsdoc-salty/test/specs/lib/salty.js b/packages/jsdoc-salty/test/specs/lib/salty.js index 58932b72..c90f7f0f 100644 --- a/packages/jsdoc-salty/test/specs/lib/salty.js +++ b/packages/jsdoc-salty/test/specs/lib/salty.js @@ -1,3 +1,18 @@ +/* + Copyright 2022 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/salty/lib/salty', () => { const _ = require('lodash'); const Salty = require('../../../lib/salty'); diff --git a/packages/jsdoc-tag/index.js b/packages/jsdoc-tag/index.js index b5256b7a..2bb31ec7 100644 --- a/packages/jsdoc-tag/index.js +++ b/packages/jsdoc-tag/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const inline = require('./lib/inline'); const type = require('./lib/type'); diff --git a/packages/jsdoc-tag/lib/inline.js b/packages/jsdoc-tag/lib/inline.js index 7fe1e637..f7900b31 100644 --- a/packages/jsdoc-tag/lib/inline.js +++ b/packages/jsdoc-tag/lib/inline.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module @jsdoc/tag/lib/inline * @alias @jsdoc/tag.inline diff --git a/packages/jsdoc-tag/lib/type.js b/packages/jsdoc-tag/lib/type.js index bd4ea75f..6fb0b0fe 100644 --- a/packages/jsdoc-tag/lib/type.js +++ b/packages/jsdoc-tag/lib/type.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module @jsdoc/tag/lib/type * @alias @jsdoc/tag.type diff --git a/packages/jsdoc-tag/test/specs/index.js b/packages/jsdoc-tag/test/specs/index.js index 91759634..5b3d5ce8 100644 --- a/packages/jsdoc-tag/test/specs/index.js +++ b/packages/jsdoc-tag/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const tag = require('../../index'); describe('@jsdoc/tag', () => { diff --git a/packages/jsdoc-tag/test/specs/lib/inline.js b/packages/jsdoc-tag/test/specs/lib/inline.js index 667a6cfc..c4953356 100644 --- a/packages/jsdoc-tag/test/specs/lib/inline.js +++ b/packages/jsdoc-tag/test/specs/lib/inline.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/tag/lib/inline', () => { const inline = require('../../../lib/inline'); diff --git a/packages/jsdoc-tag/test/specs/lib/type.js b/packages/jsdoc-tag/test/specs/lib/type.js index 6728f624..902d92cf 100644 --- a/packages/jsdoc-tag/test/specs/lib/type.js +++ b/packages/jsdoc-tag/test/specs/lib/type.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ function buildText(type, name, desc) { let text = ''; diff --git a/packages/jsdoc-task-runner/index.js b/packages/jsdoc-task-runner/index.js index 437bfd6a..6ed5fe86 100644 --- a/packages/jsdoc-task-runner/index.js +++ b/packages/jsdoc-task-runner/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Task = require('./lib/task'); const TaskRunner = require('./lib/task-runner'); diff --git a/packages/jsdoc-task-runner/lib/task-runner.js b/packages/jsdoc-task-runner/lib/task-runner.js index 979c5892..cd89f966 100644 --- a/packages/jsdoc-task-runner/lib/task-runner.js +++ b/packages/jsdoc-task-runner/lib/task-runner.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const { DepGraph } = require('dependency-graph'); const Emittery = require('emittery'); diff --git a/packages/jsdoc-task-runner/lib/task.js b/packages/jsdoc-task-runner/lib/task.js index e68ecd31..3f08e939 100644 --- a/packages/jsdoc-task-runner/lib/task.js +++ b/packages/jsdoc-task-runner/lib/task.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Emittery = require('emittery'); const { default: ow } = require('ow'); diff --git a/packages/jsdoc-task-runner/lib/validators.js b/packages/jsdoc-task-runner/lib/validators.js index 3c2e232c..55129816 100644 --- a/packages/jsdoc-task-runner/lib/validators.js +++ b/packages/jsdoc-task-runner/lib/validators.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { default: ow } = require('ow'); const Task = require('./task'); diff --git a/packages/jsdoc-task-runner/test/specs/index.js b/packages/jsdoc-task-runner/test/specs/index.js index f096f228..83c30362 100644 --- a/packages/jsdoc-task-runner/test/specs/index.js +++ b/packages/jsdoc-task-runner/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const taskRunner = require('../../index'); describe('@jsdoc/task-runner', () => { diff --git a/packages/jsdoc-task-runner/test/specs/lib/task-runner.js b/packages/jsdoc-task-runner/test/specs/lib/task-runner.js index 54bb478f..3ee48e2c 100644 --- a/packages/jsdoc-task-runner/test/specs/lib/task-runner.js +++ b/packages/jsdoc-task-runner/test/specs/lib/task-runner.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Emittery = require('emittery'); const Task = require('../../../lib/task'); const TaskRunner = require('../../../lib/task-runner'); diff --git a/packages/jsdoc-task-runner/test/specs/lib/task.js b/packages/jsdoc-task-runner/test/specs/lib/task.js index be9a8a1a..a34857bc 100644 --- a/packages/jsdoc-task-runner/test/specs/lib/task.js +++ b/packages/jsdoc-task-runner/test/specs/lib/task.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const Emittery = require('emittery'); const Task = require('../../../lib/task'); diff --git a/packages/jsdoc-test-matchers/index.js b/packages/jsdoc-test-matchers/index.js index 662ef0e4..2ead74ab 100644 --- a/packages/jsdoc-test-matchers/index.js +++ b/packages/jsdoc-test-matchers/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const { addMatchers } = require('add-matchers'); const { format } = require('prettier'); diff --git a/packages/jsdoc-util/index.js b/packages/jsdoc-util/index.js index a5acaef1..1a9e525b 100644 --- a/packages/jsdoc-util/index.js +++ b/packages/jsdoc-util/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Utility modules for JSDoc. * diff --git a/packages/jsdoc-util/lib/bus.js b/packages/jsdoc-util/lib/bus.js index 43291d3f..68f55da8 100644 --- a/packages/jsdoc-util/lib/bus.js +++ b/packages/jsdoc-util/lib/bus.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const EventEmitter = require('events').EventEmitter; const { default: ow } = require('ow'); diff --git a/packages/jsdoc-util/lib/cast.js b/packages/jsdoc-util/lib/cast.js index 75cc2e38..4dde83e0 100644 --- a/packages/jsdoc-util/lib/cast.js +++ b/packages/jsdoc-util/lib/cast.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Module to convert values between various JavaScript types. * diff --git a/packages/jsdoc-util/lib/fs.js b/packages/jsdoc-util/lib/fs.js index a1052126..a8a46acd 100644 --- a/packages/jsdoc-util/lib/fs.js +++ b/packages/jsdoc-util/lib/fs.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @alias @jsdoc/util.fs */ diff --git a/packages/jsdoc-util/lib/log.js b/packages/jsdoc-util/lib/log.js index ba81b45a..589b8d77 100644 --- a/packages/jsdoc-util/lib/log.js +++ b/packages/jsdoc-util/lib/log.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const EventBus = require('./bus'); const bus = new EventBus('jsdoc'); diff --git a/packages/jsdoc-util/test/specs/index.js b/packages/jsdoc-util/test/specs/index.js index fae8bf40..6a24c091 100644 --- a/packages/jsdoc-util/test/specs/index.js +++ b/packages/jsdoc-util/test/specs/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const util = require('../../index'); describe('@jsdoc/util', () => { diff --git a/packages/jsdoc-util/test/specs/lib/bus.js b/packages/jsdoc-util/test/specs/lib/bus.js index 5736e8fb..4497bc47 100644 --- a/packages/jsdoc-util/test/specs/lib/bus.js +++ b/packages/jsdoc-util/test/specs/lib/bus.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/util/lib/bus', () => { const EventBus = require('../../../lib/bus'); const EventEmitter = require('events').EventEmitter; diff --git a/packages/jsdoc-util/test/specs/lib/cast.js b/packages/jsdoc-util/test/specs/lib/cast.js index 83df89c1..25c9a8e8 100644 --- a/packages/jsdoc-util/test/specs/lib/cast.js +++ b/packages/jsdoc-util/test/specs/lib/cast.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/util/lib/cast', () => { const cast = require('../../../lib/cast'); diff --git a/packages/jsdoc-util/test/specs/lib/fs.js b/packages/jsdoc-util/test/specs/lib/fs.js index eb919b2a..2a69383e 100644 --- a/packages/jsdoc-util/test/specs/lib/fs.js +++ b/packages/jsdoc-util/test/specs/lib/fs.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/util/lib/fs', () => { const mockFs = require('mock-fs'); const fsUtil = require('../../../lib/fs'); diff --git a/packages/jsdoc-util/test/specs/lib/log.js b/packages/jsdoc-util/test/specs/lib/log.js index 9052d6e8..ada2d431 100644 --- a/packages/jsdoc-util/test/specs/lib/log.js +++ b/packages/jsdoc-util/test/specs/lib/log.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@jsdoc/util/lib/log', () => { const EventBus = require('../../../lib/bus'); const log = require('../../../lib/log'); diff --git a/packages/jsdoc/cli.js b/packages/jsdoc/cli.js index f32c8189..97716b31 100644 --- a/packages/jsdoc/cli.js +++ b/packages/jsdoc/cli.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* eslint-disable indent, no-process-exit */ const _ = require('lodash'); const { config, Dependencies } = require('@jsdoc/core'); diff --git a/packages/jsdoc/jsdoc.js b/packages/jsdoc/jsdoc.js index 8e45a83f..01e15334 100755 --- a/packages/jsdoc/jsdoc.js +++ b/packages/jsdoc/jsdoc.js @@ -1,4 +1,19 @@ #!/usr/bin/env node +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { env } = require('@jsdoc/core'); diff --git a/packages/jsdoc/lib/jsdoc/augment.js b/packages/jsdoc/lib/jsdoc/augment.js index c482f2bc..e8dfb1a3 100644 --- a/packages/jsdoc/lib/jsdoc/augment.js +++ b/packages/jsdoc/lib/jsdoc/augment.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Provides methods for augmenting the parse results based on their content. * @module jsdoc/augment diff --git a/packages/jsdoc/lib/jsdoc/borrow.js b/packages/jsdoc/lib/jsdoc/borrow.js index a2943356..8d755aa6 100644 --- a/packages/jsdoc/lib/jsdoc/borrow.js +++ b/packages/jsdoc/lib/jsdoc/borrow.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * A collection of functions relating to resolving @borrows tags in JSDoc symbols. * @module jsdoc/borrow diff --git a/packages/jsdoc/lib/jsdoc/doclet.js b/packages/jsdoc/lib/jsdoc/doclet.js index 01b4e853..ca0bc4fb 100644 --- a/packages/jsdoc/lib/jsdoc/doclet.js +++ b/packages/jsdoc/lib/jsdoc/doclet.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/doclet */ diff --git a/packages/jsdoc/lib/jsdoc/package.js b/packages/jsdoc/lib/jsdoc/package.js index 64f9770c..aa82d574 100644 --- a/packages/jsdoc/lib/jsdoc/package.js +++ b/packages/jsdoc/lib/jsdoc/package.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { log } = require('@jsdoc/util'); const stripBom = require('strip-bom'); diff --git a/packages/jsdoc/lib/jsdoc/plugins.js b/packages/jsdoc/lib/jsdoc/plugins.js index 52d80b1c..5e940338 100644 --- a/packages/jsdoc/lib/jsdoc/plugins.js +++ b/packages/jsdoc/lib/jsdoc/plugins.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Utility functions to support the JSDoc plugin framework. * @module jsdoc/plugins diff --git a/packages/jsdoc/lib/jsdoc/schema.js b/packages/jsdoc/lib/jsdoc/schema.js index 4cdc9846..cb760de4 100644 --- a/packages/jsdoc/lib/jsdoc/schema.js +++ b/packages/jsdoc/lib/jsdoc/schema.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Schema for validating JSDoc doclets. * @module jsdoc/schema diff --git a/packages/jsdoc/lib/jsdoc/src/filter.js b/packages/jsdoc/lib/jsdoc/src/filter.js index f071eb70..d8e015b2 100644 --- a/packages/jsdoc/lib/jsdoc/src/filter.js +++ b/packages/jsdoc/lib/jsdoc/src/filter.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/src/filter */ diff --git a/packages/jsdoc/lib/jsdoc/src/handlers.js b/packages/jsdoc/lib/jsdoc/src/handlers.js index 4c890b2f..6acc6fab 100644 --- a/packages/jsdoc/lib/jsdoc/src/handlers.js +++ b/packages/jsdoc/lib/jsdoc/src/handlers.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/src/handlers */ diff --git a/packages/jsdoc/lib/jsdoc/src/parser.js b/packages/jsdoc/lib/jsdoc/src/parser.js index cb6ff998..0da0854a 100644 --- a/packages/jsdoc/lib/jsdoc/src/parser.js +++ b/packages/jsdoc/lib/jsdoc/src/parser.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/src/parser */ diff --git a/packages/jsdoc/lib/jsdoc/src/scanner.js b/packages/jsdoc/lib/jsdoc/src/scanner.js index 81aa748f..589f4aac 100644 --- a/packages/jsdoc/lib/jsdoc/src/scanner.js +++ b/packages/jsdoc/lib/jsdoc/src/scanner.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/src/scanner */ diff --git a/packages/jsdoc/lib/jsdoc/src/visitor.js b/packages/jsdoc/lib/jsdoc/src/visitor.js index 6bc65a31..1717bb88 100644 --- a/packages/jsdoc/lib/jsdoc/src/visitor.js +++ b/packages/jsdoc/lib/jsdoc/src/visitor.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/src/visitor */ diff --git a/packages/jsdoc/lib/jsdoc/src/walker.js b/packages/jsdoc/lib/jsdoc/src/walker.js index 37283ddd..8de4b5da 100644 --- a/packages/jsdoc/lib/jsdoc/src/walker.js +++ b/packages/jsdoc/lib/jsdoc/src/walker.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Traversal utilities for ASTs that are compatible with the ESTree API. * diff --git a/packages/jsdoc/lib/jsdoc/tag.js b/packages/jsdoc/lib/jsdoc/tag.js index 7ca12d5c..62302a53 100644 --- a/packages/jsdoc/lib/jsdoc/tag.js +++ b/packages/jsdoc/lib/jsdoc/tag.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Functionality related to JSDoc tags. * @module jsdoc/tag diff --git a/packages/jsdoc/lib/jsdoc/tag/dictionary.js b/packages/jsdoc/lib/jsdoc/tag/dictionary.js index e7ffc873..312cfe36 100644 --- a/packages/jsdoc/lib/jsdoc/tag/dictionary.js +++ b/packages/jsdoc/lib/jsdoc/tag/dictionary.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** @module jsdoc/tag/dictionary */ const definitions = require('jsdoc/tag/dictionary/definitions'); const { log } = require('@jsdoc/util'); diff --git a/packages/jsdoc/lib/jsdoc/tag/dictionary/definitions.js b/packages/jsdoc/lib/jsdoc/tag/dictionary/definitions.js index 2351c26c..65f70b03 100644 --- a/packages/jsdoc/lib/jsdoc/tag/dictionary/definitions.js +++ b/packages/jsdoc/lib/jsdoc/tag/dictionary/definitions.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Define tags that are known in JSDoc. * @module jsdoc/tag/dictionary/definitions diff --git a/packages/jsdoc/lib/jsdoc/tag/validator.js b/packages/jsdoc/lib/jsdoc/tag/validator.js index 0bdd21d5..920c54f1 100644 --- a/packages/jsdoc/lib/jsdoc/tag/validator.js +++ b/packages/jsdoc/lib/jsdoc/tag/validator.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/tag/validator * @requires jsdoc/tag/dictionary diff --git a/packages/jsdoc/lib/jsdoc/template.js b/packages/jsdoc/lib/jsdoc/template.js index df0fb592..aebd35d7 100644 --- a/packages/jsdoc/lib/jsdoc/template.js +++ b/packages/jsdoc/lib/jsdoc/template.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Wrapper for Lodash's template utility to allow loading templates from files. * @module jsdoc/template diff --git a/packages/jsdoc/lib/jsdoc/util/templateHelper.js b/packages/jsdoc/lib/jsdoc/util/templateHelper.js index 5c244e1f..6b1a96a7 100644 --- a/packages/jsdoc/lib/jsdoc/util/templateHelper.js +++ b/packages/jsdoc/lib/jsdoc/util/templateHelper.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module jsdoc/util/templateHelper */ diff --git a/packages/jsdoc/plugins/commentConvert.js b/packages/jsdoc/plugins/commentConvert.js index d42d8661..09c02a30 100644 --- a/packages/jsdoc/plugins/commentConvert.js +++ b/packages/jsdoc/plugins/commentConvert.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* eslint-disable spaced-comment */ /** * Demonstrate how to modify the source code before the parser sees it. diff --git a/packages/jsdoc/plugins/commentsOnly.js b/packages/jsdoc/plugins/commentsOnly.js index 8875800f..79bb3be1 100644 --- a/packages/jsdoc/plugins/commentsOnly.js +++ b/packages/jsdoc/plugins/commentsOnly.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Remove everything in a file except JSDoc-style comments. By enabling this plugin, you can * document source files that are not valid JavaScript (including source files for other languages). diff --git a/packages/jsdoc/plugins/escapeHtml.js b/packages/jsdoc/plugins/escapeHtml.js index fa9fa151..5d37a0ca 100644 --- a/packages/jsdoc/plugins/escapeHtml.js +++ b/packages/jsdoc/plugins/escapeHtml.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Escape HTML tags in descriptions. * diff --git a/packages/jsdoc/plugins/eventDumper.js b/packages/jsdoc/plugins/eventDumper.js index 34fe0648..c46e8b33 100644 --- a/packages/jsdoc/plugins/eventDumper.js +++ b/packages/jsdoc/plugins/eventDumper.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Dump information about parser events to the console. * diff --git a/packages/jsdoc/plugins/overloadHelper.js b/packages/jsdoc/plugins/overloadHelper.js index f6d359ff..ff320a4c 100644 --- a/packages/jsdoc/plugins/overloadHelper.js +++ b/packages/jsdoc/plugins/overloadHelper.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * The Overload Helper plugin automatically adds a signature-like string to the longnames of * overloaded functions and methods. In JSDoc, this string is known as a _variation_. (The longnames diff --git a/packages/jsdoc/plugins/partial.js b/packages/jsdoc/plugins/partial.js index c824d846..88321643 100644 --- a/packages/jsdoc/plugins/partial.js +++ b/packages/jsdoc/plugins/partial.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Adds support for reusable partial jsdoc files. * diff --git a/packages/jsdoc/plugins/railsTemplate.js b/packages/jsdoc/plugins/railsTemplate.js index 773d8f4b..8042bcb6 100644 --- a/packages/jsdoc/plugins/railsTemplate.js +++ b/packages/jsdoc/plugins/railsTemplate.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Strips the rails template tags from a js.erb file * diff --git a/packages/jsdoc/plugins/shout.js b/packages/jsdoc/plugins/shout.js index 6426f5ae..18f690bc 100644 --- a/packages/jsdoc/plugins/shout.js +++ b/packages/jsdoc/plugins/shout.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * This is just an example. * diff --git a/packages/jsdoc/plugins/sourcetag.js b/packages/jsdoc/plugins/sourcetag.js index 1de1b5ac..715a49c8 100644 --- a/packages/jsdoc/plugins/sourcetag.js +++ b/packages/jsdoc/plugins/sourcetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * @module plugins/sourcetag */ diff --git a/packages/jsdoc/plugins/summarize.js b/packages/jsdoc/plugins/summarize.js index 23cc4799..2af4c4a9 100644 --- a/packages/jsdoc/plugins/summarize.js +++ b/packages/jsdoc/plugins/summarize.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * This plugin creates a summary tag, if missing, from the first sentence in the description. * diff --git a/packages/jsdoc/plugins/test/specs/commentConvert.js b/packages/jsdoc/plugins/test/specs/commentConvert.js index 8528ea39..0f3ce063 100644 --- a/packages/jsdoc/plugins/test/specs/commentConvert.js +++ b/packages/jsdoc/plugins/test/specs/commentConvert.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('commentConvert plugin', () => { diff --git a/packages/jsdoc/plugins/test/specs/escapeHtml.js b/packages/jsdoc/plugins/test/specs/escapeHtml.js index ad8903d5..7d3b80aa 100644 --- a/packages/jsdoc/plugins/test/specs/escapeHtml.js +++ b/packages/jsdoc/plugins/test/specs/escapeHtml.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('escapeHtml plugin', () => { const path = require('path'); diff --git a/packages/jsdoc/plugins/test/specs/overloadHelper.js b/packages/jsdoc/plugins/test/specs/overloadHelper.js index ee9f5c9f..9d198657 100644 --- a/packages/jsdoc/plugins/test/specs/overloadHelper.js +++ b/packages/jsdoc/plugins/test/specs/overloadHelper.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('plugins/overloadHelper', () => { const path = require('path'); diff --git a/packages/jsdoc/plugins/test/specs/railsTemplate.js b/packages/jsdoc/plugins/test/specs/railsTemplate.js index fbbb3d1a..704b6378 100644 --- a/packages/jsdoc/plugins/test/specs/railsTemplate.js +++ b/packages/jsdoc/plugins/test/specs/railsTemplate.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('railsTemplate plugin', () => { const path = require('path'); diff --git a/packages/jsdoc/plugins/test/specs/shout.js b/packages/jsdoc/plugins/test/specs/shout.js index aa216665..25bf7957 100644 --- a/packages/jsdoc/plugins/test/specs/shout.js +++ b/packages/jsdoc/plugins/test/specs/shout.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('shout plugin', () => { const path = require('path'); diff --git a/packages/jsdoc/plugins/test/specs/sourcetag.js b/packages/jsdoc/plugins/test/specs/sourcetag.js index 4c910b76..64b357b1 100644 --- a/packages/jsdoc/plugins/test/specs/sourcetag.js +++ b/packages/jsdoc/plugins/test/specs/sourcetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('sourcetag plugin', () => { const path = require('path'); diff --git a/packages/jsdoc/plugins/test/specs/summarize.js b/packages/jsdoc/plugins/test/specs/summarize.js index f39d307d..474b5953 100644 --- a/packages/jsdoc/plugins/test/specs/summarize.js +++ b/packages/jsdoc/plugins/test/specs/summarize.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const summarize = require('../../summarize'); describe('summarize', () => { diff --git a/packages/jsdoc/plugins/test/specs/underscore.js b/packages/jsdoc/plugins/test/specs/underscore.js index c3f6c444..1c9febb3 100644 --- a/packages/jsdoc/plugins/test/specs/underscore.js +++ b/packages/jsdoc/plugins/test/specs/underscore.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global jsdoc */ describe('underscore plugin', () => { const path = require('path'); diff --git a/packages/jsdoc/plugins/underscore.js b/packages/jsdoc/plugins/underscore.js index a89ab558..ffe061ca 100644 --- a/packages/jsdoc/plugins/underscore.js +++ b/packages/jsdoc/plugins/underscore.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /** * Removes all symbols that begin with an underscore from the doc output. If * you're using underscores to denote private variables in modules, this diff --git a/packages/jsdoc/templates/default/publish.js b/packages/jsdoc/templates/default/publish.js index daf19954..dfd146d9 100644 --- a/packages/jsdoc/templates/default/publish.js +++ b/packages/jsdoc/templates/default/publish.js @@ -1,3 +1,18 @@ +/* + Copyright 2010 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const _ = require('lodash'); const commonPathPrefix = require('common-path-prefix'); const fs = require('fs'); diff --git a/packages/jsdoc/templates/default/static/scripts/linenumber.js b/packages/jsdoc/templates/default/static/scripts/linenumber.js index f355ce24..77f8724a 100644 --- a/packages/jsdoc/templates/default/static/scripts/linenumber.js +++ b/packages/jsdoc/templates/default/static/scripts/linenumber.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* global document */ (() => { const source = document.getElementsByClassName('prettyprint source linenums'); diff --git a/packages/jsdoc/templates/default/tmpl/augments.tmpl b/packages/jsdoc/templates/default/tmpl/augments.tmpl index 446d28aa..4ed3ed58 100644 --- a/packages/jsdoc/templates/default/tmpl/augments.tmpl +++ b/packages/jsdoc/templates/default/tmpl/augments.tmpl @@ -1,3 +1,19 @@ + + + + +
diff --git a/packages/jsdoc/templates/default/tmpl/examples.tmpl b/packages/jsdoc/templates/default/tmpl/examples.tmpl index 04d975e9..44ca16b0 100644 --- a/packages/jsdoc/templates/default/tmpl/examples.tmpl +++ b/packages/jsdoc/templates/default/tmpl/examples.tmpl @@ -1,3 +1,19 @@ + + \ No newline at end of file +?> diff --git a/packages/jsdoc/templates/default/tmpl/exceptions.tmpl b/packages/jsdoc/templates/default/tmpl/exceptions.tmpl index 9cef6c7d..7867953e 100644 --- a/packages/jsdoc/templates/default/tmpl/exceptions.tmpl +++ b/packages/jsdoc/templates/default/tmpl/exceptions.tmpl @@ -1,3 +1,19 @@ + + diff --git a/packages/jsdoc/templates/default/tmpl/layout.tmpl b/packages/jsdoc/templates/default/tmpl/layout.tmpl index 4e8226c9..bcfc827f 100644 --- a/packages/jsdoc/templates/default/tmpl/layout.tmpl +++ b/packages/jsdoc/templates/default/tmpl/layout.tmpl @@ -1,3 +1,19 @@ + + diff --git a/packages/jsdoc/templates/default/tmpl/mainpage.tmpl b/packages/jsdoc/templates/default/tmpl/mainpage.tmpl index 91343cc4..f72858e2 100644 --- a/packages/jsdoc/templates/default/tmpl/mainpage.tmpl +++ b/packages/jsdoc/templates/default/tmpl/mainpage.tmpl @@ -1,3 +1,19 @@ + + + + + diff --git a/packages/jsdoc/templates/default/tmpl/params.tmpl b/packages/jsdoc/templates/default/tmpl/params.tmpl index 1fb4049c..164b1483 100644 --- a/packages/jsdoc/templates/default/tmpl/params.tmpl +++ b/packages/jsdoc/templates/default/tmpl/params.tmpl @@ -1,3 +1,19 @@ + + + + - \ No newline at end of file + diff --git a/packages/jsdoc/templates/default/tmpl/source.tmpl b/packages/jsdoc/templates/default/tmpl/source.tmpl index e559b5d1..8427bb77 100644 --- a/packages/jsdoc/templates/default/tmpl/source.tmpl +++ b/packages/jsdoc/templates/default/tmpl/source.tmpl @@ -1,3 +1,19 @@ + + @@ -5,4 +21,4 @@
- \ No newline at end of file + diff --git a/packages/jsdoc/templates/default/tmpl/type.tmpl b/packages/jsdoc/templates/default/tmpl/type.tmpl index ec2c6c0d..5bdec90e 100644 --- a/packages/jsdoc/templates/default/tmpl/type.tmpl +++ b/packages/jsdoc/templates/default/tmpl/type.tmpl @@ -1,7 +1,23 @@ + + | - \ No newline at end of file + diff --git a/packages/jsdoc/templates/silent/publish.js b/packages/jsdoc/templates/silent/publish.js index 087e150b..492fd29b 100644 --- a/packages/jsdoc/templates/silent/publish.js +++ b/packages/jsdoc/templates/silent/publish.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* eslint-disable no-empty-function, no-unused-vars */ /** @param {TAFFY} taffyData See . diff --git a/packages/jsdoc/test/.eslintrc.js b/packages/jsdoc/test/.eslintrc.js index df8cf4eb..83971a36 100644 --- a/packages/jsdoc/test/.eslintrc.js +++ b/packages/jsdoc/test/.eslintrc.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ module.exports = { globals: { jsdoc: 'readonly', diff --git a/packages/jsdoc/test/helpers/jsdoc.js b/packages/jsdoc/test/helpers/jsdoc.js index 5da12b8d..04db4dca 100644 --- a/packages/jsdoc/test/helpers/jsdoc.js +++ b/packages/jsdoc/test/helpers/jsdoc.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const { augmentAll } = require('jsdoc/augment'); const { createParser } = require('jsdoc/src/parser'); const { EventBus } = require('@jsdoc/util'); diff --git a/packages/jsdoc/test/index.js b/packages/jsdoc/test/index.js index f71cab28..524bcbd5 100644 --- a/packages/jsdoc/test/index.js +++ b/packages/jsdoc/test/index.js @@ -1,3 +1,18 @@ +/* + Copyright 2019 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const ConsoleReporter = require('jasmine-console-reporter'); const Jasmine = require('jasmine'); diff --git a/packages/jsdoc/test/specs/documentation/alias.js b/packages/jsdoc/test/specs/documentation/alias.js index 57b93ae5..7e0b462a 100644 --- a/packages/jsdoc/test/specs/documentation/alias.js +++ b/packages/jsdoc/test/specs/documentation/alias.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('aliases', () => { describe('standard', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/alias.js'); diff --git a/packages/jsdoc/test/specs/documentation/also.js b/packages/jsdoc/test/specs/documentation/also.js index b4731beb..630f5033 100644 --- a/packages/jsdoc/test/specs/documentation/also.js +++ b/packages/jsdoc/test/specs/documentation/also.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const config = jsdoc.deps.get('config'); describe('multiple doclets per symbol', () => { diff --git a/packages/jsdoc/test/specs/documentation/anonymousclass.js b/packages/jsdoc/test/specs/documentation/anonymousclass.js index 86d82c61..1725ca06 100644 --- a/packages/jsdoc/test/specs/documentation/anonymousclass.js +++ b/packages/jsdoc/test/specs/documentation/anonymousclass.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('anonymous class', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/anonymousclass.js'); const klass = docSet.getByLongname('module:test').filter(({ undocumented }) => !undocumented)[1]; diff --git a/packages/jsdoc/test/specs/documentation/anonymousclassparam.js b/packages/jsdoc/test/specs/documentation/anonymousclassparam.js index 6ecac3bf..0b35f042 100644 --- a/packages/jsdoc/test/specs/documentation/anonymousclassparam.js +++ b/packages/jsdoc/test/specs/documentation/anonymousclassparam.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('anonymous class passed as a parameter', () => { it('should not crash JSDoc', () => { function loadFile() { diff --git a/packages/jsdoc/test/specs/documentation/arrowfunction.js b/packages/jsdoc/test/specs/documentation/arrowfunction.js index 24c6014e..5562a265 100644 --- a/packages/jsdoc/test/specs/documentation/arrowfunction.js +++ b/packages/jsdoc/test/specs/documentation/arrowfunction.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('arrow functions', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/arrowfunction.js'); const increment = docSet.getByLongname('increment')[0]; diff --git a/packages/jsdoc/test/specs/documentation/asyncfunction.js b/packages/jsdoc/test/specs/documentation/asyncfunction.js index 24a515dd..befad420 100644 --- a/packages/jsdoc/test/specs/documentation/asyncfunction.js +++ b/packages/jsdoc/test/specs/documentation/asyncfunction.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('async functions', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/asyncfunction.js'); const add = docSet.getByLongname('add')[0]; diff --git a/packages/jsdoc/test/specs/documentation/callback.js b/packages/jsdoc/test/specs/documentation/callback.js index 128453d3..dfd804aa 100644 --- a/packages/jsdoc/test/specs/documentation/callback.js +++ b/packages/jsdoc/test/specs/documentation/callback.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('callback tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/callbacktag.js'); diff --git a/packages/jsdoc/test/specs/documentation/classproperties.js b/packages/jsdoc/test/specs/documentation/classproperties.js index 02c153db..10805cfe 100644 --- a/packages/jsdoc/test/specs/documentation/classproperties.js +++ b/packages/jsdoc/test/specs/documentation/classproperties.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('class properties', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/classproperties.js'); const b = docSet.getByLongname('A#b')[0]; diff --git a/packages/jsdoc/test/specs/documentation/classwithoutname.js b/packages/jsdoc/test/specs/documentation/classwithoutname.js index 9a69c59a..ba85e338 100644 --- a/packages/jsdoc/test/specs/documentation/classwithoutname.js +++ b/packages/jsdoc/test/specs/documentation/classwithoutname.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('class without a name', () => { const docSet = jsdoc .getDocSetFromFile('test/fixtures/classwithoutname.js') diff --git a/packages/jsdoc/test/specs/documentation/const.js b/packages/jsdoc/test/specs/documentation/const.js index 85a814b6..b3b41512 100644 --- a/packages/jsdoc/test/specs/documentation/const.js +++ b/packages/jsdoc/test/specs/documentation/const.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('const declarations', () => { it('should automatically set the doclet.kind to "constant" for const declarations', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/constanttag.js'); diff --git a/packages/jsdoc/test/specs/documentation/defaultparams.js b/packages/jsdoc/test/specs/documentation/defaultparams.js index 843fd88a..e1c0fd48 100644 --- a/packages/jsdoc/test/specs/documentation/defaultparams.js +++ b/packages/jsdoc/test/specs/documentation/defaultparams.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('default parameters', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/defaultparams.js'); diff --git a/packages/jsdoc/test/specs/documentation/emptycomments.js b/packages/jsdoc/test/specs/documentation/emptycomments.js index 55d57cb3..bfad67fe 100644 --- a/packages/jsdoc/test/specs/documentation/emptycomments.js +++ b/packages/jsdoc/test/specs/documentation/emptycomments.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('empty JSDoc comments', () => { it('should not report an error when a JSDoc comment contains only whitespace', () => { function getDocSet() { diff --git a/packages/jsdoc/test/specs/documentation/exportclass.js b/packages/jsdoc/test/specs/documentation/exportclass.js index 4e3ebe91..c358fa89 100644 --- a/packages/jsdoc/test/specs/documentation/exportclass.js +++ b/packages/jsdoc/test/specs/documentation/exportclass.js @@ -1,3 +1,18 @@ +/* + Copyright 2016 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('export class', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exportclass.js'); const bar = docSet.getByLongname('module:foo.Bar')[0]; diff --git a/packages/jsdoc/test/specs/documentation/exportdefault.js b/packages/jsdoc/test/specs/documentation/exportdefault.js index c4b887e4..59634944 100644 --- a/packages/jsdoc/test/specs/documentation/exportdefault.js +++ b/packages/jsdoc/test/specs/documentation/exportdefault.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('export default', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exportdefault.js'); const member = docSet.getByLongname('module:test')[1]; diff --git a/packages/jsdoc/test/specs/documentation/exportdefaultclass.js b/packages/jsdoc/test/specs/documentation/exportdefaultclass.js index 8ac7e3b3..bb624844 100644 --- a/packages/jsdoc/test/specs/documentation/exportdefaultclass.js +++ b/packages/jsdoc/test/specs/documentation/exportdefaultclass.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('export default class', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exportdefaultclass.js'); const klass = docSet.getByLongname('module:test').filter(({ undocumented }) => !undocumented)[1]; diff --git a/packages/jsdoc/test/specs/documentation/exports.js b/packages/jsdoc/test/specs/documentation/exports.js index 11660b1f..18e191b8 100644 --- a/packages/jsdoc/test/specs/documentation/exports.js +++ b/packages/jsdoc/test/specs/documentation/exports.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe("'exports' symbol in modules", () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exports.js'); const sayHello = docSet.getByLongname('module:hello/world.sayHello')[0]; diff --git a/packages/jsdoc/test/specs/documentation/funcExpression.js b/packages/jsdoc/test/specs/documentation/funcExpression.js index d2df46ba..2037ef82 100644 --- a/packages/jsdoc/test/specs/documentation/funcExpression.js +++ b/packages/jsdoc/test/specs/documentation/funcExpression.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('function expressions', () => { function checkLongnames(docSet, namespace) { const memberName = `${namespace || ''}Foo#member1`; diff --git a/packages/jsdoc/test/specs/documentation/generators.js b/packages/jsdoc/test/specs/documentation/generators.js index 0e8c8aea..79c3dff6 100644 --- a/packages/jsdoc/test/specs/documentation/generators.js +++ b/packages/jsdoc/test/specs/documentation/generators.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('generator functions', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/generators.js'); const startsAt0 = docSet.getByLongname('startsAt0')[0]; diff --git a/packages/jsdoc/test/specs/documentation/getset.js b/packages/jsdoc/test/specs/documentation/getset.js index 01bd8bcb..af8a30d9 100644 --- a/packages/jsdoc/test/specs/documentation/getset.js +++ b/packages/jsdoc/test/specs/documentation/getset.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('When a getter or setter is part of a class', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/getset.js'); diff --git a/packages/jsdoc/test/specs/documentation/inlinecomment.js b/packages/jsdoc/test/specs/documentation/inlinecomment.js index 98b2282c..c35486a7 100644 --- a/packages/jsdoc/test/specs/documentation/inlinecomment.js +++ b/packages/jsdoc/test/specs/documentation/inlinecomment.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('inline comments', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/inlinecomment.js'); const t = docSet.getByLongname('test'); diff --git a/packages/jsdoc/test/specs/documentation/inlineparamcomment.js b/packages/jsdoc/test/specs/documentation/inlineparamcomment.js index ae3c4d7c..93a667c0 100644 --- a/packages/jsdoc/test/specs/documentation/inlineparamcomment.js +++ b/packages/jsdoc/test/specs/documentation/inlineparamcomment.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('inline comments on function parameters', () => { it( 'should not crash when multiple parameters have inline comments that do not contain any' + diff --git a/packages/jsdoc/test/specs/documentation/inner.js b/packages/jsdoc/test/specs/documentation/inner.js index a0fb4ba9..8784525b 100644 --- a/packages/jsdoc/test/specs/documentation/inner.js +++ b/packages/jsdoc/test/specs/documentation/inner.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('when a documented var memeber is inside a named function', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/inner.js'); const found1 = docSet.getByLongname('sendMessage~encoding'); diff --git a/packages/jsdoc/test/specs/documentation/innerscope.js b/packages/jsdoc/test/specs/documentation/innerscope.js index 00a1a2ed..aac88882 100644 --- a/packages/jsdoc/test/specs/documentation/innerscope.js +++ b/packages/jsdoc/test/specs/documentation/innerscope.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('inner scope', () => { describe('Outer~inner.member cases', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/innerscope.js'); diff --git a/packages/jsdoc/test/specs/documentation/instanceproperty.js b/packages/jsdoc/test/specs/documentation/instanceproperty.js index 7c7c65b4..4433025e 100644 --- a/packages/jsdoc/test/specs/documentation/instanceproperty.js +++ b/packages/jsdoc/test/specs/documentation/instanceproperty.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('Properties documented in instance methods', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/instanceproperty.js'); const bar = docSet.getByLongname('Foo#bar')[0]; diff --git a/packages/jsdoc/test/specs/documentation/jsx.js b/packages/jsdoc/test/specs/documentation/jsx.js index d8b25452..309f5c4e 100644 --- a/packages/jsdoc/test/specs/documentation/jsx.js +++ b/packages/jsdoc/test/specs/documentation/jsx.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('JSX support', () => { it('should parse JSX files without errors', () => { function parseJsx() { diff --git a/packages/jsdoc/test/specs/documentation/lends.js b/packages/jsdoc/test/specs/documentation/lends.js index 6e8a8581..ed62d7f3 100644 --- a/packages/jsdoc/test/specs/documentation/lends.js +++ b/packages/jsdoc/test/specs/documentation/lends.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('lends', () => { describe('when a documented member is inside an object literal associated with a @lends tag', () => { function removeUndocumented({ undocumented }) { diff --git a/packages/jsdoc/test/specs/documentation/letkeyword.js b/packages/jsdoc/test/specs/documentation/letkeyword.js index 102cf4fc..481ac24e 100644 --- a/packages/jsdoc/test/specs/documentation/letkeyword.js +++ b/packages/jsdoc/test/specs/documentation/letkeyword.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('let keyword', () => { function getDocSet() { return jsdoc.getDocSetFromFile('test/fixtures/letkeyword.js'); diff --git a/packages/jsdoc/test/specs/documentation/methoddefinition.js b/packages/jsdoc/test/specs/documentation/methoddefinition.js index 63b480c8..b78f1289 100644 --- a/packages/jsdoc/test/specs/documentation/methoddefinition.js +++ b/packages/jsdoc/test/specs/documentation/methoddefinition.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('method definition inside a class declaration', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/methoddefinition.js'); const runMethod = docSet.getByLongname('Test#run')[0]; diff --git a/packages/jsdoc/test/specs/documentation/mixins.js b/packages/jsdoc/test/specs/documentation/mixins.js index 5f1a8103..82f31919 100644 --- a/packages/jsdoc/test/specs/documentation/mixins.js +++ b/packages/jsdoc/test/specs/documentation/mixins.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const augment = require('jsdoc/augment'); const { SCOPE } = require('@jsdoc/core').name; diff --git a/packages/jsdoc/test/specs/documentation/moduleclasses.js b/packages/jsdoc/test/specs/documentation/moduleclasses.js index 327895c5..bd3da4b4 100644 --- a/packages/jsdoc/test/specs/documentation/moduleclasses.js +++ b/packages/jsdoc/test/specs/documentation/moduleclasses.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ function filter({ undocumented }) { return !undocumented; } diff --git a/packages/jsdoc/test/specs/documentation/moduleinner.js b/packages/jsdoc/test/specs/documentation/moduleinner.js index 51603aba..1ef3f138 100644 --- a/packages/jsdoc/test/specs/documentation/moduleinner.js +++ b/packages/jsdoc/test/specs/documentation/moduleinner.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('inner scope for modules', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/moduleinner.js'); const fooIn = docSet.getByLongname('module:my/module~fooIn')[0]; diff --git a/packages/jsdoc/test/specs/documentation/moduleisconstructor.js b/packages/jsdoc/test/specs/documentation/moduleisconstructor.js index dd44a32a..162f0ec3 100644 --- a/packages/jsdoc/test/specs/documentation/moduleisconstructor.js +++ b/packages/jsdoc/test/specs/documentation/moduleisconstructor.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('module that exports a constructor', () => { describe('pre-ES2015 module', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/moduleisconstructor.js'); diff --git a/packages/jsdoc/test/specs/documentation/moduleisfunction.js b/packages/jsdoc/test/specs/documentation/moduleisfunction.js index 84780eff..7dda3ff5 100644 --- a/packages/jsdoc/test/specs/documentation/moduleisfunction.js +++ b/packages/jsdoc/test/specs/documentation/moduleisfunction.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('module that exports a function that is not a constructor', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/moduleisfunction.js'); const functions = docSet.doclets.filter(({ kind }) => kind === 'function'); diff --git a/packages/jsdoc/test/specs/documentation/modules.js b/packages/jsdoc/test/specs/documentation/modules.js index 61456202..1fa3e42b 100644 --- a/packages/jsdoc/test/specs/documentation/modules.js +++ b/packages/jsdoc/test/specs/documentation/modules.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('module names', () => { const path = require('path'); diff --git a/packages/jsdoc/test/specs/documentation/objectkeys.js b/packages/jsdoc/test/specs/documentation/objectkeys.js index 3d7c24b7..00283ed6 100644 --- a/packages/jsdoc/test/specs/documentation/objectkeys.js +++ b/packages/jsdoc/test/specs/documentation/objectkeys.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('object keys', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/objectkeys.js'); diff --git a/packages/jsdoc/test/specs/documentation/objectlit.js b/packages/jsdoc/test/specs/documentation/objectlit.js index 8ec3c5c2..00e9461d 100644 --- a/packages/jsdoc/test/specs/documentation/objectlit.js +++ b/packages/jsdoc/test/specs/documentation/objectlit.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('object literals', () => { describe('When a child of an objlit has no @name or @memberof tags', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/objectlit.js'); diff --git a/packages/jsdoc/test/specs/documentation/objectpropertykeys.js b/packages/jsdoc/test/specs/documentation/objectpropertykeys.js index 01499ca0..f091be5f 100644 --- a/packages/jsdoc/test/specs/documentation/objectpropertykeys.js +++ b/packages/jsdoc/test/specs/documentation/objectpropertykeys.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('using existing Object properties as object literal keys', () => { function loadDocSet() { jsdoc.getDocSetFromFile('test/fixtures/objectpropertykeys.js'); diff --git a/packages/jsdoc/test/specs/documentation/paramtagsametype.js b/packages/jsdoc/test/specs/documentation/paramtagsametype.js index 0c28c3ba..c5317d84 100644 --- a/packages/jsdoc/test/specs/documentation/paramtagsametype.js +++ b/packages/jsdoc/test/specs/documentation/paramtagsametype.js @@ -1,3 +1,18 @@ +/* + Copyright 2020 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const options = jsdoc.deps.get('options'); describe('multiple @param tags with the same type expression', () => { diff --git a/packages/jsdoc/test/specs/documentation/quotename.js b/packages/jsdoc/test/specs/documentation/quotename.js index c9a7adf3..4a4d62b4 100644 --- a/packages/jsdoc/test/specs/documentation/quotename.js +++ b/packages/jsdoc/test/specs/documentation/quotename.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('quoted names', () => { describe('when found in square brackets', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/quotename.js'); diff --git a/packages/jsdoc/test/specs/documentation/restparams.js b/packages/jsdoc/test/specs/documentation/restparams.js index 07c5cf44..2596f236 100644 --- a/packages/jsdoc/test/specs/documentation/restparams.js +++ b/packages/jsdoc/test/specs/documentation/restparams.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('rest parameters', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/restparams.js'); const setAdmins = docSet.getByLongname('setAdmins')[0]; diff --git a/packages/jsdoc/test/specs/documentation/specialchars.js b/packages/jsdoc/test/specs/documentation/specialchars.js index 0d2fbd95..7e6db0b4 100644 --- a/packages/jsdoc/test/specs/documentation/specialchars.js +++ b/packages/jsdoc/test/specs/documentation/specialchars.js @@ -1,3 +1,18 @@ +/* + Copyright 2015 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('longnames with special characters', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/specialchars.js'); const portNumber = docSet.getByLongname("Socket#'port#number'")[0]; diff --git a/packages/jsdoc/test/specs/documentation/specialnames.js b/packages/jsdoc/test/specs/documentation/specialnames.js index 1c6886b0..e6c200e3 100644 --- a/packages/jsdoc/test/specs/documentation/specialnames.js +++ b/packages/jsdoc/test/specs/documentation/specialnames.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('documenting symbols with special names', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/specialnames.js'); const construct = docSet.getByLongname('constructor')[0]; diff --git a/packages/jsdoc/test/specs/documentation/starbangstar.js b/packages/jsdoc/test/specs/documentation/starbangstar.js index 0be997df..3f678098 100644 --- a/packages/jsdoc/test/specs/documentation/starbangstar.js +++ b/packages/jsdoc/test/specs/documentation/starbangstar.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('starbangstar', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/starbangstar.js'); const mod = docSet.getByLongname('module:myscript/core')[0]; diff --git a/packages/jsdoc/test/specs/documentation/this.js b/packages/jsdoc/test/specs/documentation/this.js index 2ef4dd11..463c73e3 100644 --- a/packages/jsdoc/test/specs/documentation/this.js +++ b/packages/jsdoc/test/specs/documentation/this.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('this', () => { describe('attaching members to "this"', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/this.js'); diff --git a/packages/jsdoc/test/specs/documentation/trailingcomment.js b/packages/jsdoc/test/specs/documentation/trailingcomment.js index db264611..84d2f66f 100644 --- a/packages/jsdoc/test/specs/documentation/trailingcomment.js +++ b/packages/jsdoc/test/specs/documentation/trailingcomment.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('trailing comment', () => { it( 'should not ignore trailing comments in a non-empty source file with a `use strict` ' + diff --git a/packages/jsdoc/test/specs/documentation/typetaginline.js b/packages/jsdoc/test/specs/documentation/typetaginline.js index 311ebfc4..8b0ce99d 100644 --- a/packages/jsdoc/test/specs/documentation/typetaginline.js +++ b/packages/jsdoc/test/specs/documentation/typetaginline.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@type tag inline with function parameters', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/typetaginline.js'); let info; diff --git a/packages/jsdoc/test/specs/documentation/typetagwithnewline.js b/packages/jsdoc/test/specs/documentation/typetagwithnewline.js index 39583b30..78236ce7 100644 --- a/packages/jsdoc/test/specs/documentation/typetagwithnewline.js +++ b/packages/jsdoc/test/specs/documentation/typetagwithnewline.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@type tag containing a newline character', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/typetagwithnewline.js'); const mini = docSet.getByLongname('Matryoshka.mini')[0]; diff --git a/packages/jsdoc/test/specs/documentation/var.js b/packages/jsdoc/test/specs/documentation/var.js index 5057424f..0b334404 100644 --- a/packages/jsdoc/test/specs/documentation/var.js +++ b/packages/jsdoc/test/specs/documentation/var.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('var statements', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/var.js'); const GREEN = docSet.getByLongname('GREEN')[0]; diff --git a/packages/jsdoc/test/specs/documentation/variations.js b/packages/jsdoc/test/specs/documentation/variations.js index 9a651350..78f70d85 100644 --- a/packages/jsdoc/test/specs/documentation/variations.js +++ b/packages/jsdoc/test/specs/documentation/variations.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('variations by name', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/variations.js'); const fadein1 = docSet.getByLongname('anim.fadein(1)')[0]; diff --git a/packages/jsdoc/test/specs/documentation/virtual.js b/packages/jsdoc/test/specs/documentation/virtual.js index 254590a0..df145b0a 100644 --- a/packages/jsdoc/test/specs/documentation/virtual.js +++ b/packages/jsdoc/test/specs/documentation/virtual.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('virtual symbols', () => { describe('simple cases', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/virtual.js'); diff --git a/packages/jsdoc/test/specs/jsdoc/augment.js b/packages/jsdoc/test/specs/jsdoc/augment.js index 43510995..48cf34bd 100644 --- a/packages/jsdoc/test/specs/jsdoc/augment.js +++ b/packages/jsdoc/test/specs/jsdoc/augment.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/augment', () => { // TODO: more tests diff --git a/packages/jsdoc/test/specs/jsdoc/borrow.js b/packages/jsdoc/test/specs/jsdoc/borrow.js index 521e9ad5..b3dd4990 100644 --- a/packages/jsdoc/test/specs/jsdoc/borrow.js +++ b/packages/jsdoc/test/specs/jsdoc/borrow.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ xdescribe('jsdoc/borrow', () => { // TODO }); diff --git a/packages/jsdoc/test/specs/jsdoc/doclet.js b/packages/jsdoc/test/specs/jsdoc/doclet.js index 852827b3..fc7089f5 100644 --- a/packages/jsdoc/test/specs/jsdoc/doclet.js +++ b/packages/jsdoc/test/specs/jsdoc/doclet.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/doclet', () => { // TODO: more tests const _ = require('lodash'); diff --git a/packages/jsdoc/test/specs/jsdoc/package.js b/packages/jsdoc/test/specs/jsdoc/package.js index 19e019c3..fb3e7437 100644 --- a/packages/jsdoc/test/specs/jsdoc/package.js +++ b/packages/jsdoc/test/specs/jsdoc/package.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const hasOwnProp = Object.prototype.hasOwnProperty; describe('jsdoc/package', () => { diff --git a/packages/jsdoc/test/specs/jsdoc/plugins.js b/packages/jsdoc/test/specs/jsdoc/plugins.js index 89b711a0..a7726c66 100644 --- a/packages/jsdoc/test/specs/jsdoc/plugins.js +++ b/packages/jsdoc/test/specs/jsdoc/plugins.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/plugins', () => { const plugins = require('jsdoc/plugins'); diff --git a/packages/jsdoc/test/specs/jsdoc/schema.js b/packages/jsdoc/test/specs/jsdoc/schema.js index 112b1647..46385968 100644 --- a/packages/jsdoc/test/specs/jsdoc/schema.js +++ b/packages/jsdoc/test/specs/jsdoc/schema.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/schema', () => { const schema = require('jsdoc/schema'); diff --git a/packages/jsdoc/test/specs/jsdoc/src/filter.js b/packages/jsdoc/test/specs/jsdoc/src/filter.js index 9568d6b3..5b417b07 100644 --- a/packages/jsdoc/test/specs/jsdoc/src/filter.js +++ b/packages/jsdoc/test/specs/jsdoc/src/filter.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/src/filter', () => { const filter = require('jsdoc/src/filter'); const path = require('path'); diff --git a/packages/jsdoc/test/specs/jsdoc/src/handlers.js b/packages/jsdoc/test/specs/jsdoc/src/handlers.js index 0e0bd9dd..972bcad7 100644 --- a/packages/jsdoc/test/specs/jsdoc/src/handlers.js +++ b/packages/jsdoc/test/specs/jsdoc/src/handlers.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/src/handlers', () => { const handlers = require('jsdoc/src/handlers'); diff --git a/packages/jsdoc/test/specs/jsdoc/src/parser.js b/packages/jsdoc/test/specs/jsdoc/src/parser.js index a66495f0..d107eebb 100644 --- a/packages/jsdoc/test/specs/jsdoc/src/parser.js +++ b/packages/jsdoc/test/specs/jsdoc/src/parser.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ /* eslint-disable no-script-url */ describe('jsdoc/src/parser', () => { const _ = require('lodash'); diff --git a/packages/jsdoc/test/specs/jsdoc/src/scanner.js b/packages/jsdoc/test/specs/jsdoc/src/scanner.js index 8ee0d657..1539f466 100644 --- a/packages/jsdoc/test/specs/jsdoc/src/scanner.js +++ b/packages/jsdoc/test/specs/jsdoc/src/scanner.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/src/scanner', () => { const path = require('path'); const scanner = require('jsdoc/src/scanner'); diff --git a/packages/jsdoc/test/specs/jsdoc/src/visitor.js b/packages/jsdoc/test/specs/jsdoc/src/visitor.js index 9c078a43..62c3a8c2 100644 --- a/packages/jsdoc/test/specs/jsdoc/src/visitor.js +++ b/packages/jsdoc/test/specs/jsdoc/src/visitor.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/src/visitor', () => { // TODO: more tests diff --git a/packages/jsdoc/test/specs/jsdoc/src/walker.js b/packages/jsdoc/test/specs/jsdoc/src/walker.js index 177d84ed..9d65922d 100644 --- a/packages/jsdoc/test/specs/jsdoc/src/walker.js +++ b/packages/jsdoc/test/specs/jsdoc/src/walker.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/src/walker', () => { const walker = require('jsdoc/src/walker'); diff --git a/packages/jsdoc/test/specs/jsdoc/tag.js b/packages/jsdoc/test/specs/jsdoc/tag.js index 6dabfc03..c72b994e 100644 --- a/packages/jsdoc/test/specs/jsdoc/tag.js +++ b/packages/jsdoc/test/specs/jsdoc/tag.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const hasOwnProp = Object.prototype.hasOwnProperty; const options = jsdoc.deps.get('options'); diff --git a/packages/jsdoc/test/specs/jsdoc/tag/dictionary.js b/packages/jsdoc/test/specs/jsdoc/tag/dictionary.js index f40ceffa..dee85acf 100644 --- a/packages/jsdoc/test/specs/jsdoc/tag/dictionary.js +++ b/packages/jsdoc/test/specs/jsdoc/tag/dictionary.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/tag/dictionary', () => { const { Dictionary } = require('jsdoc/tag/dictionary'); diff --git a/packages/jsdoc/test/specs/jsdoc/tag/dictionary/definitions.js b/packages/jsdoc/test/specs/jsdoc/tag/dictionary/definitions.js index 00549f8c..b692f6b0 100644 --- a/packages/jsdoc/test/specs/jsdoc/tag/dictionary/definitions.js +++ b/packages/jsdoc/test/specs/jsdoc/tag/dictionary/definitions.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/tag/dictionary/definitions', () => { const definitions = require('jsdoc/tag/dictionary/definitions'); diff --git a/packages/jsdoc/test/specs/jsdoc/tag/validator.js b/packages/jsdoc/test/specs/jsdoc/tag/validator.js index 8329d517..2af9fbce 100644 --- a/packages/jsdoc/test/specs/jsdoc/tag/validator.js +++ b/packages/jsdoc/test/specs/jsdoc/tag/validator.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('jsdoc/tag/validator', () => { const _ = require('lodash'); const { EventBus } = require('@jsdoc/util'); diff --git a/packages/jsdoc/test/specs/jsdoc/template.js b/packages/jsdoc/test/specs/jsdoc/template.js index c15edcf1..77a5aae5 100644 --- a/packages/jsdoc/test/specs/jsdoc/template.js +++ b/packages/jsdoc/test/specs/jsdoc/template.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ xdescribe('jsdoc/template', () => { // TODO }); diff --git a/packages/jsdoc/test/specs/jsdoc/util/templateHelper.js b/packages/jsdoc/test/specs/jsdoc/util/templateHelper.js index 27b8419c..6ce4cc93 100644 --- a/packages/jsdoc/test/specs/jsdoc/util/templateHelper.js +++ b/packages/jsdoc/test/specs/jsdoc/util/templateHelper.js @@ -1,4 +1,18 @@ -/* eslint-disable quotes */ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ const hasOwnProp = Object.prototype.hasOwnProperty; describe('jsdoc/util/templateHelper', () => { diff --git a/packages/jsdoc/test/specs/plugins/plugins.js b/packages/jsdoc/test/specs/plugins/plugins.js index 8c70ab2d..cb212abb 100644 --- a/packages/jsdoc/test/specs/plugins/plugins.js +++ b/packages/jsdoc/test/specs/plugins/plugins.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ // TODO: consolidate with specs/jsdoc/parser and specs/jsdoc/plugins describe('plugins', () => { const path = require('path'); diff --git a/packages/jsdoc/test/specs/tags/abstracttag.js b/packages/jsdoc/test/specs/tags/abstracttag.js index 06f9d738..83274cce 100644 --- a/packages/jsdoc/test/specs/tags/abstracttag.js +++ b/packages/jsdoc/test/specs/tags/abstracttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@abstract tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/abstracttag.js'); const thingy = docSet.getByLongname('Thingy')[0]; diff --git a/packages/jsdoc/test/specs/tags/accesstag.js b/packages/jsdoc/test/specs/tags/accesstag.js index dc1c5eba..8a8a48ba 100644 --- a/packages/jsdoc/test/specs/tags/accesstag.js +++ b/packages/jsdoc/test/specs/tags/accesstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@access tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/accesstag.js'); const foo = docSet.getByLongname('Thingy~foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/aliastag.js b/packages/jsdoc/test/specs/tags/aliastag.js index c218bdd8..53280e19 100644 --- a/packages/jsdoc/test/specs/tags/aliastag.js +++ b/packages/jsdoc/test/specs/tags/aliastag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@alias tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/alias.js'); // there are two doclets with longname myObject, we want the second one diff --git a/packages/jsdoc/test/specs/tags/asynctag.js b/packages/jsdoc/test/specs/tags/asynctag.js index 16bfdcc7..e4d9fffe 100644 --- a/packages/jsdoc/test/specs/tags/asynctag.js +++ b/packages/jsdoc/test/specs/tags/asynctag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@async tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/asynctag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/augmentstag.js b/packages/jsdoc/test/specs/tags/augmentstag.js index dac59b4b..c73c5276 100644 --- a/packages/jsdoc/test/specs/tags/augmentstag.js +++ b/packages/jsdoc/test/specs/tags/augmentstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@augments tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/augmentstag.js'); const docSet2 = jsdoc.getDocSetFromFile('test/fixtures/augmentstag2.js'); diff --git a/packages/jsdoc/test/specs/tags/authortag.js b/packages/jsdoc/test/specs/tags/authortag.js index 2ca3215c..914ab52a 100644 --- a/packages/jsdoc/test/specs/tags/authortag.js +++ b/packages/jsdoc/test/specs/tags/authortag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@author tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/authortag.js'); const Thingy = docSet.getByLongname('Thingy')[0]; diff --git a/packages/jsdoc/test/specs/tags/borrowstag.js b/packages/jsdoc/test/specs/tags/borrowstag.js index 27ecb231..a5f4e086 100644 --- a/packages/jsdoc/test/specs/tags/borrowstag.js +++ b/packages/jsdoc/test/specs/tags/borrowstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ function filterUndocumented({ undocumented }) { return !undocumented; } diff --git a/packages/jsdoc/test/specs/tags/classdesctag.js b/packages/jsdoc/test/specs/tags/classdesctag.js index d1153423..677ed442 100644 --- a/packages/jsdoc/test/specs/tags/classdesctag.js +++ b/packages/jsdoc/test/specs/tags/classdesctag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@classdesc tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/classdesctag.js'); const foo = docSet.getByLongname('Foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/classtag.js b/packages/jsdoc/test/specs/tags/classtag.js index 933f878c..59600fe6 100644 --- a/packages/jsdoc/test/specs/tags/classtag.js +++ b/packages/jsdoc/test/specs/tags/classtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ function filter({ undocumented }) { return !undocumented; } diff --git a/packages/jsdoc/test/specs/tags/constanttag.js b/packages/jsdoc/test/specs/tags/constanttag.js index 9497aa0e..073dcb53 100644 --- a/packages/jsdoc/test/specs/tags/constanttag.js +++ b/packages/jsdoc/test/specs/tags/constanttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@constant tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/constanttag.js'); const FOO = docSet.getByLongname('FOO')[0]; diff --git a/packages/jsdoc/test/specs/tags/constructortag.js b/packages/jsdoc/test/specs/tags/constructortag.js index a680c731..b3f5bf6a 100644 --- a/packages/jsdoc/test/specs/tags/constructortag.js +++ b/packages/jsdoc/test/specs/tags/constructortag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@constructor tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/constructortag.js'); const feed = docSet.getByLongname('Feed')[0]; diff --git a/packages/jsdoc/test/specs/tags/constructstag.js b/packages/jsdoc/test/specs/tags/constructstag.js index 8cf33899..ed9f4c19 100644 --- a/packages/jsdoc/test/specs/tags/constructstag.js +++ b/packages/jsdoc/test/specs/tags/constructstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@constructs tag', () => { it('When a symbol has a @constructs tag, it is documented as a class with that name.', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/constructstag.js'); diff --git a/packages/jsdoc/test/specs/tags/copyrighttag.js b/packages/jsdoc/test/specs/tags/copyrighttag.js index 8cd3b1a3..caaeea92 100644 --- a/packages/jsdoc/test/specs/tags/copyrighttag.js +++ b/packages/jsdoc/test/specs/tags/copyrighttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@copyright tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/copyrighttag.js'); const Thingy = docSet.getByLongname('Thingy')[0]; diff --git a/packages/jsdoc/test/specs/tags/defaulttag.js b/packages/jsdoc/test/specs/tags/defaulttag.js index 0d3a283d..8d668e54 100644 --- a/packages/jsdoc/test/specs/tags/defaulttag.js +++ b/packages/jsdoc/test/specs/tags/defaulttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@default tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/defaulttag.js'); diff --git a/packages/jsdoc/test/specs/tags/definetag.js b/packages/jsdoc/test/specs/tags/definetag.js index 6d120423..ce2729cd 100644 --- a/packages/jsdoc/test/specs/tags/definetag.js +++ b/packages/jsdoc/test/specs/tags/definetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@define tag', () => { describe('JSDoc tags', () => { const config = jsdoc.deps.get('config'); diff --git a/packages/jsdoc/test/specs/tags/deprecatedtag.js b/packages/jsdoc/test/specs/tags/deprecatedtag.js index c8622dc3..1417e964 100644 --- a/packages/jsdoc/test/specs/tags/deprecatedtag.js +++ b/packages/jsdoc/test/specs/tags/deprecatedtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@deprecated tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/deprecatedtag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/descriptiontag.js b/packages/jsdoc/test/specs/tags/descriptiontag.js index abefc59a..4f3ce383 100644 --- a/packages/jsdoc/test/specs/tags/descriptiontag.js +++ b/packages/jsdoc/test/specs/tags/descriptiontag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@description tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/descriptiontag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/dicttag.js b/packages/jsdoc/test/specs/tags/dicttag.js index e10f5e60..2d3b4765 100644 --- a/packages/jsdoc/test/specs/tags/dicttag.js +++ b/packages/jsdoc/test/specs/tags/dicttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@dict tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/enumtag.js b/packages/jsdoc/test/specs/tags/enumtag.js index 5a7cef7a..4c7f338c 100644 --- a/packages/jsdoc/test/specs/tags/enumtag.js +++ b/packages/jsdoc/test/specs/tags/enumtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@enum tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/enumtag.js'); const tristate = docSet.getByLongname('TriState')[0]; diff --git a/packages/jsdoc/test/specs/tags/eventfirestag.js b/packages/jsdoc/test/specs/tags/eventfirestag.js index 3793747d..e6104fde 100644 --- a/packages/jsdoc/test/specs/tags/eventfirestag.js +++ b/packages/jsdoc/test/specs/tags/eventfirestag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@event and @fires/@emits tags', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/eventfirestag.js'); const snowballMethod = docSet.getByLongname('Hurl#snowball')[0]; diff --git a/packages/jsdoc/test/specs/tags/exampletag.js b/packages/jsdoc/test/specs/tags/exampletag.js index b1ebd5b2..038b0bb5 100644 --- a/packages/jsdoc/test/specs/tags/exampletag.js +++ b/packages/jsdoc/test/specs/tags/exampletag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@example tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exampletag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/exceptiontag.js b/packages/jsdoc/test/specs/tags/exceptiontag.js index df47bbbb..48d0643e 100644 --- a/packages/jsdoc/test/specs/tags/exceptiontag.js +++ b/packages/jsdoc/test/specs/tags/exceptiontag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@exception tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exceptiontag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/exportstag.js b/packages/jsdoc/test/specs/tags/exportstag.js index 838a7d2f..847cb0ec 100644 --- a/packages/jsdoc/test/specs/tags/exportstag.js +++ b/packages/jsdoc/test/specs/tags/exportstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@exports tag', () => { describe('object literals', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/exportstag.js'); diff --git a/packages/jsdoc/test/specs/tags/exporttag.js b/packages/jsdoc/test/specs/tags/exporttag.js index e80f928d..d2d29da8 100644 --- a/packages/jsdoc/test/specs/tags/exporttag.js +++ b/packages/jsdoc/test/specs/tags/exporttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@export tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/externaltag.js b/packages/jsdoc/test/specs/tags/externaltag.js index d4359cbe..382bdf11 100644 --- a/packages/jsdoc/test/specs/tags/externaltag.js +++ b/packages/jsdoc/test/specs/tags/externaltag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@external tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/externaltag.js'); // TODO: why don't we test anything from docSet2? diff --git a/packages/jsdoc/test/specs/tags/externstag.js b/packages/jsdoc/test/specs/tags/externstag.js index 6aed9431..5cc7fac6 100644 --- a/packages/jsdoc/test/specs/tags/externstag.js +++ b/packages/jsdoc/test/specs/tags/externstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@externs tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/fileoverviewtag.js b/packages/jsdoc/test/specs/tags/fileoverviewtag.js index 74a658c2..89a5afdf 100644 --- a/packages/jsdoc/test/specs/tags/fileoverviewtag.js +++ b/packages/jsdoc/test/specs/tags/fileoverviewtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@fileoverview tag', () => { // For JSDoc tags, @fileoverview is a synonym of @file, so this is covered by the @file tag tests. diff --git a/packages/jsdoc/test/specs/tags/filetag.js b/packages/jsdoc/test/specs/tags/filetag.js index b226a1cc..00067ad6 100644 --- a/packages/jsdoc/test/specs/tags/filetag.js +++ b/packages/jsdoc/test/specs/tags/filetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ xdescribe('@file tag', () => { // TODO: add tests }); diff --git a/packages/jsdoc/test/specs/tags/functiontag.js b/packages/jsdoc/test/specs/tags/functiontag.js index 33f20ad6..d2bb2938 100644 --- a/packages/jsdoc/test/specs/tags/functiontag.js +++ b/packages/jsdoc/test/specs/tags/functiontag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@function tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/functiontag.js'); const doc = docSet.getByLongname('Foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/generatortag.js b/packages/jsdoc/test/specs/tags/generatortag.js index 67daf663..cb60646e 100644 --- a/packages/jsdoc/test/specs/tags/generatortag.js +++ b/packages/jsdoc/test/specs/tags/generatortag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@generator tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/generatortag.js'); const idMaker = docSet.getByLongname('idMaker')[0]; diff --git a/packages/jsdoc/test/specs/tags/globaltag.js b/packages/jsdoc/test/specs/tags/globaltag.js index f4f38318..952d5e1e 100644 --- a/packages/jsdoc/test/specs/tags/globaltag.js +++ b/packages/jsdoc/test/specs/tags/globaltag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@global tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/globaltag.js'); diff --git a/packages/jsdoc/test/specs/tags/hideconstructortag.js b/packages/jsdoc/test/specs/tags/hideconstructortag.js index 55ddb117..5ca4fde1 100644 --- a/packages/jsdoc/test/specs/tags/hideconstructortag.js +++ b/packages/jsdoc/test/specs/tags/hideconstructortag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@hideconstructor tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/hideconstructortag.js'); const toaster = docSet.getByLongname('Toaster')[0]; diff --git a/packages/jsdoc/test/specs/tags/ignoretag.js b/packages/jsdoc/test/specs/tags/ignoretag.js index 2cb312e5..812a6e6c 100644 --- a/packages/jsdoc/test/specs/tags/ignoretag.js +++ b/packages/jsdoc/test/specs/tags/ignoretag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@ignore tag', () => { it('When a symbol has an @ignore tag, the doclet has a ignore property set to true.', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/ignoretag.js'); diff --git a/packages/jsdoc/test/specs/tags/implementstag.js b/packages/jsdoc/test/specs/tags/implementstag.js index de29fdd5..468fc114 100644 --- a/packages/jsdoc/test/specs/tags/implementstag.js +++ b/packages/jsdoc/test/specs/tags/implementstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@implements tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/interface-implements.js'); diff --git a/packages/jsdoc/test/specs/tags/implicitcasttag.js b/packages/jsdoc/test/specs/tags/implicitcasttag.js index 5e023f7f..4471f3a1 100644 --- a/packages/jsdoc/test/specs/tags/implicitcasttag.js +++ b/packages/jsdoc/test/specs/tags/implicitcasttag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@implicitCast tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/inheritdoctag.js b/packages/jsdoc/test/specs/tags/inheritdoctag.js index 35102761..3d55aa20 100644 --- a/packages/jsdoc/test/specs/tags/inheritdoctag.js +++ b/packages/jsdoc/test/specs/tags/inheritdoctag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@inheritdoc tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/inheritdoctag.js'); diff --git a/packages/jsdoc/test/specs/tags/interfacetag.js b/packages/jsdoc/test/specs/tags/interfacetag.js index e665afb0..cf8ff15f 100644 --- a/packages/jsdoc/test/specs/tags/interfacetag.js +++ b/packages/jsdoc/test/specs/tags/interfacetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@interface tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/interface-implements.js'); const testerInterface = docSet.getByLongname('ITester')[0]; diff --git a/packages/jsdoc/test/specs/tags/kindtag.js b/packages/jsdoc/test/specs/tags/kindtag.js index 1497aef0..d323056a 100644 --- a/packages/jsdoc/test/specs/tags/kindtag.js +++ b/packages/jsdoc/test/specs/tags/kindtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@kind tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/kindtag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/lendstag.js b/packages/jsdoc/test/specs/tags/lendstag.js index 4449d477..72d01b79 100644 --- a/packages/jsdoc/test/specs/tags/lendstag.js +++ b/packages/jsdoc/test/specs/tags/lendstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@lends tag', () => { // see also specs/documentation/lends.js for tests on @lends behaviour. const { Doclet } = require('jsdoc/doclet'); diff --git a/packages/jsdoc/test/specs/tags/licensetag.js b/packages/jsdoc/test/specs/tags/licensetag.js index 8c6f6dce..9e773327 100644 --- a/packages/jsdoc/test/specs/tags/licensetag.js +++ b/packages/jsdoc/test/specs/tags/licensetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@license tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/licensetag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/listenstag.js b/packages/jsdoc/test/specs/tags/listenstag.js index 6981a57a..49e12838 100644 --- a/packages/jsdoc/test/specs/tags/listenstag.js +++ b/packages/jsdoc/test/specs/tags/listenstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@listens tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/listenstag.js'); const doc = docSet.getByLongname('module:myModule~MyHandler')[0]; diff --git a/packages/jsdoc/test/specs/tags/memberoftag.js b/packages/jsdoc/test/specs/tags/memberoftag.js index ac199f59..43a7dda3 100644 --- a/packages/jsdoc/test/specs/tags/memberoftag.js +++ b/packages/jsdoc/test/specs/tags/memberoftag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@memberof tag', () => { it('When a symbol has a @member tag, the doclet has a long name that includes the parent.', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/memberoftag.js'); diff --git a/packages/jsdoc/test/specs/tags/membertag.js b/packages/jsdoc/test/specs/tags/membertag.js index 42377374..718b2f38 100644 --- a/packages/jsdoc/test/specs/tags/membertag.js +++ b/packages/jsdoc/test/specs/tags/membertag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@member tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/membertag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/mixestag.js b/packages/jsdoc/test/specs/tags/mixestag.js index 4f8076dd..757612a3 100644 --- a/packages/jsdoc/test/specs/tags/mixestag.js +++ b/packages/jsdoc/test/specs/tags/mixestag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@mixes tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/mixintag.js'); const FormButton = docSet.getByLongname('FormButton')[0]; diff --git a/packages/jsdoc/test/specs/tags/mixintag.js b/packages/jsdoc/test/specs/tags/mixintag.js index 7b7c2fcf..80858320 100644 --- a/packages/jsdoc/test/specs/tags/mixintag.js +++ b/packages/jsdoc/test/specs/tags/mixintag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@mixin tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/mixintag.js'); const Eventful = docSet.getByLongname('Eventful')[0]; diff --git a/packages/jsdoc/test/specs/tags/modifiestag.js b/packages/jsdoc/test/specs/tags/modifiestag.js index 8210b4ef..afde4798 100644 --- a/packages/jsdoc/test/specs/tags/modifiestag.js +++ b/packages/jsdoc/test/specs/tags/modifiestag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@modifies tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/modifiestag.js'); const mutator = docSet.getByLongname('mutator')[0]; diff --git a/packages/jsdoc/test/specs/tags/moduletag.js b/packages/jsdoc/test/specs/tags/moduletag.js index 23643fc0..4724cb41 100644 --- a/packages/jsdoc/test/specs/tags/moduletag.js +++ b/packages/jsdoc/test/specs/tags/moduletag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ function filter({ undocumented }) { return !undocumented; } diff --git a/packages/jsdoc/test/specs/tags/namespacetag.js b/packages/jsdoc/test/specs/tags/namespacetag.js index c05be08d..5116cf44 100644 --- a/packages/jsdoc/test/specs/tags/namespacetag.js +++ b/packages/jsdoc/test/specs/tags/namespacetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@namespace tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/namespacetag.js'); const x = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/nametag.js b/packages/jsdoc/test/specs/tags/nametag.js index 459726ee..948824be 100644 --- a/packages/jsdoc/test/specs/tags/nametag.js +++ b/packages/jsdoc/test/specs/tags/nametag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@name tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/nametag.js'); const view = docSet.getByLongname('View')[0]; diff --git a/packages/jsdoc/test/specs/tags/noaliastag.js b/packages/jsdoc/test/specs/tags/noaliastag.js index c5e5655f..ba2eec54 100644 --- a/packages/jsdoc/test/specs/tags/noaliastag.js +++ b/packages/jsdoc/test/specs/tags/noaliastag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@noalias tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/nocollapsetag.js b/packages/jsdoc/test/specs/tags/nocollapsetag.js index ddbe7490..67456da1 100644 --- a/packages/jsdoc/test/specs/tags/nocollapsetag.js +++ b/packages/jsdoc/test/specs/tags/nocollapsetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@nocollapse tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/nocompiletag.js b/packages/jsdoc/test/specs/tags/nocompiletag.js index f04c8136..8f1da441 100644 --- a/packages/jsdoc/test/specs/tags/nocompiletag.js +++ b/packages/jsdoc/test/specs/tags/nocompiletag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@nocompile tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/nosideeffectstag.js b/packages/jsdoc/test/specs/tags/nosideeffectstag.js index ba64174a..def2040a 100644 --- a/packages/jsdoc/test/specs/tags/nosideeffectstag.js +++ b/packages/jsdoc/test/specs/tags/nosideeffectstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@nosideeffects tag', () => { afterEach(() => { jsdoc.restoreTagDictionary(); diff --git a/packages/jsdoc/test/specs/tags/overridetag.js b/packages/jsdoc/test/specs/tags/overridetag.js index 714dd61c..405eeaf1 100644 --- a/packages/jsdoc/test/specs/tags/overridetag.js +++ b/packages/jsdoc/test/specs/tags/overridetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@override tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/overviewtag.js b/packages/jsdoc/test/specs/tags/overviewtag.js index 94573e5e..689dfd7a 100644 --- a/packages/jsdoc/test/specs/tags/overviewtag.js +++ b/packages/jsdoc/test/specs/tags/overviewtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@overview tag', () => { const path = require('path'); diff --git a/packages/jsdoc/test/specs/tags/packagetag.js b/packages/jsdoc/test/specs/tags/packagetag.js index d7f1d0fb..f6c66527 100644 --- a/packages/jsdoc/test/specs/tags/packagetag.js +++ b/packages/jsdoc/test/specs/tags/packagetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@package tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/packagetag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/paramtag.js b/packages/jsdoc/test/specs/tags/paramtag.js index 286f289e..dc25428f 100644 --- a/packages/jsdoc/test/specs/tags/paramtag.js +++ b/packages/jsdoc/test/specs/tags/paramtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@param tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/paramtag.js'); const docSet2 = jsdoc.getDocSetFromFile('test/fixtures/paramtag2.js'); diff --git a/packages/jsdoc/test/specs/tags/polymerbehaviortag.js b/packages/jsdoc/test/specs/tags/polymerbehaviortag.js index 13ec6202..b9a7f612 100644 --- a/packages/jsdoc/test/specs/tags/polymerbehaviortag.js +++ b/packages/jsdoc/test/specs/tags/polymerbehaviortag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@polymerBehavior tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/polymertag.js b/packages/jsdoc/test/specs/tags/polymertag.js index 35294a69..0039d2a4 100644 --- a/packages/jsdoc/test/specs/tags/polymertag.js +++ b/packages/jsdoc/test/specs/tags/polymertag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@polymer tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/preservetag.js b/packages/jsdoc/test/specs/tags/preservetag.js index df6ffb8e..5efa1df1 100644 --- a/packages/jsdoc/test/specs/tags/preservetag.js +++ b/packages/jsdoc/test/specs/tags/preservetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@preserve tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/privatetag.js b/packages/jsdoc/test/specs/tags/privatetag.js index 7231c5b7..7b59c1b8 100644 --- a/packages/jsdoc/test/specs/tags/privatetag.js +++ b/packages/jsdoc/test/specs/tags/privatetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@private tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/privatetag.js'); const foo = docSet.getByLongname('Foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/propertytag.js b/packages/jsdoc/test/specs/tags/propertytag.js index aae696ef..c60aafd2 100644 --- a/packages/jsdoc/test/specs/tags/propertytag.js +++ b/packages/jsdoc/test/specs/tags/propertytag.js @@ -1,3 +1,18 @@ +/* + Copyright 2012 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@property tag', () => { it('When a symbol has a @property tag, the property appears in the doclet.', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/propertytag.js'); diff --git a/packages/jsdoc/test/specs/tags/protectedtag.js b/packages/jsdoc/test/specs/tags/protectedtag.js index 8da237d4..04b28f86 100644 --- a/packages/jsdoc/test/specs/tags/protectedtag.js +++ b/packages/jsdoc/test/specs/tags/protectedtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@protected tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/protectedtag.js'); const uidCounter = docSet.getByLongname('module:uid~uidCounter')[0]; diff --git a/packages/jsdoc/test/specs/tags/publictag.js b/packages/jsdoc/test/specs/tags/publictag.js index 60249c98..d51616bf 100644 --- a/packages/jsdoc/test/specs/tags/publictag.js +++ b/packages/jsdoc/test/specs/tags/publictag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@public tag', () => { afterEach(() => { jsdoc.restoreTagDictionary(); diff --git a/packages/jsdoc/test/specs/tags/readonlytag.js b/packages/jsdoc/test/specs/tags/readonlytag.js index 9ed8a7e0..c91b32b3 100644 --- a/packages/jsdoc/test/specs/tags/readonlytag.js +++ b/packages/jsdoc/test/specs/tags/readonlytag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@readonly tag', () => { it('When a symbol has an @readonly tag, the doclet has an readonly property that is true.', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/readonlytag.js'); diff --git a/packages/jsdoc/test/specs/tags/requirestag.js b/packages/jsdoc/test/specs/tags/requirestag.js index 160ed331..b63649a8 100644 --- a/packages/jsdoc/test/specs/tags/requirestag.js +++ b/packages/jsdoc/test/specs/tags/requirestag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@requires tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/requirestag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/returnstag.js b/packages/jsdoc/test/specs/tags/returnstag.js index 3040cbe3..85d87098 100644 --- a/packages/jsdoc/test/specs/tags/returnstag.js +++ b/packages/jsdoc/test/specs/tags/returnstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@returns tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/returnstag.js'); diff --git a/packages/jsdoc/test/specs/tags/scopetags.js b/packages/jsdoc/test/specs/tags/scopetags.js index 40315e63..2b464891 100644 --- a/packages/jsdoc/test/specs/tags/scopetags.js +++ b/packages/jsdoc/test/specs/tags/scopetags.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('scope tags', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/scopetags.js'); diff --git a/packages/jsdoc/test/specs/tags/seetag.js b/packages/jsdoc/test/specs/tags/seetag.js index f933b227..a341b6d7 100644 --- a/packages/jsdoc/test/specs/tags/seetag.js +++ b/packages/jsdoc/test/specs/tags/seetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@see tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/seetag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/sincetag.js b/packages/jsdoc/test/specs/tags/sincetag.js index a36d563a..2d7ae54e 100644 --- a/packages/jsdoc/test/specs/tags/sincetag.js +++ b/packages/jsdoc/test/specs/tags/sincetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@since tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/sincetag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/structtag.js b/packages/jsdoc/test/specs/tags/structtag.js index 2ae4ec69..cefe782b 100644 --- a/packages/jsdoc/test/specs/tags/structtag.js +++ b/packages/jsdoc/test/specs/tags/structtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@struct tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/summarytag.js b/packages/jsdoc/test/specs/tags/summarytag.js index 36fca395..50ce280c 100644 --- a/packages/jsdoc/test/specs/tags/summarytag.js +++ b/packages/jsdoc/test/specs/tags/summarytag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@summary tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/summarytag.js'); const doc = docSet.getByLongname('Sam')[0]; diff --git a/packages/jsdoc/test/specs/tags/suppresstag.js b/packages/jsdoc/test/specs/tags/suppresstag.js index d8980773..ba9c0441 100644 --- a/packages/jsdoc/test/specs/tags/suppresstag.js +++ b/packages/jsdoc/test/specs/tags/suppresstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@suppress tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/templatetag.js b/packages/jsdoc/test/specs/tags/templatetag.js index 2075c2c4..2b67769d 100644 --- a/packages/jsdoc/test/specs/tags/templatetag.js +++ b/packages/jsdoc/test/specs/tags/templatetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@template tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/thistag.js b/packages/jsdoc/test/specs/tags/thistag.js index 7927af6b..35d51a02 100644 --- a/packages/jsdoc/test/specs/tags/thistag.js +++ b/packages/jsdoc/test/specs/tags/thistag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@this tag', () => { afterEach(() => { jsdoc.restoreTagDictionary(); diff --git a/packages/jsdoc/test/specs/tags/todotag.js b/packages/jsdoc/test/specs/tags/todotag.js index a0dba6ee..6140882d 100644 --- a/packages/jsdoc/test/specs/tags/todotag.js +++ b/packages/jsdoc/test/specs/tags/todotag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@todo tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/todotag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/typedeftag.js b/packages/jsdoc/test/specs/tags/typedeftag.js index 5f2b4ce8..43529b34 100644 --- a/packages/jsdoc/test/specs/tags/typedeftag.js +++ b/packages/jsdoc/test/specs/tags/typedeftag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@typedef tag', () => { afterEach(() => { jsdoc.restoreTagDictionary(); diff --git a/packages/jsdoc/test/specs/tags/typekind.js b/packages/jsdoc/test/specs/tags/typekind.js index 2cf62f37..3c7ba74e 100644 --- a/packages/jsdoc/test/specs/tags/typekind.js +++ b/packages/jsdoc/test/specs/tags/typekind.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@kind tag with type', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/typekind.js'); const blog = docSet.getByLongname('module:blog/server')[0]; diff --git a/packages/jsdoc/test/specs/tags/typetag.js b/packages/jsdoc/test/specs/tags/typetag.js index f34f6b99..cb7637a3 100644 --- a/packages/jsdoc/test/specs/tags/typetag.js +++ b/packages/jsdoc/test/specs/tags/typetag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@type tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/typetag.js'); diff --git a/packages/jsdoc/test/specs/tags/undocumentedtag.js b/packages/jsdoc/test/specs/tags/undocumentedtag.js index 1c88d237..398660e2 100644 --- a/packages/jsdoc/test/specs/tags/undocumentedtag.js +++ b/packages/jsdoc/test/specs/tags/undocumentedtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2013 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@undocumented tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/undocumentedtag.js'); const doc = docSet.getByLongname('x')[0]; diff --git a/packages/jsdoc/test/specs/tags/unrestrictedtag.js b/packages/jsdoc/test/specs/tags/unrestrictedtag.js index 5a39db47..1b538976 100644 --- a/packages/jsdoc/test/specs/tags/unrestrictedtag.js +++ b/packages/jsdoc/test/specs/tags/unrestrictedtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@unrestricted tag', () => { const config = jsdoc.deps.get('config'); const allowUnknownTags = Boolean(config.tags.allowUnknownTags); diff --git a/packages/jsdoc/test/specs/tags/variationtag.js b/packages/jsdoc/test/specs/tags/variationtag.js index 2ea40fc3..7be3a125 100644 --- a/packages/jsdoc/test/specs/tags/variationtag.js +++ b/packages/jsdoc/test/specs/tags/variationtag.js @@ -1,3 +1,18 @@ +/* + Copyright 2014 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@variation tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/variationtag.js'); const someObject2 = docSet.getByLongname('someObject(2)')[0]; diff --git a/packages/jsdoc/test/specs/tags/versiontag.js b/packages/jsdoc/test/specs/tags/versiontag.js index 211fc4ea..c3796222 100644 --- a/packages/jsdoc/test/specs/tags/versiontag.js +++ b/packages/jsdoc/test/specs/tags/versiontag.js @@ -1,3 +1,18 @@ +/* + Copyright 2011 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@version tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/versiontag.js'); const foo = docSet.getByLongname('foo')[0]; diff --git a/packages/jsdoc/test/specs/tags/yieldstag.js b/packages/jsdoc/test/specs/tags/yieldstag.js index 5b7a8f13..d2a6e0de 100644 --- a/packages/jsdoc/test/specs/tags/yieldstag.js +++ b/packages/jsdoc/test/specs/tags/yieldstag.js @@ -1,3 +1,18 @@ +/* + Copyright 2017 the JSDoc Authors. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ describe('@yields tag', () => { const docSet = jsdoc.getDocSetFromFile('test/fixtures/yieldstag.js'); const fibonacci = docSet.getByLongname('fibonacci')[0];