From aae6eddf5b8f279c320aa3941586091975fbd4a6 Mon Sep 17 00:00:00 2001 From: sverweij Date: Thu, 21 Nov 2024 21:02:33 +0100 Subject: [PATCH] refactor: addresses small linting issues --- bin/depcruise-baseline.mjs | 2 +- doc/assets/filtering/focus.svg | 2 +- .../dependency-cruiser-archi-graph.svg | 2 +- .../dependency-cruiser-dir-graph.svg | 2 +- ...ependency-cruiser-without-node_modules.svg | 2696 ++++++++-------- docs/dependency-cruiser-archi-graph.html | 10 +- docs/dependency-cruiser-dependency-graph.html | 2704 +++++++++-------- docs/dependency-cruiser-dir-graph.html | 10 +- docs/schema-overview.html | 10 +- src/cli/index.mjs | 2 +- .../performance-log/format-helpers.mjs | 2 +- src/cli/utl/io.mjs | 3 +- src/config-utl/extract-known-violations.mjs | 8 +- src/enrich/soften-known-violations.mjs | 2 +- src/extract/extract-dependencies.mjs | 4 +- .../resolve/determine-dependency-types.mjs | 4 +- .../resolve/external-module-helpers.mjs | 8 +- src/extract/resolve/module-classifiers.mjs | 4 +- src/extract/resolve/resolve-helpers.mjs | 6 +- src/extract/swc/dependency-visitor.mjs | 8 +- src/extract/tsc/extract-typescript-deps.mjs | 12 +- src/main/cruise.mjs | 2 +- src/main/options/assert-validity.mjs | 14 +- src/main/rule-set/normalize.mjs | 6 +- src/report/anon/anonymize-path.mjs | 2 +- .../svg-in-html-snippets/script.cjs | 8 +- src/report/dot/index.mjs | 6 +- src/report/markdown.mjs | 71 +- src/report/mermaid.mjs | 4 +- src/utl/get-extension.mjs | 2 +- src/validate/matchers.mjs | 2 +- tools/overview.svg | 2 +- types/overview.html | 10 +- types/overview.svg | 2 +- 34 files changed, 2843 insertions(+), 2789 deletions(-) diff --git a/bin/depcruise-baseline.mjs b/bin/depcruise-baseline.mjs index 62810b8e9..dd60219d1 100755 --- a/bin/depcruise-baseline.mjs +++ b/bin/depcruise-baseline.mjs @@ -28,7 +28,7 @@ try { .arguments("") .parse(process.argv); - if (Boolean(program.args[0])) { + if (program.args[0]) { process.exitCode = await cli(program.args, { ...program.opts(), cache: false, diff --git a/doc/assets/filtering/focus.svg b/doc/assets/filtering/focus.svg index 646d756ec..436bdf2f0 100644 --- a/doc/assets/filtering/focus.svg +++ b/doc/assets/filtering/focus.svg @@ -1,7 +1,7 @@ - - - - - - + + dependency-cruiser output - + cluster_bin - -bin + +bin cluster_src - -src + +src cluster_src/cache - -cache + +cache cluster_src/cli - -cli + +cli cluster_src/cli/init-config - -init-config + +init-config cluster_src/cli/listeners - -listeners + +listeners cluster_src/cli/listeners/performance-log - -performance-log + +performance-log cluster_src/cli/tools - -tools + +tools cluster_src/cli/utl - -utl + +utl cluster_src/config-utl - -config-utl + +config-utl cluster_src/config-utl/extract-depcruise-config - -extract-depcruise-config + +extract-depcruise-config cluster_src/enrich - -enrich + +enrich cluster_src/enrich/derive - -derive + +derive cluster_src/enrich/summarize - -summarize + +summarize cluster_src/extract - -extract + +extract cluster_src/extract/acorn - -acorn + +acorn cluster_src/extract/resolve - -resolve + +resolve cluster_src/extract/swc - -swc + +swc cluster_src/extract/transpile - -transpile + +transpile cluster_src/extract/tsc - -tsc + +tsc cluster_src/graph-utl - -graph-utl + +graph-utl cluster_src/main - -main + +main cluster_src/main/files-and-dirs - -files-and-dirs + +files-and-dirs cluster_src/main/options - -options + +options cluster_src/main/resolve-options - -resolve-options + +resolve-options cluster_src/main/rule-set - -rule-set + +rule-set cluster_src/report - -report + +report cluster_src/schema - -schema + +schema cluster_src/utl - -utl + +utl cluster_src/validate - -validate + +validate bin/depcruise-baseline.mjs - -depcruise-baseline.mjs + +depcruise-baseline.mjs @@ -172,31 +172,31 @@ src/cli/assert-node-environment-suitable.mjs - -assert-node-environment-suitable.mjs + +assert-node-environment-suitable.mjs bin/depcruise-baseline.mjs->src/cli/assert-node-environment-suitable.mjs - - + + src/cli/index.mjs - -index.mjs + +index.mjs bin/depcruise-baseline.mjs->src/cli/index.mjs - - + + @@ -210,294 +210,294 @@ src/cli/index.mjs->src/cli/format-meta-info.mjs - - + + src/cli/normalize-cli-options.mjs - -normalize-cli-options.mjs + +normalize-cli-options.mjs src/cli/index.mjs->src/cli/normalize-cli-options.mjs - - + + src/cli/utl/assert-file-existence.mjs - -assert-file-existence.mjs + +assert-file-existence.mjs src/cli/index.mjs->src/cli/utl/assert-file-existence.mjs - - + + src/cli/utl/io.mjs - -io.mjs + +io.mjs src/cli/index.mjs->src/cli/utl/io.mjs - - + + src/cli/init-config/index.mjs - -index.mjs + +index.mjs src/cli/index.mjs->src/cli/init-config/index.mjs - - + + src/cli/listeners/cli-feedback.mjs - -cli-feedback.mjs + +cli-feedback.mjs src/cli/index.mjs->src/cli/listeners/cli-feedback.mjs - - + + src/cli/listeners/ndjson.mjs - -ndjson.mjs + +ndjson.mjs src/cli/index.mjs->src/cli/listeners/ndjson.mjs - - + + src/cli/listeners/performance-log/index.mjs - -index.mjs + +index.mjs src/cli/index.mjs->src/cli/listeners/performance-log/index.mjs - - + + src/config-utl/extract-babel-config.mjs - -extract-babel-config.mjs + +extract-babel-config.mjs src/cli/index.mjs->src/config-utl/extract-babel-config.mjs - - + + src/config-utl/extract-known-violations.mjs - -extract-known-violations.mjs + +extract-known-violations.mjs src/cli/index.mjs->src/config-utl/extract-known-violations.mjs - - + + src/config-utl/extract-ts-config.mjs - -extract-ts-config.mjs + +extract-ts-config.mjs src/cli/index.mjs->src/config-utl/extract-ts-config.mjs - - + + src/config-utl/extract-webpack-resolve-config.mjs - -extract-webpack-resolve-config.mjs + +extract-webpack-resolve-config.mjs src/cli/index.mjs->src/config-utl/extract-webpack-resolve-config.mjs - - + + src/main/cruise.mjs - -cruise.mjs + +cruise.mjs src/cli/index.mjs->src/main/cruise.mjs - - + + src/utl/object-util.mjs - -object-util.mjs + +object-util.mjs src/cli/index.mjs->src/utl/object-util.mjs - - + + bin/depcruise-fmt.mjs - -depcruise-fmt.mjs + +depcruise-fmt.mjs bin/depcruise-fmt.mjs->src/cli/assert-node-environment-suitable.mjs - - + + src/cli/format.mjs - -format.mjs + +format.mjs bin/depcruise-fmt.mjs->src/cli/format.mjs - - + + src/cli/format.mjs->src/cli/normalize-cli-options.mjs - - + + src/cli/format.mjs->src/cli/utl/assert-file-existence.mjs - - + + src/cli/format.mjs->src/cli/utl/io.mjs - - + + src/main/format.mjs - -format.mjs + +format.mjs src/cli/format.mjs->src/main/format.mjs - - + + bin/dependency-cruise.mjs - -dependency-cruise.mjs + +dependency-cruise.mjs bin/dependency-cruise.mjs->src/cli/assert-node-environment-suitable.mjs - - + + bin/dependency-cruise.mjs->src/cli/index.mjs - - + + bin/wrap-stream-in-html.mjs - -wrap-stream-in-html.mjs + +wrap-stream-in-html.mjs @@ -505,41 +505,41 @@ src/cli/tools/wrap-stream-in-html.mjs - -wrap-stream-in-html.mjs + +wrap-stream-in-html.mjs bin/wrap-stream-in-html.mjs->src/cli/tools/wrap-stream-in-html.mjs - - + + src/report/dot-webpage - - - - -dot-webpage + + + + +dot-webpage - + src/cli/tools/wrap-stream-in-html.mjs->src/report/dot-webpage - - + + src/cache/cache.mjs - -cache.mjs + +cache.mjs @@ -547,290 +547,290 @@ src/cache/content-strategy.mjs - -content-strategy.mjs + +content-strategy.mjs src/cache/cache.mjs->src/cache/content-strategy.mjs - - + + src/cache/metadata-strategy.mjs - -metadata-strategy.mjs + +metadata-strategy.mjs src/cache/cache.mjs->src/cache/metadata-strategy.mjs - - + + src/cache/options-compatible.mjs - -options-compatible.mjs + +options-compatible.mjs src/cache/cache.mjs->src/cache/options-compatible.mjs - - + + src/extract/transpile/meta.mjs - -meta.mjs + +meta.mjs src/cache/cache.mjs->src/extract/transpile/meta.mjs - - + + src/cache/find-content-changes.mjs - -find-content-changes.mjs + +find-content-changes.mjs src/cache/content-strategy.mjs->src/cache/find-content-changes.mjs - - + + src/cache/helpers.mjs - -helpers.mjs + +helpers.mjs src/cache/content-strategy.mjs->src/cache/helpers.mjs - - + + src/cache/metadata-strategy.mjs->src/cache/helpers.mjs - - + + src/extract/swc/parse.mjs - -parse.mjs + +parse.mjs - + src/extract/transpile/meta.mjs->src/extract/swc/parse.mjs - - + + src/extract/transpile/babel-wrap.mjs - -babel-wrap.mjs + +babel-wrap.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/babel-wrap.mjs - - + + src/extract/transpile/coffeescript-wrap.mjs - -coffeescript-wrap.mjs + +coffeescript-wrap.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/coffeescript-wrap.mjs - - + + src/extract/transpile/javascript-wrap.mjs - -javascript-wrap.mjs + +javascript-wrap.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/javascript-wrap.mjs - - + + src/extract/transpile/livescript-wrap.mjs - -livescript-wrap.mjs + +livescript-wrap.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/livescript-wrap.mjs - - + + src/extract/transpile/svelte-wrap.mjs - -svelte-wrap.mjs + +svelte-wrap.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/svelte-wrap.mjs - - + + src/extract/transpile/typescript-wrap.mjs - -typescript-wrap.mjs + +typescript-wrap.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/typescript-wrap.mjs - - + + src/extract/transpile/vue-template-wrap.cjs - -vue-template-wrap.cjs + +vue-template-wrap.cjs - + src/extract/transpile/meta.mjs->src/extract/transpile/vue-template-wrap.cjs - - + + src/extract/transpile/try-import-available.mjs - -try-import-available.mjs + +try-import-available.mjs - + src/extract/transpile/meta.mjs->src/extract/transpile/try-import-available.mjs - - + + src/cache/find-content-changes.mjs->src/cache/helpers.mjs - - + + src/utl/find-all-files.mjs - -find-all-files.mjs + +find-all-files.mjs src/cache/find-content-changes.mjs->src/utl/find-all-files.mjs - - + + src/graph-utl/match-facade.mjs - -match-facade.mjs + +match-facade.mjs src/cache/helpers.mjs->src/graph-utl/match-facade.mjs - - + + src/utl/path-to-posix.mjs - -path-to-posix.mjs + +path-to-posix.mjs - + src/utl/find-all-files.mjs->src/utl/path-to-posix.mjs - - + + src/cli/defaults.mjs - -defaults.mjs + +defaults.mjs @@ -838,716 +838,734 @@ src/main/index.mjs - -index.mjs + +index.mjs src/cli/format-meta-info.mjs->src/main/index.mjs - - + + - + src/main/index.mjs->src/extract/transpile/meta.mjs - - + + - + src/main/index.mjs->src/main/format.mjs - - + + - + src/main/index.mjs->src/main/cruise.mjs - - + + - + src/cli/normalize-cli-options.mjs->src/cli/defaults.mjs - - + + - + src/cli/normalize-cli-options.mjs->src/utl/object-util.mjs - - + + src/config-utl/extract-depcruise-config/index.mjs - -index.mjs + +index.mjs - + src/cli/normalize-cli-options.mjs->src/config-utl/extract-depcruise-config/index.mjs - - + + src/main/options/assert-validity.mjs - -assert-validity.mjs + +assert-validity.mjs - + src/main/format.mjs->src/main/options/assert-validity.mjs - - + + src/main/options/normalize.mjs - -normalize.mjs + +normalize.mjs - + src/main/format.mjs->src/main/options/normalize.mjs - - + + src/main/report-wrap.mjs - -report-wrap.mjs + +report-wrap.mjs - + src/main/format.mjs->src/main/report-wrap.mjs - - + + src/schema/cruise-result.schema.mjs - -cruise-result.schema.mjs + +cruise-result.schema.mjs - + src/main/format.mjs->src/schema/cruise-result.schema.mjs - - + + - + src/cli/init-config/index.mjs->src/cli/defaults.mjs - - + + src/cli/init-config/build-config.mjs - -build-config.mjs + +build-config.mjs - + src/cli/init-config/index.mjs->src/cli/init-config/build-config.mjs - - + + + + + +src/cli/init-config/types.d.ts + + +types.d.ts + + + + + +src/cli/init-config/index.mjs->src/cli/init-config/types.d.ts + + - + src/cli/init-config/environment-helpers.mjs - - -environment-helpers.mjs + + +environment-helpers.mjs - + src/cli/init-config/index.mjs->src/cli/init-config/environment-helpers.mjs - - + + - + src/cli/init-config/get-user-input.mjs - - -get-user-input.mjs + + +get-user-input.mjs - + src/cli/init-config/index.mjs->src/cli/init-config/get-user-input.mjs - - + + - + src/cli/init-config/normalize-init-options.mjs - - -normalize-init-options.mjs + + +normalize-init-options.mjs - + src/cli/init-config/index.mjs->src/cli/init-config/normalize-init-options.mjs - - + + - + src/cli/init-config/write-config.mjs - - -write-config.mjs + + +write-config.mjs - + src/cli/init-config/index.mjs->src/cli/init-config/write-config.mjs - - + + - + src/cli/init-config/write-run-scripts-to-manifest.mjs - - -write-run-scripts-to-manifest.mjs + + +write-run-scripts-to-manifest.mjs - + src/cli/init-config/index.mjs->src/cli/init-config/write-run-scripts-to-manifest.mjs - - + + src/cli/listeners/performance-log/handlers.mjs - -handlers.mjs + +handlers.mjs - + src/cli/listeners/performance-log/index.mjs->src/cli/listeners/performance-log/handlers.mjs - - + + src/config-utl/make-absolute.mjs - -make-absolute.mjs + +make-absolute.mjs - + src/config-utl/extract-babel-config.mjs->src/config-utl/make-absolute.mjs - - + + src/utl/try-import.mjs - -try-import.mjs + +try-import.mjs - + src/config-utl/extract-babel-config.mjs->src/utl/try-import.mjs - - + + - + src/config-utl/extract-known-violations.mjs->src/config-utl/make-absolute.mjs - - + + - + src/config-utl/extract-ts-config.mjs->src/utl/try-import.mjs - - + + - + src/config-utl/extract-webpack-resolve-config.mjs->src/config-utl/make-absolute.mjs - - + + - + src/main/cruise.mjs->src/cache/cache.mjs - - + + src/main/resolve-options/normalize.mjs - -normalize.mjs + +normalize.mjs - + src/main/cruise.mjs->src/main/resolve-options/normalize.mjs - - + + src/enrich/index.mjs - -index.mjs + +index.mjs - + src/main/cruise.mjs->src/enrich/index.mjs - - + + src/extract/index.mjs - -index.mjs + +index.mjs - + src/main/cruise.mjs->src/extract/index.mjs - - + + src/main/files-and-dirs/normalize.mjs - -normalize.mjs + +normalize.mjs - + src/main/cruise.mjs->src/main/files-and-dirs/normalize.mjs - - + + - + src/main/cruise.mjs->src/main/options/assert-validity.mjs - - + + - + src/main/cruise.mjs->src/main/options/normalize.mjs - - + + - + src/main/cruise.mjs->src/main/report-wrap.mjs - - + + src/main/rule-set/assert-validity.mjs - -assert-validity.mjs + +assert-validity.mjs - + src/main/cruise.mjs->src/main/rule-set/assert-validity.mjs - - + + src/main/rule-set/normalize.mjs - -normalize.mjs + +normalize.mjs - + src/main/cruise.mjs->src/main/rule-set/normalize.mjs - - + + src/cli/init-config/config-template.mjs - -config-template.mjs + +config-template.mjs src/cli/init-config/build-config.mjs->src/cli/init-config/config-template.mjs - - + + + + + +src/cli/init-config/build-config.mjs->src/cli/init-config/types.d.ts + + - + src/cli/init-config/utl.mjs - - -utl.mjs + + +utl.mjs - + src/cli/init-config/build-config.mjs->src/cli/init-config/utl.mjs - - + + - + src/cli/init-config/environment-helpers.mjs->src/cli/defaults.mjs - - + + - + src/cli/init-config/find-extensions.mjs - + find-extensions.mjs - + src/cli/init-config/find-extensions.mjs->src/extract/transpile/meta.mjs - - + + - + src/cli/init-config/find-extensions.mjs->src/utl/find-all-files.mjs - - + + - + src/utl/get-extension.mjs - - -get-extension.mjs + + +get-extension.mjs - + src/cli/init-config/find-extensions.mjs->src/utl/get-extension.mjs - - + + - + src/cli/init-config/get-user-input.mjs->src/cli/init-config/environment-helpers.mjs - - + + - + src/cli/init-config/validators.mjs - - -validators.mjs + + +validators.mjs - + src/cli/init-config/get-user-input.mjs->src/cli/init-config/validators.mjs - - + + - + src/cli/init-config/validators.mjs->src/cli/init-config/environment-helpers.mjs - - + + + + + +src/cli/init-config/normalize-init-options.mjs->src/cli/init-config/types.d.ts + + - + src/cli/init-config/normalize-init-options.mjs->src/cli/init-config/environment-helpers.mjs - - + + - + src/cli/init-config/normalize-init-options.mjs->src/cli/init-config/find-extensions.mjs - - + + - + src/cli/init-config/write-config.mjs->src/cli/init-config/environment-helpers.mjs - - + + - + src/cli/init-config/write-run-scripts-to-manifest.mjs->src/cli/defaults.mjs - - + + - + src/cli/init-config/write-run-scripts-to-manifest.mjs->src/cli/init-config/utl.mjs - - + + - + src/cli/init-config/write-run-scripts-to-manifest.mjs->src/cli/init-config/environment-helpers.mjs - - - - - -src/cli/init-config/types.d.ts - - -types.d.ts - - + + src/cli/listeners/performance-log/format-helpers.mjs - -format-helpers.mjs + +format-helpers.mjs - + src/cli/listeners/performance-log/handlers.mjs->src/cli/listeners/performance-log/format-helpers.mjs - - + + src/config-utl/extract-depcruise-config/merge-configs.mjs - -merge-configs.mjs + +merge-configs.mjs - + src/config-utl/extract-depcruise-config/index.mjs->src/config-utl/extract-depcruise-config/merge-configs.mjs - - + + src/config-utl/extract-depcruise-config/read-config.mjs - -read-config.mjs + +read-config.mjs - + src/config-utl/extract-depcruise-config/index.mjs->src/config-utl/extract-depcruise-config/read-config.mjs - - + + src/extract/resolve/resolve.mjs - -resolve.mjs + +resolve.mjs - + src/config-utl/extract-depcruise-config/index.mjs->src/extract/resolve/resolve.mjs - - + + - + src/config-utl/extract-depcruise-config/index.mjs->src/main/resolve-options/normalize.mjs - - + + src/report/dot - - - - -dot + + + + +dot - + src/report/dot-webpage->src/report/dot - - + + src/utl/extract-root-module-name.cjs - -extract-root-module-name.cjs + +extract-root-module-name.cjs - + src/utl/try-import.mjs->src/utl/extract-root-module-name.cjs - - + + src/utl/array-util.mjs - -array-util.mjs + +array-util.mjs - + src/config-utl/extract-depcruise-config/merge-configs.mjs->src/utl/array-util.mjs - - + + src/extract/helpers.mjs - -helpers.mjs + +helpers.mjs - + src/extract/resolve/resolve.mjs->src/extract/helpers.mjs - - + + - + src/extract/resolve/resolve.mjs->src/utl/path-to-posix.mjs - - + + - + src/main/resolve-options/normalize.mjs->src/extract/transpile/meta.mjs - - + + src/graph-utl/rule-set.mjs - -rule-set.mjs + +rule-set.mjs - + src/main/resolve-options/normalize.mjs->src/graph-utl/rule-set.mjs - - + + src/config-utl/extract-depcruise-options.mjs - -extract-depcruise-options.mjs + +extract-depcruise-options.mjs - + src/config-utl/extract-depcruise-options.mjs->src/config-utl/extract-depcruise-config/index.mjs - - + + src/enrich/add-validations.mjs - -add-validations.mjs + +add-validations.mjs @@ -1555,83 +1573,98 @@ src/validate/index.mjs - -index.mjs + +index.mjs - + src/enrich/add-validations.mjs->src/validate/index.mjs - - + + + + + +src/validate/index.d.ts + + +index.d.ts + + + + + +src/validate/index.mjs->src/validate/index.d.ts + + src/validate/match-dependency-rule.mjs - -match-dependency-rule.mjs + +match-dependency-rule.mjs - + src/validate/index.mjs->src/validate/match-dependency-rule.mjs - - + + src/validate/match-folder-dependency-rule.mjs - -match-folder-dependency-rule.mjs + +match-folder-dependency-rule.mjs - + src/validate/index.mjs->src/validate/match-folder-dependency-rule.mjs - - + + src/validate/match-module-rule.mjs - -match-module-rule.mjs + +match-module-rule.mjs - + src/validate/index.mjs->src/validate/match-module-rule.mjs - - + + src/validate/violates-required-rule.mjs - -violates-required-rule.mjs + +violates-required-rule.mjs - + src/validate/index.mjs->src/validate/violates-required-rule.mjs - - + + src/enrich/derive/circular.mjs - -circular.mjs + +circular.mjs @@ -1639,11 +1672,11 @@ src/enrich/derive/dependents - - - - -dependents + + + + +dependents @@ -1651,428 +1684,428 @@ src/enrich/derive/module-utl.mjs - -module-utl.mjs + +module-utl.mjs - + src/enrich/derive/dependents->src/enrich/derive/module-utl.mjs - - + + src/enrich/derive/folders - - - - -folders + + + + +folders - + src/enrich/derive/folders->src/utl/array-util.mjs - - + + - + src/enrich/derive/folders->src/validate/index.mjs - - + + - + src/enrich/derive/folders->src/enrich/derive/circular.mjs - - + + - + src/enrich/derive/folders->src/enrich/derive/module-utl.mjs - - + + src/graph-utl/indexed-module-graph.mjs - -indexed-module-graph.mjs + +indexed-module-graph.mjs - + src/enrich/derive/folders->src/graph-utl/indexed-module-graph.mjs - - + + src/enrich/derive/metrics - - - - -metrics + + + + +metrics - + src/enrich/derive/metrics->src/enrich/derive/module-utl.mjs - - + + - + src/enrich/derive/metrics->src/graph-utl/indexed-module-graph.mjs - - + + src/enrich/derive/orphan - - - - -orphan + + + + +orphan - + src/enrich/derive/orphan->src/enrich/derive/module-utl.mjs - - + + src/enrich/derive/reachable.mjs - -reachable.mjs + +reachable.mjs - + src/enrich/derive/reachable.mjs->src/graph-utl/indexed-module-graph.mjs - - + + src/utl/regex-util.mjs - -regex-util.mjs + +regex-util.mjs - + src/enrich/derive/reachable.mjs->src/utl/regex-util.mjs - - + + src/validate/matchers.mjs - -matchers.mjs + +matchers.mjs - + src/enrich/derive/reachable.mjs->src/validate/matchers.mjs - - + + - + src/validate/matchers.mjs->src/utl/array-util.mjs - - + + - + src/validate/matchers.mjs->src/utl/regex-util.mjs - - + + src/enrich/enrich-modules.mjs - -enrich-modules.mjs + +enrich-modules.mjs - + src/enrich/enrich-modules.mjs->src/enrich/add-validations.mjs - - + + - + src/enrich/enrich-modules.mjs->src/enrich/derive/circular.mjs - - + + - + src/enrich/enrich-modules.mjs->src/enrich/derive/dependents - - + + - + src/enrich/enrich-modules.mjs->src/graph-utl/indexed-module-graph.mjs - - + + - + src/enrich/enrich-modules.mjs->src/enrich/derive/metrics - - + + - + src/enrich/enrich-modules.mjs->src/enrich/derive/orphan - - + + - + src/enrich/enrich-modules.mjs->src/enrich/derive/reachable.mjs - - + + src/enrich/soften-known-violations.mjs - -soften-known-violations.mjs + +soften-known-violations.mjs - + src/enrich/enrich-modules.mjs->src/enrich/soften-known-violations.mjs - - + + src/graph-utl/add-focus.mjs - -add-focus.mjs + +add-focus.mjs - + src/enrich/enrich-modules.mjs->src/graph-utl/add-focus.mjs - - + + src/enrich/summarize/is-same-violation.mjs - -is-same-violation.mjs + +is-same-violation.mjs - + src/enrich/soften-known-violations.mjs->src/enrich/summarize/is-same-violation.mjs - - + + - + src/graph-utl/add-focus.mjs->src/graph-utl/match-facade.mjs - - + + - + src/graph-utl/add-focus.mjs->src/graph-utl/indexed-module-graph.mjs - - + + - + src/enrich/index.mjs->src/enrich/derive/folders - - + + - + src/enrich/index.mjs->src/enrich/enrich-modules.mjs - - + + src/enrich/summarize/index.mjs - -index.mjs + +index.mjs - + src/enrich/index.mjs->src/enrich/summarize/index.mjs - - + + src/enrich/summarize/add-rule-set-used.mjs - -add-rule-set-used.mjs + +add-rule-set-used.mjs - + src/enrich/summarize/index.mjs->src/enrich/summarize/add-rule-set-used.mjs - - + + src/enrich/summarize/get-stats.mjs - -get-stats.mjs + +get-stats.mjs - + src/enrich/summarize/index.mjs->src/enrich/summarize/get-stats.mjs - - + + src/enrich/summarize/summarize-folders.mjs - -summarize-folders.mjs + +summarize-folders.mjs - + src/enrich/summarize/index.mjs->src/enrich/summarize/summarize-folders.mjs - - + + src/enrich/summarize/summarize-modules.mjs - -summarize-modules.mjs + +summarize-modules.mjs - + src/enrich/summarize/index.mjs->src/enrich/summarize/summarize-modules.mjs - - + + src/enrich/summarize/summarize-options.mjs - -summarize-options.mjs + +summarize-options.mjs - + src/enrich/summarize/index.mjs->src/enrich/summarize/summarize-options.mjs - - + + src/graph-utl/compare.mjs - -compare.mjs + +compare.mjs - + src/enrich/summarize/index.mjs->src/graph-utl/compare.mjs - - + + - + src/enrich/summarize/summarize-folders.mjs->src/graph-utl/rule-set.mjs - - + + - + src/enrich/summarize/summarize-modules.mjs->src/utl/array-util.mjs - - + + - + src/enrich/summarize/summarize-modules.mjs->src/enrich/summarize/is-same-violation.mjs - - + + - + src/enrich/summarize/summarize-modules.mjs->src/graph-utl/compare.mjs - - + + - + src/enrich/summarize/summarize-modules.mjs->src/graph-utl/rule-set.mjs - - + + src/extract/acorn/estree-helpers.mjs - -estree-helpers.mjs + +estree-helpers.mjs @@ -2080,59 +2113,59 @@ src/extract/acorn/extract-amd-deps.mjs - -extract-amd-deps.mjs + +extract-amd-deps.mjs - + src/extract/acorn/extract-amd-deps.mjs->src/extract/acorn/estree-helpers.mjs - - + + src/extract/acorn/extract-cjs-deps.mjs - -extract-cjs-deps.mjs + +extract-cjs-deps.mjs - + src/extract/acorn/extract-amd-deps.mjs->src/extract/acorn/extract-cjs-deps.mjs - - + + - + src/extract/acorn/extract-cjs-deps.mjs->src/extract/acorn/estree-helpers.mjs - - + + src/extract/acorn/extract-es6-deps.mjs - -extract-es6-deps.mjs + +extract-es6-deps.mjs - + src/extract/acorn/extract-es6-deps.mjs->src/extract/acorn/estree-helpers.mjs - - + + src/extract/acorn/extract-stats.mjs - -extract-stats.mjs + +extract-stats.mjs @@ -2140,848 +2173,848 @@ src/extract/acorn/extract.mjs - -extract.mjs + +extract.mjs - + src/extract/acorn/extract.mjs->src/extract/acorn/extract-amd-deps.mjs - - + + - + src/extract/acorn/extract.mjs->src/extract/acorn/extract-cjs-deps.mjs - - + + - + src/extract/acorn/extract.mjs->src/extract/acorn/extract-es6-deps.mjs - - + + - + src/extract/acorn/extract.mjs->src/extract/acorn/extract-stats.mjs - - + + src/extract/acorn/parse.mjs - -parse.mjs + +parse.mjs - + src/extract/acorn/extract.mjs->src/extract/acorn/parse.mjs - - + + - + src/extract/acorn/parse.mjs->src/utl/get-extension.mjs - - + + src/extract/transpile/index.mjs - -index.mjs + +index.mjs - + src/extract/acorn/parse.mjs->src/extract/transpile/index.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/babel-wrap.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/coffeescript-wrap.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/javascript-wrap.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/livescript-wrap.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/svelte-wrap.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/typescript-wrap.mjs - - + + - + src/extract/transpile/index.mjs->src/extract/transpile/vue-template-wrap.cjs - - + + src/extract/clear-caches.mjs - -clear-caches.mjs + +clear-caches.mjs - + src/extract/clear-caches.mjs->src/extract/resolve/resolve.mjs - - + + - + src/extract/clear-caches.mjs->src/extract/acorn/parse.mjs - - + + src/extract/resolve/external-module-helpers.mjs - -external-module-helpers.mjs + +external-module-helpers.mjs - + src/extract/clear-caches.mjs->src/extract/resolve/external-module-helpers.mjs - - + + src/extract/resolve/get-manifest.mjs - -get-manifest.mjs + +get-manifest.mjs - + src/extract/clear-caches.mjs->src/extract/resolve/get-manifest.mjs - - + + src/extract/resolve/resolve-amd.mjs - -resolve-amd.mjs + +resolve-amd.mjs - + src/extract/clear-caches.mjs->src/extract/resolve/resolve-amd.mjs - - + + - + src/extract/clear-caches.mjs->src/extract/swc/parse.mjs - - + + src/extract/tsc/parse.mjs - -parse.mjs + +parse.mjs - + src/extract/clear-caches.mjs->src/extract/tsc/parse.mjs - - + + - + src/extract/resolve/external-module-helpers.mjs->src/extract/resolve/resolve.mjs - - + + src/extract/resolve/module-classifiers.mjs - -module-classifiers.mjs + +module-classifiers.mjs - + src/extract/resolve/external-module-helpers.mjs->src/extract/resolve/module-classifiers.mjs - - + + src/extract/resolve/merge-manifests.mjs - -merge-manifests.mjs + +merge-manifests.mjs - + src/extract/resolve/get-manifest.mjs->src/extract/resolve/merge-manifests.mjs - - + + - + src/extract/resolve/resolve-amd.mjs->src/utl/path-to-posix.mjs - - + + src/extract/resolve/is-built-in.mjs - -is-built-in.mjs + +is-built-in.mjs - + src/extract/resolve/resolve-amd.mjs->src/extract/resolve/is-built-in.mjs - - + + - + src/extract/swc/parse.mjs->src/utl/try-import.mjs - - + + - + src/extract/tsc/parse.mjs->src/utl/get-extension.mjs - - + + - + src/extract/tsc/parse.mjs->src/utl/try-import.mjs - - + + - + src/extract/tsc/parse.mjs->src/extract/transpile/index.mjs - - + + src/extract/extract-dependencies.mjs - -extract-dependencies.mjs + +extract-dependencies.mjs - + src/extract/extract-dependencies.mjs->src/utl/array-util.mjs - - + + - + src/extract/extract-dependencies.mjs->src/extract/acorn/extract.mjs - - + + - + src/extract/extract-dependencies.mjs->src/extract/helpers.mjs - - + + src/extract/resolve/index.mjs - -index.mjs + +index.mjs - + src/extract/extract-dependencies.mjs->src/extract/resolve/index.mjs - - + + src/extract/swc/extract.mjs - -extract.mjs + +extract.mjs - + src/extract/extract-dependencies.mjs->src/extract/swc/extract.mjs - - + + src/extract/tsc/extract.mjs - -extract.mjs + +extract.mjs - + src/extract/extract-dependencies.mjs->src/extract/tsc/extract.mjs - - + + - + src/extract/resolve/index.mjs->src/extract/resolve/get-manifest.mjs - - + + - + src/extract/resolve/index.mjs->src/extract/resolve/resolve-amd.mjs - - + + - + src/extract/resolve/index.mjs->src/utl/path-to-posix.mjs - - + + src/extract/resolve/determine-dependency-types.mjs - -determine-dependency-types.mjs + +determine-dependency-types.mjs - + src/extract/resolve/index.mjs->src/extract/resolve/determine-dependency-types.mjs - - + + - + src/extract/resolve/index.mjs->src/extract/resolve/module-classifiers.mjs - - + + src/extract/resolve/resolve-cjs.mjs - -resolve-cjs.mjs + +resolve-cjs.mjs - + src/extract/resolve/index.mjs->src/extract/resolve/resolve-cjs.mjs - - + + src/extract/resolve/resolve-helpers.mjs - -resolve-helpers.mjs + +resolve-helpers.mjs - + src/extract/resolve/index.mjs->src/extract/resolve/resolve-helpers.mjs - - + + - + src/extract/swc/extract.mjs->src/extract/swc/parse.mjs - - + + - + src/extract/swc/extract.mjs->src/extract/helpers.mjs - - + + src/extract/swc/extract-swc-deps.mjs - -extract-swc-deps.mjs + +extract-swc-deps.mjs - + src/extract/swc/extract.mjs->src/extract/swc/extract-swc-deps.mjs - - + + - + src/extract/tsc/extract.mjs->src/extract/tsc/parse.mjs - - + + - + src/extract/tsc/extract.mjs->src/extract/helpers.mjs - - + + src/extract/tsc/extract-stats.mjs - -extract-stats.mjs + +extract-stats.mjs - + src/extract/tsc/extract.mjs->src/extract/tsc/extract-stats.mjs - - + + src/extract/tsc/extract-typescript-deps.mjs - -extract-typescript-deps.mjs + +extract-typescript-deps.mjs - + src/extract/tsc/extract.mjs->src/extract/tsc/extract-typescript-deps.mjs - - + + src/extract/extract-stats.mjs - -extract-stats.mjs + +extract-stats.mjs - + src/extract/extract-stats.mjs->src/extract/acorn/extract.mjs - - + + - + src/extract/extract-stats.mjs->src/extract/tsc/extract.mjs - - + + src/extract/gather-initial-sources.mjs - -gather-initial-sources.mjs + +gather-initial-sources.mjs - + src/extract/gather-initial-sources.mjs->src/extract/transpile/meta.mjs - - + + - + src/extract/gather-initial-sources.mjs->src/graph-utl/match-facade.mjs - - + + - + src/extract/gather-initial-sources.mjs->src/utl/get-extension.mjs - - + + - + src/extract/gather-initial-sources.mjs->src/utl/path-to-posix.mjs - - + + - + src/extract/index.mjs->src/extract/clear-caches.mjs - - + + - + src/extract/index.mjs->src/extract/extract-dependencies.mjs - - + + - + src/extract/index.mjs->src/extract/extract-stats.mjs - - + + - + src/extract/index.mjs->src/extract/gather-initial-sources.mjs - - + + - + src/extract/resolve/determine-dependency-types.mjs->src/extract/resolve/external-module-helpers.mjs - - + + - + src/extract/resolve/determine-dependency-types.mjs->src/extract/resolve/module-classifiers.mjs - - + + - + src/extract/resolve/module-classifiers.mjs->src/utl/get-extension.mjs - - + + - + src/extract/resolve/merge-manifests.mjs->src/utl/array-util.mjs - - + + - + src/extract/resolve/resolve-cjs.mjs->src/extract/resolve/resolve.mjs - - + + - + src/extract/resolve/resolve-cjs.mjs->src/utl/path-to-posix.mjs - - + + - + src/extract/resolve/resolve-cjs.mjs->src/extract/resolve/module-classifiers.mjs - - + + - + src/extract/resolve/resolve-cjs.mjs->src/extract/resolve/is-built-in.mjs - - + + - + src/extract/resolve/resolve-helpers.mjs->src/extract/resolve/external-module-helpers.mjs - - + + - + src/extract/resolve/resolve-helpers.mjs->src/extract/resolve/module-classifiers.mjs - - + + src/extract/swc/dependency-visitor.mjs - -dependency-visitor.mjs + +dependency-visitor.mjs - + src/extract/swc/dependency-visitor.mjs->src/utl/try-import.mjs - - + + - + src/extract/swc/extract-swc-deps.mjs->src/extract/swc/dependency-visitor.mjs - - + + - + src/extract/transpile/babel-wrap.mjs->src/utl/try-import.mjs - - + + - + src/extract/transpile/coffeescript-wrap.mjs->src/utl/try-import.mjs - - + + - + src/extract/transpile/livescript-wrap.mjs->src/utl/try-import.mjs - - + + - + src/extract/transpile/svelte-wrap.mjs->src/utl/try-import.mjs - - + + src/extract/transpile/svelte-preprocess.mjs - -svelte-preprocess.mjs + +svelte-preprocess.mjs - + src/extract/transpile/svelte-wrap.mjs->src/extract/transpile/svelte-preprocess.mjs - - + + - + src/extract/transpile/typescript-wrap.mjs->src/utl/try-import.mjs - - + + src/utl/try-require.cjs - -try-require.cjs + +try-require.cjs - + src/extract/transpile/vue-template-wrap.cjs->src/utl/try-require.cjs - - + + src/extract/transpile/meta.d.ts - -meta.d.ts + +meta.d.ts - + src/utl/try-require.cjs->src/utl/extract-root-module-name.cjs - - + + - + src/extract/tsc/extract-typescript-deps.mjs->src/utl/try-import.mjs - - + + src/graph-utl/consolidate-module-dependencies.mjs - -consolidate-module-dependencies.mjs + +consolidate-module-dependencies.mjs - + src/graph-utl/consolidate-module-dependencies.mjs->src/utl/array-util.mjs - - + + - + src/graph-utl/consolidate-module-dependencies.mjs->src/graph-utl/compare.mjs - - + + src/graph-utl/consolidate-modules.mjs - -consolidate-modules.mjs + +consolidate-modules.mjs - + src/graph-utl/consolidate-modules.mjs->src/utl/array-util.mjs - - + + - + src/graph-utl/consolidate-modules.mjs->src/graph-utl/compare.mjs - - + + src/graph-utl/consolidate-to-folder.mjs - -consolidate-to-folder.mjs + +consolidate-to-folder.mjs - + src/graph-utl/consolidate-to-folder.mjs->src/graph-utl/consolidate-module-dependencies.mjs - - + + - + src/graph-utl/consolidate-to-folder.mjs->src/graph-utl/consolidate-modules.mjs - - + + src/graph-utl/consolidate-to-pattern.mjs - -consolidate-to-pattern.mjs + +consolidate-to-pattern.mjs - + src/graph-utl/consolidate-to-pattern.mjs->src/graph-utl/consolidate-module-dependencies.mjs - - + + - + src/graph-utl/consolidate-to-pattern.mjs->src/graph-utl/consolidate-modules.mjs - - + + src/graph-utl/filter-bank.mjs - -filter-bank.mjs + +filter-bank.mjs - + src/graph-utl/filter-bank.mjs->src/graph-utl/match-facade.mjs - - + + - + src/graph-utl/filter-bank.mjs->src/graph-utl/indexed-module-graph.mjs - - + + - + src/graph-utl/filter-bank.mjs->src/graph-utl/add-focus.mjs - - + + src/graph-utl/strip-self-transitions.mjs - -strip-self-transitions.mjs + +strip-self-transitions.mjs @@ -2989,140 +3022,140 @@ src/report/index.mjs - -index.mjs + +index.mjs - + src/main/options/assert-validity.mjs->src/report/index.mjs - - + + - + src/main/options/normalize.mjs->src/utl/array-util.mjs - - + + src/main/helpers.mjs - -helpers.mjs + +helpers.mjs - + src/main/options/normalize.mjs->src/main/helpers.mjs - - + + src/main/options/defaults.mjs - -defaults.mjs + +defaults.mjs - + src/main/options/normalize.mjs->src/main/options/defaults.mjs - - + + - + src/main/report-wrap.mjs->src/enrich/summarize/index.mjs - - + + - + src/main/report-wrap.mjs->src/graph-utl/compare.mjs - - + + - + src/main/report-wrap.mjs->src/graph-utl/consolidate-to-pattern.mjs - - + + - + src/main/report-wrap.mjs->src/graph-utl/filter-bank.mjs - - + + - + src/main/report-wrap.mjs->src/graph-utl/strip-self-transitions.mjs - - + + - + src/main/report-wrap.mjs->src/report/index.mjs - - + + - + src/main/rule-set/assert-validity.mjs->src/utl/object-util.mjs - - + + - + src/main/rule-set/assert-validity.mjs->src/main/options/assert-validity.mjs - - + + - + src/main/rule-set/assert-validity.mjs->src/main/helpers.mjs - - + + src/schema/configuration.schema.mjs - -configuration.schema.mjs + +configuration.schema.mjs - + src/main/rule-set/assert-validity.mjs->src/schema/configuration.schema.mjs - - + + - + src/main/rule-set/normalize.mjs->src/main/helpers.mjs - - + + - + src/main/helpers.mjs->src/utl/object-util.mjs - - + + src/main/index.d.ts - -index.d.ts + +index.d.ts @@ -3130,26 +3163,26 @@ src/report/plugins.mjs - -plugins.mjs + +plugins.mjs - + src/report/index.mjs->src/report/plugins.mjs - - + + src/report/anon - - - - -anon + + + + +anon @@ -3157,8 +3190,8 @@ src/report/azure-devops.mjs - -azure-devops.mjs + +azure-devops.mjs @@ -3166,26 +3199,26 @@ src/report/utl - - - - -utl + + + + +utl - + src/report/azure-devops.mjs->src/report/utl - - + + src/report/baseline.mjs - -baseline.mjs + +baseline.mjs @@ -3193,98 +3226,98 @@ src/report/csv.mjs - -csv.mjs + +csv.mjs - + src/report/csv.mjs->src/report/utl - - + + src/report/d2.mjs - -d2.mjs + +d2.mjs - + src/report/d2.mjs->src/report/utl - - + + - + src/report/dot->src/utl/object-util.mjs - - + + - + src/report/dot->src/graph-utl/compare.mjs - - + + - + src/report/dot->src/graph-utl/consolidate-to-folder.mjs - - + + - + src/report/dot->src/graph-utl/consolidate-to-pattern.mjs - - + + - + src/report/dot->src/graph-utl/filter-bank.mjs - - + + - + src/report/dot->src/graph-utl/strip-self-transitions.mjs - - + + - + src/report/dot->src/report/utl - - + + src/report/error-html - - - - -error-html + + + + +error-html - + src/report/error-html->src/report/utl - - + + src/report/error-long.mjs - -error-long.mjs + +error-long.mjs @@ -3292,68 +3325,68 @@ src/report/error.mjs - -error.mjs + +error.mjs - + src/report/error-long.mjs->src/report/error.mjs - - + + - + src/report/error.mjs->src/graph-utl/rule-set.mjs - - + + - + src/report/error.mjs->src/report/utl - - + + src/utl/wrap-and-indent.mjs - -wrap-and-indent.mjs + +wrap-and-indent.mjs - + src/report/error.mjs->src/utl/wrap-and-indent.mjs - - + + src/report/html - - - - -html + + + + +html - + src/report/html->src/report/utl - - + + src/report/identity.mjs - -identity.mjs + +identity.mjs @@ -3361,8 +3394,8 @@ src/report/json.mjs - -json.mjs + +json.mjs @@ -3370,23 +3403,23 @@ src/report/markdown.mjs - -markdown.mjs + +markdown.mjs - + src/report/markdown.mjs->src/report/error-html - - + + src/report/mermaid.mjs - -mermaid.mjs + +mermaid.mjs @@ -3394,23 +3427,23 @@ src/report/metrics.mjs - -metrics.mjs + +metrics.mjs - + src/report/metrics.mjs->src/report/utl - - + + src/report/null.mjs - -null.mjs + +null.mjs @@ -3418,23 +3451,23 @@ src/report/teamcity.mjs - -teamcity.mjs + +teamcity.mjs - + src/report/teamcity.mjs->src/report/utl - - + + src/report/text.mjs - -text.mjs + +text.mjs @@ -3442,9 +3475,9 @@ src/schema/baseline-violations.schema.json - - -baseline-violations.schema.json + + +baseline-violations.schema.json @@ -3452,8 +3485,8 @@ src/schema/baseline-violations.schema.mjs - -baseline-violations.schema.mjs + +baseline-violations.schema.mjs @@ -3461,9 +3494,9 @@ src/schema/configuration.schema.json - - -configuration.schema.json + + +configuration.schema.json @@ -3471,110 +3504,101 @@ src/schema/cruise-result.schema.json - - -cruise-result.schema.json - - - - - -src/validate/index.d.ts - - -index.d.ts + + +cruise-result.schema.json - + src/validate/match-dependency-rule.mjs->src/utl/regex-util.mjs - - + + - + src/validate/match-dependency-rule.mjs->src/validate/matchers.mjs - - + + src/validate/rule-classifiers.mjs - -rule-classifiers.mjs + +rule-classifiers.mjs - + src/validate/match-dependency-rule.mjs->src/validate/rule-classifiers.mjs - - + + - + src/validate/match-folder-dependency-rule.mjs->src/utl/regex-util.mjs - - + + - + src/validate/match-folder-dependency-rule.mjs->src/validate/matchers.mjs - - + + - + src/validate/match-folder-dependency-rule.mjs->src/validate/rule-classifiers.mjs - - + + - + src/validate/match-module-rule.mjs->src/validate/rule-classifiers.mjs - - + + src/validate/match-module-rule-helpers.mjs - -match-module-rule-helpers.mjs + +match-module-rule-helpers.mjs - + src/validate/match-module-rule.mjs->src/validate/match-module-rule-helpers.mjs - - + + - + src/validate/violates-required-rule.mjs->src/utl/regex-util.mjs - - + + - + src/validate/violates-required-rule.mjs->src/validate/matchers.mjs - - + + - + src/validate/match-module-rule-helpers.mjs->src/utl/regex-util.mjs - - + + - + src/validate/match-module-rule-helpers.mjs->src/validate/matchers.mjs - - + + diff --git a/docs/dependency-cruiser-archi-graph.html b/docs/dependency-cruiser-archi-graph.html index d6bb8452b..054012f87 100644 --- a/docs/dependency-cruiser-archi-graph.html +++ b/docs/dependency-cruiser-archi-graph.html @@ -122,7 +122,7 @@ -