@eagleoutice/flowr 2.16.2 → 2.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -15
- package/abstract-interpretation/data-frame/arguments.js +4 -3
- package/abstract-interpretation/data-frame/dataframe-semantics.js +1 -2
- package/abstract-interpretation/data-frame/semantics.d.ts +2 -2
- package/abstract-interpretation/data-frame/semantics.js +2 -6
- package/benchmark/slicer.js +1 -3
- package/benchmark/summarizer/first-phase/input.js +1 -12
- package/benchmark/summarizer/second-phase/process.d.ts +7 -0
- package/benchmark/summarizer/second-phase/process.js +15 -12
- package/cli/repl/commands/repl-cfg.js +18 -49
- package/cli/repl/commands/repl-clipboard.d.ts +2 -0
- package/cli/repl/commands/repl-clipboard.js +5 -0
- package/cli/repl/commands/repl-commands.js +2 -2
- package/cli/repl/commands/repl-dataflow.js +21 -55
- package/cli/repl/commands/repl-normalize.js +15 -28
- package/cli/repl/commands/repl-parse.js +2 -2
- package/cli/repl/commands/repl-query.js +10 -10
- package/cli/repl/commands/repl-signature.js +4 -4
- package/cli/repl/server/connection.d.ts +1 -0
- package/cli/repl/server/connection.js +8 -30
- package/cli/repl/server/messages/message-analysis.js +1 -1
- package/config.d.ts +6 -0
- package/config.js +7 -4
- package/control-flow/cfg-dead-code.js +5 -14
- package/control-flow/cfg-to-basic-blocks.js +1 -6
- package/control-flow/control-flow-graph.d.ts +2 -16
- package/control-flow/control-flow-graph.js +8 -66
- package/control-flow/diff-cfg.js +10 -23
- package/control-flow/semantic-cfg-guided-visitor.js +5 -11
- package/control-flow/simple-visitor.js +2 -2
- package/core/steps/pipeline/default-pipelines.d.ts +138 -138
- package/data/r-base-packages.generated.js +0 -1
- package/data/r-base-primitives.generated.js +0 -1
- package/data/r-s3-generics.generated.d.ts +5 -0
- package/data/r-s3-generics.generated.js +103 -0
- package/dataflow/cluster.js +2 -1
- package/dataflow/environments/append.d.ts +1 -0
- package/dataflow/environments/built-in-props.d.ts +10 -0
- package/dataflow/environments/built-in-props.js +25 -1
- package/dataflow/environments/built-in.js +15 -9
- package/dataflow/environments/clone.d.ts +1 -0
- package/dataflow/environments/clone.js +1 -0
- package/dataflow/environments/default-builtin-config.d.ts +188 -14
- package/dataflow/environments/default-builtin-config.js +125 -65
- package/dataflow/environments/define.d.ts +1 -0
- package/dataflow/environments/define.js +1 -0
- package/dataflow/environments/environment.d.ts +27 -0
- package/dataflow/environments/environment.js +37 -16
- package/dataflow/environments/frame-memory.d.ts +9 -1
- package/dataflow/environments/frame-memory.js +12 -1
- package/dataflow/environments/identifier.d.ts +0 -2
- package/dataflow/environments/identifier.js +5 -7
- package/dataflow/environments/overwrite.js +1 -0
- package/dataflow/environments/query-fn-props.js +4 -4
- package/dataflow/environments/scoping.d.ts +3 -0
- package/dataflow/environments/scoping.js +3 -0
- package/dataflow/eval/resolve/alias-tracking.js +3 -3
- package/dataflow/eval/resolve/resolve-argument.d.ts +7 -3
- package/dataflow/eval/resolve/resolve-argument.js +16 -11
- package/dataflow/eval/resolve/resolve-numbers.js +5 -2
- package/dataflow/eval/resolve/resolve-strings.d.ts +1 -1
- package/dataflow/eval/resolve/resolve-working-directory.js +2 -2
- package/dataflow/eval/resolve/resolve.js +3 -8
- package/dataflow/eval/values/intervals/interval-constants.js +1 -6
- package/dataflow/eval/values/r-value.js +1 -6
- package/dataflow/extractor.js +17 -17
- package/dataflow/fn/argument-roles.js +15 -15
- package/dataflow/fn/class-declaration.js +7 -7
- package/dataflow/fn/frame-reflection.d.ts +1 -23
- package/dataflow/fn/frame-reflection.js +8 -95
- package/dataflow/fn/function-props.d.ts +0 -3
- package/dataflow/fn/function-props.js +9 -11
- package/dataflow/fn/function-semantics.d.ts +1 -0
- package/dataflow/fn/strict-function.js +15 -14
- package/dataflow/graph/call-graph.d.ts +8 -0
- package/dataflow/graph/call-graph.js +40 -25
- package/dataflow/graph/dataflowgraph-builder.d.ts +0 -60
- package/dataflow/graph/dataflowgraph-builder.js +15 -135
- package/dataflow/graph/df-helper.d.ts +56 -4
- package/dataflow/graph/df-helper.js +116 -1
- package/dataflow/graph/diff-dataflow-graph.js +13 -15
- package/dataflow/graph/graph-helper.d.ts +20 -0
- package/dataflow/graph/graph-helper.js +18 -0
- package/dataflow/graph/graph.js +3 -8
- package/dataflow/graph/match-args.d.ts +1 -1
- package/dataflow/graph/match-args.js +3 -3
- package/dataflow/internal/linker.d.ts +4 -10
- package/dataflow/internal/linker.js +21 -29
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +5 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +39 -22
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +3 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +6 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +6 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +14 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +27 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +6 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +33 -35
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +3 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +6 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +12 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-list.js +3 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +7 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +5 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +3 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +2 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +5 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +6 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +5 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +4 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +7 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +1 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +5 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +4 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +8 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +4 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +3 -3
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +36 -38
- package/dataflow/internal/process/functions/call/common.d.ts +3 -1
- package/dataflow/internal/process/functions/call/common.js +6 -7
- package/dataflow/internal/process/functions/call/deferred.js +8 -8
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +11 -4
- package/dataflow/internal/process/functions/call/known-call-handling.js +11 -7
- package/dataflow/internal/process/functions/call/named-call-handling.js +4 -3
- package/dataflow/internal/process/functions/call/nse.js +4 -4
- package/dataflow/internal/process/functions/call/quoted.js +16 -14
- package/dataflow/internal/process/functions/call/unnamed-call-handling.js +2 -2
- package/dataflow/internal/process/functions/process-parameter.js +2 -2
- package/dataflow/internal/process/process-named-call.js +1 -1
- package/dataflow/origin/dfg-get-origin.js +2 -2
- package/dataflow/origin/dfg-get-symbol-refs.d.ts +1 -0
- package/dataflow/origin/dfg-get-symbol-refs.js +3 -8
- package/documentation/data/faq/wiki-faq-store.js +2 -2
- package/documentation/doc-capabilities.js +2 -1
- package/documentation/doc-util/doc-functions.js +2 -2
- package/documentation/doc-util/doc-query.d.ts +1 -1
- package/documentation/doc-util/doc-query.js +3 -1
- package/documentation/doc-util/doc-repl.js +4 -4
- package/documentation/doc-util/doc-timings.js +3 -2
- package/documentation/doc-util/doc-types.js +2 -2
- package/documentation/wiki-absint.js +2 -1
- package/documentation/wiki-cfg.js +2 -1
- package/documentation/wiki-create-linting-rules.js +2 -2
- package/documentation/wiki-dataflow-graph.js +6 -6
- package/documentation/wiki-interface.js +3 -2
- package/documentation/wiki-linter.d.ts +14 -0
- package/documentation/wiki-linter.js +353 -88
- package/documentation/wiki-mk/doc-maker.js +1 -2
- package/documentation/wiki-query.js +25 -0
- package/documentation/wiki-search.js +2 -1
- package/documentation/wiki-signature-database.js +0 -2
- package/linter/linter-executor.js +4 -0
- package/linter/linter-rules.d.ts +552 -35
- package/linter/linter-rules.js +39 -1
- package/linter/linter-tags.d.ts +6 -0
- package/linter/linter-tags.js +6 -0
- package/linter/rules/absolute-path.d.ts +1 -1
- package/linter/rules/absolute-path.js +9 -6
- package/linter/rules/cmd-check/bogus-return.d.ts +29 -0
- package/linter/rules/cmd-check/bogus-return.js +63 -0
- package/linter/rules/cmd-check/call-arguments.d.ts +63 -0
- package/linter/rules/cmd-check/call-arguments.js +216 -0
- package/linter/rules/cmd-check/class-string-comparison.d.ts +48 -0
- package/linter/rules/cmd-check/class-string-comparison.js +135 -0
- package/linter/rules/cmd-check/cmd-check-util.d.ts +67 -0
- package/linter/rules/cmd-check/cmd-check-util.js +169 -0
- package/linter/rules/cmd-check/compiled-code.d.ts +86 -0
- package/linter/rules/cmd-check/compiled-code.js +350 -0
- package/linter/rules/cmd-check/conformance.d.ts +51 -0
- package/linter/rules/cmd-check/conformance.js +166 -0
- package/linter/rules/cmd-check/dependency-declaration.d.ts +95 -0
- package/linter/rules/cmd-check/dependency-declaration.js +299 -0
- package/linter/rules/cmd-check/description-metadata.d.ts +63 -0
- package/linter/rules/cmd-check/description-metadata.js +393 -0
- package/linter/rules/cmd-check/documentation-mismatch.d.ts +60 -0
- package/linter/rules/cmd-check/documentation-mismatch.js +407 -0
- package/linter/rules/cmd-check/file-checks.d.ts +29 -0
- package/linter/rules/cmd-check/file-checks.js +34 -0
- package/linter/rules/cmd-check/foreign-function-calls.d.ts +54 -0
- package/linter/rules/cmd-check/foreign-function-calls.js +115 -0
- package/linter/rules/cmd-check/global-environment-modification.d.ts +61 -0
- package/linter/rules/cmd-check/global-environment-modification.js +237 -0
- package/linter/rules/cmd-check/namespace-tampering.d.ts +52 -0
- package/linter/rules/cmd-check/namespace-tampering.js +162 -0
- package/linter/rules/cmd-check/non-ascii-code.d.ts +51 -0
- package/linter/rules/cmd-check/non-ascii-code.js +112 -0
- package/linter/rules/cmd-check/package-code.d.ts +30 -0
- package/linter/rules/cmd-check/package-code.js +141 -0
- package/linter/rules/cmd-check/package-data.d.ts +51 -0
- package/linter/rules/cmd-check/package-data.js +181 -0
- package/linter/rules/cmd-check/package-files.d.ts +41 -0
- package/linter/rules/cmd-check/package-files.js +157 -0
- package/linter/rules/cmd-check/package-hooks.d.ts +57 -0
- package/linter/rules/cmd-check/package-hooks.js +173 -0
- package/linter/rules/cmd-check/package-metafiles.d.ts +49 -0
- package/linter/rules/cmd-check/package-metafiles.js +292 -0
- package/linter/rules/cmd-check/package-runtime.d.ts +67 -0
- package/linter/rules/cmd-check/package-runtime.js +284 -0
- package/linter/rules/cmd-check/package-structure.d.ts +85 -0
- package/linter/rules/cmd-check/package-structure.js +320 -0
- package/linter/rules/cmd-check/rd-files.d.ts +83 -0
- package/linter/rules/cmd-check/rd-files.js +621 -0
- package/linter/rules/cmd-check/s-three-method-consistency.d.ts +72 -0
- package/linter/rules/cmd-check/s-three-method-consistency.js +206 -0
- package/linter/rules/cmd-check/true-false-abbreviation.d.ts +45 -0
- package/linter/rules/cmd-check/true-false-abbreviation.js +121 -0
- package/linter/rules/dataframe-access-validation.d.ts +1 -1
- package/linter/rules/dataframe-access-validation.js +1 -1
- package/linter/rules/dead-code.d.ts +4 -4
- package/linter/rules/dead-code.js +19 -4
- package/linter/rules/deprecated-functions.d.ts +1 -1
- package/linter/rules/deprecated-functions.js +5 -5
- package/linter/rules/file-path-validity.d.ts +6 -2
- package/linter/rules/file-path-validity.js +7 -3
- package/linter/rules/namespace-access.d.ts +3 -3
- package/linter/rules/namespace-access.js +12 -3
- package/linter/rules/naming-convention.d.ts +2 -2
- package/linter/rules/naming-convention.js +14 -15
- package/linter/rules/network-functions.d.ts +1 -1
- package/linter/rules/network-functions.js +1 -1
- package/linter/rules/no-leaked-credentials.d.ts +1 -1
- package/linter/rules/no-leaked-credentials.js +5 -5
- package/linter/rules/problematic-inputs.d.ts +2 -2
- package/linter/rules/problematic-inputs.js +4 -3
- package/linter/rules/roxygen-arguments.d.ts +2 -2
- package/linter/rules/roxygen-arguments.js +2 -2
- package/linter/rules/seeded-randomness.d.ts +2 -2
- package/linter/rules/seeded-randomness.js +7 -7
- package/linter/rules/software-has-license.d.ts +3 -3
- package/linter/rules/software-has-license.js +3 -3
- package/linter/rules/software-has-tests.d.ts +2 -2
- package/linter/rules/software-has-tests.js +2 -2
- package/linter/rules/stop-with-call-arg.d.ts +3 -3
- package/linter/rules/stop-with-call-arg.js +21 -4
- package/linter/rules/syntactically-valid.d.ts +1 -1
- package/linter/rules/syntactically-valid.js +1 -1
- package/linter/rules/unclosed-connection.d.ts +2 -2
- package/linter/rules/unclosed-connection.js +5 -5
- package/linter/rules/undefined-symbol-util.js +16 -32
- package/linter/rules/undefined-symbol.d.ts +3 -1
- package/linter/rules/undefined-symbol.js +34 -4
- package/linter/rules/unescaped-arguments.d.ts +1 -1
- package/linter/rules/unescaped-arguments.js +11 -10
- package/linter/rules/unused-definition.d.ts +1 -1
- package/linter/rules/unused-definition.js +14 -20
- package/linter/rules/unused-import.d.ts +1 -1
- package/linter/rules/unused-import.js +1 -1
- package/linter/rules/useless-loop.d.ts +1 -1
- package/linter/rules/useless-loop.js +1 -1
- package/package.json +1 -1
- package/project/cache/flowr-analyzer-cache.js +1 -1
- package/project/context/flowr-analyzer-context.js +1 -1
- package/project/context/flowr-analyzer-environment-context.d.ts +2 -2
- package/project/context/flowr-analyzer-environment-context.js +2 -1
- package/project/context/flowr-analyzer-files-context.d.ts +6 -0
- package/project/context/flowr-analyzer-files-context.js +15 -11
- package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +0 -2
- package/project/context/flowr-analyzer-incremental-analysis-context.js +0 -4
- package/project/context/flowr-file.d.ts +4 -0
- package/project/context/flowr-file.js +4 -0
- package/project/flowr-analyzer-builder.js +1 -1
- package/project/plugins/file-plugins/files/flowr-description-file.js +2 -2
- package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +2 -0
- package/project/plugins/file-plugins/files/flowr-jupyter-file.js +4 -0
- package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +2 -0
- package/project/plugins/file-plugins/files/flowr-manifest-files.js +11 -14
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +3 -0
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +25 -15
- package/project/plugins/file-plugins/files/flowr-rd-file.d.ts +44 -0
- package/project/plugins/file-plugins/files/flowr-rd-file.js +130 -61
- package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +0 -1
- package/project/plugins/file-plugins/files/flowr-rda-file.js +4 -16
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -0
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +4 -0
- package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +2 -0
- package/project/plugins/file-plugins/files/flowr-sweave-file.js +4 -0
- package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.d.ts +0 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.js +1 -5
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +2 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +2 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-session-info-plugin.js +3 -7
- package/project/sigdb/build.js +16 -30
- package/project/sigdb/dict.d.ts +4 -6
- package/project/sigdb/dict.js +125 -31
- package/project/sigdb/reader.js +2 -18
- package/project/sigdb/sigdb-download.js +14 -23
- package/queries/base-query-format.d.ts +2 -0
- package/queries/base-query-format.js +10 -2
- package/queries/catalog/absint-query/absint-query-format.d.ts +1 -1
- package/queries/catalog/absint-query/absint-query-format.js +5 -7
- package/queries/catalog/call-context-query/call-context-query-executor.js +24 -32
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -1
- package/queries/catalog/call-context-query/call-context-query-format.js +1 -3
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +2 -4
- package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -4
- package/queries/catalog/call-graph-query/call-graph-query-format.js +2 -3
- package/queries/catalog/config-query/config-query-format.js +3 -3
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +2 -3
- package/queries/catalog/dataflow-query/dataflow-query-format.js +2 -3
- package/queries/catalog/dependencies-query/data-flow.d.ts +45 -0
- package/queries/catalog/dependencies-query/data-flow.js +179 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.d.ts +18 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +108 -12
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +17 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +14 -11
- package/queries/catalog/dependencies-query/function-info/derived-functions.js +2 -1
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/library-functions.js +13 -13
- package/queries/catalog/dependencies-query/function-info/read-functions.js +1 -1
- package/queries/catalog/dependencies-query/function-info/remote-functions.js +3 -3
- package/queries/catalog/dependencies-query/function-info/source-functions.js +2 -2
- package/queries/catalog/dependencies-query/function-info/test-functions.js +8 -8
- package/queries/catalog/dependencies-query/function-info/transform-functions.d.ts +8 -0
- package/queries/catalog/dependencies-query/function-info/transform-functions.js +17 -0
- package/queries/catalog/dependencies-query/function-info/write-functions.js +4 -0
- package/queries/catalog/dependencies-query/implicit-echo.d.ts +5 -3
- package/queries/catalog/dependencies-query/implicit-echo.js +36 -35
- package/queries/catalog/dependencies-query/link-devices.d.ts +3 -2
- package/queries/catalog/dependencies-query/link-devices.js +9 -6
- package/queries/catalog/dependencies-query/plot-description.d.ts +10 -0
- package/queries/catalog/dependencies-query/plot-description.js +119 -0
- package/queries/catalog/dependencies-query/plot-objects.d.ts +13 -0
- package/queries/catalog/dependencies-query/plot-objects.js +61 -0
- package/queries/catalog/dice-query/dice-query-format.d.ts +2 -2
- package/queries/catalog/dice-query/dice-query-format.js +3 -40
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +1 -1
- package/queries/catalog/does-call-query/does-call-query-format.js +2 -2
- package/queries/catalog/function-info-query/function-info-query-format.js +2 -2
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +2 -1
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +2 -2
- package/queries/catalog/happens-before-query/happens-before-query-format.js +2 -2
- package/queries/catalog/id-map-query/id-map-query-format.js +1 -3
- package/queries/catalog/input-sources-query/input-sources-query-executor.js +2 -2
- package/queries/catalog/input-sources-query/input-sources-query-format.js +2 -3
- package/queries/catalog/input-sources-query/simple-input-classifier.js +28 -29
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +4 -7
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +1 -1
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +3 -2
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +2 -2
- package/queries/catalog/linter-query/linter-query-executor.js +10 -3
- package/queries/catalog/linter-query/linter-query-format.d.ts +4 -1
- package/queries/catalog/linter-query/linter-query-format.js +32 -21
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +1 -1
- package/queries/catalog/location-map-query/location-map-query-format.js +1 -3
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +2 -3
- package/queries/catalog/origin-query/origin-query-executor.d.ts +1 -1
- package/queries/catalog/origin-query/origin-query-executor.js +3 -3
- package/queries/catalog/origin-query/origin-query-format.d.ts +1 -1
- package/queries/catalog/origin-query/origin-query-format.js +4 -5
- package/queries/catalog/project-query/project-query-format.js +2 -2
- package/queries/catalog/provenance-query/provenance-query-format.js +2 -3
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +1 -1
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +4 -4
- package/queries/catalog/search-query/search-query-format.js +1 -3
- package/queries/catalog/signature-query/signature-query-executor.js +3 -3
- package/queries/catalog/signature-query/signature-query-format.js +2 -2
- package/queries/catalog/slice-query-options.d.ts +16 -0
- package/queries/catalog/slice-query-options.js +28 -0
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -2
- package/queries/catalog/static-slice-query/static-slice-query-format.js +3 -42
- package/queries/query-print.d.ts +4 -0
- package/queries/query-print.js +17 -1
- package/queries/query.d.ts +3 -3
- package/queries/query.js +3 -4
- package/r-bridge/lang-4.x/ast/model/model.d.ts +27 -3
- package/r-bridge/lang-4.x/ast/model/model.js +28 -1
- package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +20 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +25 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +18 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +15 -6
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +17 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +20 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.js +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.js +1 -0
- package/r-bridge/lang-4.x/ast/model/operators.js +0 -2
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +1 -6
- package/r-bridge/lang-4.x/ast/model/processing/fold.js +1 -6
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +4 -3
- package/r-bridge/lang-4.x/ast/parser/json/format.js +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/control/normalize-if-then.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +4 -20
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-while.js +2 -9
- package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +2 -10
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +2 -11
- package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-expressions.js +3 -11
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.js +1 -5
- package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +6 -1
- package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +7 -0
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +0 -10
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +30 -82
- package/r-bridge/retriever.d.ts +0 -4
- package/r-bridge/retriever.js +0 -13
- package/r-bridge/roxygen2/documentation-provider.js +3 -7
- package/r-bridge/shell.js +3 -8
- package/reconstruct/auto-select/magic-comments.js +8 -7
- package/reconstruct/inline/source-inline-map.d.ts +3 -0
- package/reconstruct/inline/source-inline-map.js +8 -7
- package/reconstruct/reconstruct.d.ts +1 -1
- package/reconstruct/reconstruct.js +33 -109
- package/search/flowr-search-printer.js +4 -15
- package/search/search-executor/search-generators.js +1 -1
- package/slicing/criterion/filters/all-variables.js +1 -2
- package/slicing/static/fingerprint.js +11 -2
- package/slicing/static/slice-call.d.ts +2 -8
- package/slicing/static/slice-call.js +8 -18
- package/slicing/static/static-slicer.js +81 -6
- package/util/collections/arrays.js +1 -1
- package/util/collections/set.js +1 -1
- package/util/diff-graph.d.ts +4 -0
- package/util/diff-graph.js +12 -0
- package/util/files.js +2 -6
- package/util/json.js +1 -15
- package/util/mermaid/cfg.js +10 -17
- package/util/mermaid/dfg.js +6 -8
- package/util/objects.d.ts +1 -1
- package/util/quads.js +4 -13
- package/util/r-author.js +5 -5
- package/util/range.d.ts +9 -0
- package/util/range.js +11 -0
- package/util/schema.js +3 -3
- package/util/simple-df/dfg-view.js +2 -1
- package/util/text/ansi.js +1 -2
- package/util/text/playground-link.js +2 -1
- package/util/text/r-highlight.js +2 -1
- package/util/text/strings.d.ts +2 -0
- package/util/text/strings.js +5 -0
- package/util/text/time.js +1 -2
- package/util/version.js +4 -3
- package/dataflow/fn/recursive-function.d.ts +0 -6
- package/dataflow/fn/recursive-function.js +0 -32
- package/dataflow/internal/process/functions/call/argument/unpack-argument.d.ts +0 -16
- package/dataflow/internal/process/functions/call/argument/unpack-argument.js +0 -27
package/linter/linter-rules.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const LintingRules: {
|
|
|
21
21
|
readonly name: "Deprecated Functions";
|
|
22
22
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Deprecated, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
23
23
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
24
|
-
readonly description: "
|
|
24
|
+
readonly description: "Finds deprecated functions and deprecated arguments of still-current functions, offering the replacement as a quick fix where one is known. A call to a bare name whose package the code never attaches is reported as uncertain, as any function of that name would answer to it.";
|
|
25
25
|
readonly defaultConfig: (ctx: import("../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
|
|
26
26
|
always: import("..").Identifier[];
|
|
27
27
|
conditionally: Record<import("../dataflow/environments/identifier").BrandedIdentifier, import("../dataflow/environments/deprecation-info").DeprecatedFunctionInformation>;
|
|
@@ -36,7 +36,7 @@ export declare const LintingRules: {
|
|
|
36
36
|
}>;
|
|
37
37
|
readonly info: {
|
|
38
38
|
readonly name: "File Path Validity";
|
|
39
|
-
readonly description: "
|
|
39
|
+
readonly description: "Finds file paths used in read and write operations that are invalid or do not point to existing files.";
|
|
40
40
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
41
41
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
42
42
|
readonly defaultConfig: () => {
|
|
@@ -73,10 +73,10 @@ export declare const LintingRules: {
|
|
|
73
73
|
})[];
|
|
74
74
|
randomnessConsumers: string[];
|
|
75
75
|
};
|
|
76
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
76
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
77
77
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
78
78
|
readonly name: "Seeded Randomness";
|
|
79
|
-
readonly description: "
|
|
79
|
+
readonly description: "Finds randomness-based function calls not preceded by a random seed generation function. For consistent reproducibility, functions that use randomness should only be called after a constant random seed is set using a function like `set.seed`.";
|
|
80
80
|
};
|
|
81
81
|
readonly prettyPrint: {
|
|
82
82
|
readonly query: (result: import("./rules/seeded-randomness").SeededRandomnessResult, _meta: import("./rules/seeded-randomness").SeededRandomnessMeta) => string;
|
|
@@ -95,7 +95,7 @@ export declare const LintingRules: {
|
|
|
95
95
|
};
|
|
96
96
|
readonly info: {
|
|
97
97
|
readonly name: "Absolute Paths";
|
|
98
|
-
readonly description: "
|
|
98
|
+
readonly description: "Finds absolute file paths.";
|
|
99
99
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
100
100
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
101
101
|
readonly defaultConfig: () => {
|
|
@@ -122,7 +122,7 @@ export declare const LintingRules: {
|
|
|
122
122
|
};
|
|
123
123
|
readonly info: {
|
|
124
124
|
readonly name: "Unused Definitions";
|
|
125
|
-
readonly description: "
|
|
125
|
+
readonly description: "Finds definitions that are never used.";
|
|
126
126
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
127
127
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
128
128
|
readonly defaultConfig: () => {
|
|
@@ -147,7 +147,7 @@ export declare const LintingRules: {
|
|
|
147
147
|
readonly info: {
|
|
148
148
|
readonly name: "Naming Convention";
|
|
149
149
|
readonly certainty: import("./linter-format").LintingRuleCertainty.OverApproximative;
|
|
150
|
-
readonly description: "
|
|
150
|
+
readonly description: "Finds symbols that do not follow the naming convention of the code.";
|
|
151
151
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Style, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
152
152
|
readonly activeByDefault: false;
|
|
153
153
|
readonly defaultConfig: () => {
|
|
@@ -170,7 +170,7 @@ export declare const LintingRules: {
|
|
|
170
170
|
readonly name: "Network Functions";
|
|
171
171
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Performance, import("./linter-tags").LintingRuleTag.Smell];
|
|
172
172
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
173
|
-
readonly description: "
|
|
173
|
+
readonly description: "Finds functions that execute network operations, such as downloading files or making HTTP requests.";
|
|
174
174
|
readonly defaultConfig: (ctx: import("../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
|
|
175
175
|
fns: import("./rules/network-functions").NetworkFunction[];
|
|
176
176
|
};
|
|
@@ -190,7 +190,7 @@ export declare const LintingRules: {
|
|
|
190
190
|
readonly name: "Dataframe Access Validation";
|
|
191
191
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
192
192
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
193
|
-
readonly description: "
|
|
193
|
+
readonly description: "Finds accesses to columns and rows a data frame does not have.";
|
|
194
194
|
readonly defaultConfig: () => {
|
|
195
195
|
readLoadedData: false;
|
|
196
196
|
};
|
|
@@ -198,18 +198,18 @@ export declare const LintingRules: {
|
|
|
198
198
|
};
|
|
199
199
|
readonly 'dead-code': {
|
|
200
200
|
readonly createSearch: (config: import("./rules/dead-code").DeadCodeConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["with", "filter"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
|
|
201
|
-
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: import("./rules/dead-code").DeadCodeConfig,
|
|
201
|
+
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: import("./rules/dead-code").DeadCodeConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
202
202
|
results: import("./linter-format").LintingResult[];
|
|
203
|
-
}
|
|
203
|
+
}>;
|
|
204
204
|
readonly prettyPrint: {
|
|
205
205
|
readonly query: (result: import("./linter-format").LintingResult) => string;
|
|
206
206
|
readonly full: (result: import("./linter-format").LintingResult) => string;
|
|
207
207
|
};
|
|
208
208
|
readonly info: {
|
|
209
209
|
readonly name: "Dead Code";
|
|
210
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
210
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
211
211
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
212
|
-
readonly description: "
|
|
212
|
+
readonly description: "Finds code that is never reached during execution.";
|
|
213
213
|
readonly defaultConfig: () => {};
|
|
214
214
|
};
|
|
215
215
|
};
|
|
@@ -232,7 +232,7 @@ export declare const LintingRules: {
|
|
|
232
232
|
};
|
|
233
233
|
readonly info: {
|
|
234
234
|
readonly name: "Useless Loops";
|
|
235
|
-
readonly description: "
|
|
235
|
+
readonly description: "Finds loops that iterate only once.";
|
|
236
236
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
237
237
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability];
|
|
238
238
|
readonly defaultConfig: () => {
|
|
@@ -250,8 +250,8 @@ export declare const LintingRules: {
|
|
|
250
250
|
readonly full: (result: import("./rules/problematic-inputs").ProblematicInputsResult) => string;
|
|
251
251
|
};
|
|
252
252
|
readonly info: {
|
|
253
|
-
readonly name: "Problematic
|
|
254
|
-
readonly description: "
|
|
253
|
+
readonly name: "Problematic Inputs";
|
|
254
|
+
readonly description: "Finds dynamic calls (e.g. eval, system) with non-constant inputs, and graphics-device calls (pdf, postscript) where a filename starts with '|' indicating a pipe command injection.";
|
|
255
255
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.Performance];
|
|
256
256
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
257
257
|
readonly defaultConfig: (ctx: import("../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
|
|
@@ -271,10 +271,10 @@ export declare const LintingRules: {
|
|
|
271
271
|
readonly full: (result: import("./linter-format").LintingResult) => string;
|
|
272
272
|
};
|
|
273
273
|
readonly info: {
|
|
274
|
-
readonly name: "Stop
|
|
275
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell];
|
|
274
|
+
readonly name: "Stop Without Call";
|
|
275
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
276
276
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
277
|
-
readonly description: "
|
|
277
|
+
readonly description: "Finds `stop()` calls that do not set `call.` to `FALSE`.";
|
|
278
278
|
readonly defaultConfig: () => {};
|
|
279
279
|
};
|
|
280
280
|
};
|
|
@@ -296,14 +296,14 @@ export declare const LintingRules: {
|
|
|
296
296
|
};
|
|
297
297
|
readonly info: {
|
|
298
298
|
readonly name: "Roxygen Arguments";
|
|
299
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Documentation
|
|
299
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Documentation];
|
|
300
300
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
301
|
-
readonly description: "
|
|
301
|
+
readonly description: "Finds function parameters the roxygen documentation leaves out, and documented parameters the function does not have.";
|
|
302
302
|
readonly defaultConfig: () => {};
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
readonly 'software-has-license': {
|
|
306
|
-
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from
|
|
306
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
307
307
|
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/software-has-license").SoftwareHasLicenseConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
308
308
|
results: import("./rules/software-has-license").SoftwareHasLicenseResult[];
|
|
309
309
|
'.meta': {};
|
|
@@ -314,8 +314,8 @@ export declare const LintingRules: {
|
|
|
314
314
|
};
|
|
315
315
|
readonly info: {
|
|
316
316
|
readonly name: "Software Has License";
|
|
317
|
-
readonly description: "
|
|
318
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Usability];
|
|
317
|
+
readonly description: "Finds software projects without a license (a LICENSE file or the License field of the DESCRIPTION).";
|
|
318
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Usability];
|
|
319
319
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
320
320
|
readonly defaultConfig: () => {
|
|
321
321
|
checkDescriptionFile: true;
|
|
@@ -337,8 +337,8 @@ export declare const LintingRules: {
|
|
|
337
337
|
};
|
|
338
338
|
readonly info: {
|
|
339
339
|
readonly name: "Software Has Tests";
|
|
340
|
-
readonly description: "
|
|
341
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
340
|
+
readonly description: "Finds software projects without tests (test files in a test directory or test function calls in R code).";
|
|
341
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
342
342
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
343
343
|
readonly defaultConfig: () => {
|
|
344
344
|
additionalTestFunctions: never[];
|
|
@@ -357,7 +357,7 @@ export declare const LintingRules: {
|
|
|
357
357
|
};
|
|
358
358
|
readonly info: {
|
|
359
359
|
readonly name: "No Leaked Credentials";
|
|
360
|
-
readonly description: "
|
|
360
|
+
readonly description: "Finds hardcoded credentials assigned to variables or passed as arguments whose names suggest they hold passwords, tokens, or API keys, handed to authentication functions, or whose values match known credential formats (AWS, GitHub, Slack, Stripe, Google, JWT, SSH, URLs with passwords).";
|
|
361
361
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Experimental, import("./linter-tags").LintingRuleTag.Smell];
|
|
362
362
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
363
363
|
readonly defaultConfig: () => {
|
|
@@ -380,7 +380,7 @@ export declare const LintingRules: {
|
|
|
380
380
|
readonly info: {
|
|
381
381
|
readonly name: "Undefined Symbol";
|
|
382
382
|
readonly certainty: import("./linter-format").LintingRuleCertainty.OverApproximative;
|
|
383
|
-
readonly description: "
|
|
383
|
+
readonly description: "Finds functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.";
|
|
384
384
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Experimental];
|
|
385
385
|
readonly defaultConfig: () => {
|
|
386
386
|
checkFunctions: true;
|
|
@@ -410,7 +410,7 @@ export declare const LintingRules: {
|
|
|
410
410
|
readonly name: "Unused Import";
|
|
411
411
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
412
412
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
413
|
-
readonly description: "
|
|
413
|
+
readonly description: "Finds packages that are attached but never used, so the code runs just the same without them. Requires a signature database, and packages that only do their work on load should be whitelisted in the configuration.";
|
|
414
414
|
readonly defaultConfig: () => {
|
|
415
415
|
whitelist: never[];
|
|
416
416
|
};
|
|
@@ -428,7 +428,7 @@ export declare const LintingRules: {
|
|
|
428
428
|
};
|
|
429
429
|
readonly info: {
|
|
430
430
|
readonly name: "Syntactically Valid";
|
|
431
|
-
readonly description: "
|
|
431
|
+
readonly description: "Finds syntax errors with the configured (error-tolerant) parser. Offers extensible quick fixes to repair them.";
|
|
432
432
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
433
433
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
434
434
|
readonly activeByDefault: false;
|
|
@@ -453,9 +453,9 @@ export declare const LintingRules: {
|
|
|
453
453
|
};
|
|
454
454
|
readonly info: {
|
|
455
455
|
readonly name: "Unclosed Connection";
|
|
456
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Smell];
|
|
456
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
457
457
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
458
|
-
readonly description: "
|
|
458
|
+
readonly description: "Finds connections that are opened but not closed on every path opening them.";
|
|
459
459
|
readonly defaultConfig: () => {
|
|
460
460
|
openFns: never[];
|
|
461
461
|
closeFns: never[];
|
|
@@ -479,7 +479,7 @@ export declare const LintingRules: {
|
|
|
479
479
|
readonly name: "Unescaped Arguments";
|
|
480
480
|
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Shiny, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
481
481
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
482
|
-
readonly description: "
|
|
482
|
+
readonly description: "Finds arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.";
|
|
483
483
|
readonly defaultConfig: () => {
|
|
484
484
|
categories: {
|
|
485
485
|
system: {
|
|
@@ -548,11 +548,528 @@ export declare const LintingRules: {
|
|
|
548
548
|
readonly info: {
|
|
549
549
|
readonly name: "Namespace Access Validity";
|
|
550
550
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
551
|
-
readonly description: "
|
|
552
|
-
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug];
|
|
551
|
+
readonly description: "Finds `pkg:::name` where `name` is actually exported by `pkg` (so `::` would do), and `pkg::name` where the signature database knows `name` is not exported (which fails at runtime in R). Stays silent whenever the database has no definite answer for the name.";
|
|
552
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
553
553
|
readonly defaultConfig: () => {};
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
|
+
readonly 'class-string-comparison': {
|
|
557
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
|
|
558
|
+
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/class-string-comparison").ClassStringComparisonConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
559
|
+
results: import("./rules/cmd-check/class-string-comparison").ClassStringComparisonResult[];
|
|
560
|
+
'.meta': {
|
|
561
|
+
consideredConditions: number;
|
|
562
|
+
};
|
|
563
|
+
}>;
|
|
564
|
+
readonly prettyPrint: {
|
|
565
|
+
query: (r: import("./rules/cmd-check/class-string-comparison").ClassStringComparisonResult) => string;
|
|
566
|
+
full: (r: import("./rules/cmd-check/class-string-comparison").ClassStringComparisonResult) => string;
|
|
567
|
+
};
|
|
568
|
+
readonly info: {
|
|
569
|
+
readonly name: "Class String Comparison";
|
|
570
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
571
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
572
|
+
readonly description: "Finds `if`/`while` conditions comparing `class(x)` with a string, which fail for objects with several classes. Offers `inherits(x, ...)` as a quick fix.";
|
|
573
|
+
readonly defaultConfig: () => {
|
|
574
|
+
checkWhile: true;
|
|
575
|
+
resolveStrings: true;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
readonly 'description-metadata': {
|
|
580
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
581
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/description-metadata").DescriptionMetadataConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
582
|
+
results: never[];
|
|
583
|
+
'.meta': {
|
|
584
|
+
hasDescription: false;
|
|
585
|
+
};
|
|
586
|
+
} | {
|
|
587
|
+
results: import("./rules/cmd-check/description-metadata").DescriptionMetadataResult[];
|
|
588
|
+
'.meta': {
|
|
589
|
+
hasDescription: true;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly prettyPrint: {
|
|
593
|
+
query: (r: {
|
|
594
|
+
readonly message: string;
|
|
595
|
+
readonly loc: import("..").SourceLocation;
|
|
596
|
+
}) => string;
|
|
597
|
+
full: (r: {
|
|
598
|
+
readonly message: string;
|
|
599
|
+
readonly loc: import("..").SourceLocation;
|
|
600
|
+
}) => string;
|
|
601
|
+
};
|
|
602
|
+
readonly info: {
|
|
603
|
+
readonly name: "Description Metadata";
|
|
604
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
|
|
605
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
606
|
+
readonly description: "Finds problems in the DESCRIPTION: required fields, package name, version, maintainer, dependency fields, license, Authors@R, encoding, and the Title and Description style CRAN asks for.";
|
|
607
|
+
readonly defaultConfig: () => {
|
|
608
|
+
cranIncoming: true;
|
|
609
|
+
maxDepends: number;
|
|
610
|
+
maxImports: number;
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
readonly 'documentation-mismatch': {
|
|
615
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
616
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/documentation-mismatch").DocumentationMismatchConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
617
|
+
results: import("./rules/cmd-check/documentation-mismatch").DocumentationMismatchResult[];
|
|
618
|
+
'.meta': {
|
|
619
|
+
consideredObjects: number;
|
|
620
|
+
consideredPages: number;
|
|
621
|
+
};
|
|
622
|
+
}>;
|
|
623
|
+
readonly prettyPrint: {
|
|
624
|
+
readonly query: (result: import("./rules/cmd-check/documentation-mismatch").DocumentationMismatchResult) => string;
|
|
625
|
+
readonly full: (result: import("./rules/cmd-check/documentation-mismatch").DocumentationMismatchResult) => string;
|
|
626
|
+
};
|
|
627
|
+
readonly info: {
|
|
628
|
+
readonly name: "Documentation Mismatch";
|
|
629
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Bug];
|
|
630
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
631
|
+
readonly description: "Finds exported objects without documentation, functions whose formals differ from their `\\usage`, and arguments missing from or extra in `\\arguments`.";
|
|
632
|
+
readonly defaultConfig: () => {
|
|
633
|
+
checkUndocumented: true;
|
|
634
|
+
checkCodoc: true;
|
|
635
|
+
checkDefaults: true;
|
|
636
|
+
checkUsage: true;
|
|
637
|
+
checkInternalUsage: false;
|
|
638
|
+
requireDocumentation: true;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
readonly 'non-ascii-code': {
|
|
643
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
|
|
644
|
+
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/non-ascii-code").NonAsciiCodeConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
645
|
+
results: import("./rules/cmd-check/non-ascii-code").NonAsciiCodeResult[];
|
|
646
|
+
'.meta': {
|
|
647
|
+
consideredTokens: number;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
readonly prettyPrint: {
|
|
651
|
+
query: (r: import("./rules/cmd-check/non-ascii-code").NonAsciiCodeResult) => string;
|
|
652
|
+
full: (r: import("./rules/cmd-check/non-ascii-code").NonAsciiCodeResult) => string;
|
|
653
|
+
};
|
|
654
|
+
readonly info: {
|
|
655
|
+
readonly name: "Non-ASCII Code";
|
|
656
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
657
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
658
|
+
readonly description: "Finds non-ASCII characters in R code and the NAMESPACE outside of comments. Offers `\\u` escapes for strings as a quick fix.";
|
|
659
|
+
readonly defaultConfig: () => {
|
|
660
|
+
checkStrings: true;
|
|
661
|
+
checkSymbols: true;
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
readonly 'true-false-abbreviation': {
|
|
666
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
|
|
667
|
+
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/true-false-abbreviation").TrueFalseAbbreviationConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
668
|
+
results: import("./rules/cmd-check/true-false-abbreviation").TrueFalseAbbreviationResult[];
|
|
669
|
+
'.meta': {
|
|
670
|
+
locallyDefined: number;
|
|
671
|
+
};
|
|
672
|
+
}>;
|
|
673
|
+
readonly prettyPrint: {
|
|
674
|
+
query: (r: import("./rules/cmd-check/true-false-abbreviation").TrueFalseAbbreviationResult) => string;
|
|
675
|
+
full: (r: import("./rules/cmd-check/true-false-abbreviation").TrueFalseAbbreviationResult) => string;
|
|
676
|
+
};
|
|
677
|
+
readonly info: {
|
|
678
|
+
readonly name: "TRUE/FALSE Abbreviation";
|
|
679
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
680
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.Exact;
|
|
681
|
+
readonly activeByDefault: false;
|
|
682
|
+
readonly description: "Finds `T` and `F` used for `TRUE` and `FALSE`, and top-level definitions of `T` or `F`. Off by default, as R only checks this for packages without a NAMESPACE.";
|
|
683
|
+
readonly defaultConfig: () => {
|
|
684
|
+
reportRedefinitions: true;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
readonly 'bogus-return': {
|
|
689
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
|
|
690
|
+
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: import("../util/objects").MergeableRecord, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
691
|
+
results: import("./rules/cmd-check/bogus-return").BogusReturnResult[];
|
|
692
|
+
'.meta': {};
|
|
693
|
+
}>;
|
|
694
|
+
readonly prettyPrint: {
|
|
695
|
+
query: (r: import("./rules/cmd-check/bogus-return").BogusReturnResult) => string;
|
|
696
|
+
full: (r: import("./rules/cmd-check/bogus-return").BogusReturnResult) => string;
|
|
697
|
+
};
|
|
698
|
+
readonly info: {
|
|
699
|
+
readonly name: "Bogus Return";
|
|
700
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
701
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.Exact;
|
|
702
|
+
readonly description: "Finds a bare `return` (without `()`), which evaluates to the function `return` instead of returning. Offers `return()` as a quick fix.";
|
|
703
|
+
readonly defaultConfig: () => {};
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
readonly 'package-hooks': {
|
|
707
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
708
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/package-hooks").PackageHooksConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
709
|
+
results: import("./rules/cmd-check/package-hooks").PackageHooksResult[];
|
|
710
|
+
'.meta': {
|
|
711
|
+
hooks: string[];
|
|
712
|
+
};
|
|
713
|
+
}>;
|
|
714
|
+
readonly prettyPrint: {
|
|
715
|
+
query: (r: import("./rules/cmd-check/package-hooks").PackageHooksResult) => string;
|
|
716
|
+
full: (r: import("./rules/cmd-check/package-hooks").PackageHooksResult) => string;
|
|
717
|
+
};
|
|
718
|
+
readonly info: {
|
|
719
|
+
readonly name: "Package Hooks";
|
|
720
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
721
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
722
|
+
readonly description: "Finds problems in `.onLoad`, `.onAttach`, `.onDetach`, and `.Last.lib`: argument lists, attaching packages, output other than `packageStartupMessage()`, `installed.packages()`, misplaced `library.dynam()` calls, and the obsolete `.First.lib`. Follows calls into the package's own functions.";
|
|
723
|
+
readonly defaultConfig: () => {
|
|
724
|
+
startupMessageFunctions: string[];
|
|
725
|
+
allowedOutput: string[];
|
|
726
|
+
unsafeCalls: string[];
|
|
727
|
+
followCalls: true;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly 'global-environment-modification': {
|
|
732
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
733
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/global-environment-modification").GlobalEnvironmentModificationConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
734
|
+
results: import("./rules/cmd-check/global-environment-modification").GlobalEnvironmentModificationResult[];
|
|
735
|
+
'.meta': {
|
|
736
|
+
consideredCalls: number;
|
|
737
|
+
};
|
|
738
|
+
}>;
|
|
739
|
+
readonly prettyPrint: {
|
|
740
|
+
query: (r: import("./rules/cmd-check/global-environment-modification").GlobalEnvironmentModificationResult) => string;
|
|
741
|
+
full: (r: import("./rules/cmd-check/global-environment-modification").GlobalEnvironmentModificationResult) => string;
|
|
742
|
+
};
|
|
743
|
+
readonly info: {
|
|
744
|
+
readonly name: "Global Environment Modification";
|
|
745
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness];
|
|
746
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
747
|
+
readonly description: "Finds code that changes the global environment: `assign()` or `data()` into it, `attach()`, `<<-` without a binding in an enclosing function, and `<<-` to a package variable, whose binding is locked at run time.";
|
|
748
|
+
readonly defaultConfig: () => {
|
|
749
|
+
checkSuperAssignments: true;
|
|
750
|
+
allowedGlobals: string[];
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
readonly 'namespace-tampering': {
|
|
755
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
756
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/namespace-tampering").NamespaceTamperingConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
757
|
+
results: import("./rules/cmd-check/namespace-tampering").NamespaceTamperingResult[];
|
|
758
|
+
'.meta': {};
|
|
759
|
+
}>;
|
|
760
|
+
readonly prettyPrint: {
|
|
761
|
+
query: (r: import("./rules/cmd-check/namespace-tampering").NamespaceTamperingResult) => string;
|
|
762
|
+
full: (r: import("./rules/cmd-check/namespace-tampering").NamespaceTamperingResult) => string;
|
|
763
|
+
};
|
|
764
|
+
readonly info: {
|
|
765
|
+
readonly name: "Namespace Tampering";
|
|
766
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Security];
|
|
767
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
768
|
+
readonly description: "Finds `unlockBinding()` and `assignInNamespace()` on other namespaces, `.Internal()` calls, and `library.dynam()` given a file extension.";
|
|
769
|
+
readonly defaultConfig: () => {
|
|
770
|
+
checkInternal: true;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
readonly 's3-method-consistency': {
|
|
775
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
776
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/s-three-method-consistency").S3MethodConsistencyConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
777
|
+
results: import("./rules/cmd-check/s-three-method-consistency").S3MethodConsistencyResult[];
|
|
778
|
+
'.meta': {
|
|
779
|
+
consideredMethods: number;
|
|
780
|
+
consideredReplacements: number;
|
|
781
|
+
};
|
|
782
|
+
}>;
|
|
783
|
+
readonly prettyPrint: {
|
|
784
|
+
query: (r: import("./rules/cmd-check/s-three-method-consistency").S3MethodConsistencyResult) => string;
|
|
785
|
+
full: (r: import("./rules/cmd-check/s-three-method-consistency").S3MethodConsistencyResult) => string;
|
|
786
|
+
};
|
|
787
|
+
readonly info: {
|
|
788
|
+
readonly name: "S3 Method Consistency";
|
|
789
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness];
|
|
790
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
791
|
+
readonly description: "Finds S3 methods whose formals do not match their generic, methods not registered in the NAMESPACE, and replacement functions whose last formal is not `value`.";
|
|
792
|
+
readonly defaultConfig: () => {
|
|
793
|
+
checkMethods: true;
|
|
794
|
+
checkApparentMethods: true;
|
|
795
|
+
checkUnregistered: true;
|
|
796
|
+
checkReplacementValues: true;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
readonly 'foreign-function-calls': {
|
|
801
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
802
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/foreign-function-calls").ForeignFunctionCallsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
803
|
+
results: import("./rules/cmd-check/foreign-function-calls").ForeignFunctionCallsResult[];
|
|
804
|
+
'.meta': {
|
|
805
|
+
consideredCalls: number;
|
|
806
|
+
};
|
|
807
|
+
}>;
|
|
808
|
+
readonly prettyPrint: {
|
|
809
|
+
query: (r: import("./rules/cmd-check/foreign-function-calls").ForeignFunctionCallsResult) => string;
|
|
810
|
+
full: (r: import("./rules/cmd-check/foreign-function-calls").ForeignFunctionCallsResult) => string;
|
|
811
|
+
};
|
|
812
|
+
readonly info: {
|
|
813
|
+
readonly name: "Foreign Function Calls";
|
|
814
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness];
|
|
815
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
816
|
+
readonly description: "Finds problems in `.Call`, `.C`, `.External`, and `.Fortran` calls: a missing or empty `PACKAGE`, calls into base or other packages, and undeclared packages. Routine and package names are resolved through variables.";
|
|
817
|
+
readonly defaultConfig: () => {
|
|
818
|
+
resolveValues: true;
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
readonly 'dependency-declaration': {
|
|
823
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
824
|
+
readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/dependency-declaration").DependencyDeclarationConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
825
|
+
results: import("./rules/cmd-check/dependency-declaration").DependencyDeclarationResult[];
|
|
826
|
+
'.meta': {
|
|
827
|
+
unresolvedLoads: number;
|
|
828
|
+
};
|
|
829
|
+
}>;
|
|
830
|
+
readonly prettyPrint: {
|
|
831
|
+
query: (r: import("./rules/cmd-check/dependency-declaration").DependencyDeclarationResult) => string;
|
|
832
|
+
full: (r: import("./rules/cmd-check/dependency-declaration").DependencyDeclarationResult) => string;
|
|
833
|
+
};
|
|
834
|
+
readonly info: {
|
|
835
|
+
readonly name: "Dependency Declaration";
|
|
836
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Reproducibility];
|
|
837
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
838
|
+
readonly description: "Finds packages the code, tests, examples, or vignettes use without the DESCRIPTION declaring them, Imports nothing imports from, `library()` calls in package code, own `:::` calls, and undeclared VignetteBuilder or RdMacros packages. Package names are resolved through variables.";
|
|
839
|
+
readonly defaultConfig: () => {
|
|
840
|
+
reportLibraryCalls: true;
|
|
841
|
+
reportDependsNotImported: false;
|
|
842
|
+
ignoreWithin: string[];
|
|
843
|
+
checkOtherCode: true;
|
|
844
|
+
checkAvailability: true;
|
|
845
|
+
headerOnlyPackages: string[];
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
readonly 'call-arguments': {
|
|
850
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
851
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/call-arguments").CallArgumentsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
852
|
+
results: import("./rules/cmd-check/call-arguments").CallArgumentsResult[];
|
|
853
|
+
'.meta': {
|
|
854
|
+
checkedCalls: number;
|
|
855
|
+
};
|
|
856
|
+
}>;
|
|
857
|
+
readonly prettyPrint: {
|
|
858
|
+
query: (r: import("./rules/cmd-check/call-arguments").CallArgumentsResult) => string;
|
|
859
|
+
full: (r: import("./rules/cmd-check/call-arguments").CallArgumentsResult) => string;
|
|
860
|
+
};
|
|
861
|
+
readonly info: {
|
|
862
|
+
readonly name: "Call Arguments";
|
|
863
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
864
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
865
|
+
readonly description: "Finds calls with arguments the called function does not take, names that match a formal only partially or match several formals, `...` used in a function without `...`, and local functions defined twice with different formals. Calls are resolved through the dataflow graph.";
|
|
866
|
+
readonly defaultConfig: () => {
|
|
867
|
+
reportPartialMatches: true;
|
|
868
|
+
checkPackageFunctions: true;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
readonly 'package-structure': {
|
|
873
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
874
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/package-structure").PackageStructureConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
875
|
+
results: import("./rules/cmd-check/file-checks").FileResult<import("./rules/cmd-check/package-structure").PackageStructureKind>[];
|
|
876
|
+
'.meta': {
|
|
877
|
+
inspectedEntries: number;
|
|
878
|
+
onDisk: boolean;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
readonly prettyPrint: {
|
|
882
|
+
query: (r: {
|
|
883
|
+
readonly message: string;
|
|
884
|
+
readonly loc: import("..").SourceLocation;
|
|
885
|
+
}) => string;
|
|
886
|
+
full: (r: {
|
|
887
|
+
readonly message: string;
|
|
888
|
+
readonly loc: import("..").SourceLocation;
|
|
889
|
+
}) => string;
|
|
890
|
+
};
|
|
891
|
+
readonly info: {
|
|
892
|
+
readonly name: "Package Structure";
|
|
893
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
|
|
894
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
895
|
+
readonly description: "Finds problems in the package files: portable names, hidden files, top-level files, subdirectories, permissions, executables, timestamps, sizes, line endings of scripts, and vignette leftovers.";
|
|
896
|
+
readonly defaultConfig: () => {
|
|
897
|
+
maxPathLength: number;
|
|
898
|
+
hiddenAllowed: string[];
|
|
899
|
+
cranKnownHidden: string[];
|
|
900
|
+
cranPack: true;
|
|
901
|
+
checkTopLevel: true;
|
|
902
|
+
standardTopLevel: string[];
|
|
903
|
+
checkBashisms: false;
|
|
904
|
+
reservedInstDirs: string[];
|
|
905
|
+
maxInstalledSizeMb: number;
|
|
906
|
+
maxPdfBytes: number;
|
|
907
|
+
checkFutureTimestamps: true;
|
|
908
|
+
builtPackage: false;
|
|
909
|
+
leftoverExtensions: string[];
|
|
910
|
+
docDirsNotInstalled: string[];
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
readonly 'compiled-code': {
|
|
915
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
916
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/compiled-code").CompiledCodeConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
917
|
+
results: import("./rules/cmd-check/file-checks").FileResult<import("./rules/cmd-check/compiled-code").CompiledCodeKind>[];
|
|
918
|
+
'.meta': {
|
|
919
|
+
consideredFiles: number;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
readonly prettyPrint: {
|
|
923
|
+
readonly query: (result: import("./rules/cmd-check/compiled-code").CompiledCodeResult) => string;
|
|
924
|
+
readonly full: (result: import("./rules/cmd-check/compiled-code").CompiledCodeResult) => string;
|
|
925
|
+
};
|
|
926
|
+
readonly info: {
|
|
927
|
+
readonly name: "Compiled Code";
|
|
928
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
|
|
929
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
930
|
+
readonly description: "Finds problems in `src/` and the build files: non-portable Makevars flags, BLAS/LAPACK and OpenMP flag use, GNU make extensions, pragmas, line endings, Fortran KIND, the C++ standard, calls to non-API or non-portable entry points, and `useDynLib` against `src/`.";
|
|
931
|
+
readonly defaultConfig: () => {
|
|
932
|
+
skip: never[];
|
|
933
|
+
nonPortableFlags: string[];
|
|
934
|
+
allowedFlags: never[];
|
|
935
|
+
knownCxxStandards: string[];
|
|
936
|
+
obsoleteCxxStandards: string[];
|
|
937
|
+
unportableCalls: string[];
|
|
938
|
+
unportableObjects: string[];
|
|
939
|
+
unportableFortran: string[];
|
|
940
|
+
checkNonApi: true;
|
|
941
|
+
extraNonApiEntryPoints: never[];
|
|
942
|
+
checkRegistration: true;
|
|
943
|
+
headerPackages: {
|
|
944
|
+
'Rcpp.h': string;
|
|
945
|
+
'Rcpp/': string;
|
|
946
|
+
'RcppArmadillo.h': string;
|
|
947
|
+
armadillo: string;
|
|
948
|
+
'RcppEigen.h': string;
|
|
949
|
+
'Eigen/': string;
|
|
950
|
+
'cpp11.hpp': string;
|
|
951
|
+
'cpp11/': string;
|
|
952
|
+
'boost/': string;
|
|
953
|
+
'RcppParallel.h': string;
|
|
954
|
+
'RcppThread.hpp': string;
|
|
955
|
+
};
|
|
956
|
+
flagStarKinds: true;
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
readonly 'package-metafiles': {
|
|
961
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
962
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/package-metafiles").PackageMetafilesConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
963
|
+
results: import("./rules/cmd-check/file-checks").FileResult<import("./rules/cmd-check/package-metafiles").PackageMetafilesKind>[];
|
|
964
|
+
'.meta': {
|
|
965
|
+
checkedFiles: number;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
readonly prettyPrint: {
|
|
969
|
+
readonly query: (result: import("./rules/cmd-check/package-metafiles").PackageMetafilesResult) => string;
|
|
970
|
+
readonly full: (result: import("./rules/cmd-check/package-metafiles").PackageMetafilesResult) => string;
|
|
971
|
+
};
|
|
972
|
+
readonly info: {
|
|
973
|
+
readonly name: "Package Metafiles";
|
|
974
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness];
|
|
975
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
976
|
+
readonly description: "Finds problems in the demo index, `INDEX`, `inst/CITATION`, and relative links in README, NEWS, and vignettes.";
|
|
977
|
+
readonly defaultConfig: () => {
|
|
978
|
+
index: true;
|
|
979
|
+
citation: true;
|
|
980
|
+
superseded: true;
|
|
981
|
+
relativeLinks: true;
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
readonly 'rd-files': {
|
|
986
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
987
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/rd-files").RdFilesConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
988
|
+
results: import("./rules/cmd-check/file-checks").FileResult<import("./rules/cmd-check/rd-files").RdFilesKind>[];
|
|
989
|
+
'.meta': {
|
|
990
|
+
checkedFiles: number;
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
readonly prettyPrint: {
|
|
994
|
+
readonly query: (result: import("./rules/cmd-check/rd-files").RdFilesResult) => string;
|
|
995
|
+
readonly full: (result: import("./rules/cmd-check/rd-files").RdFilesResult) => string;
|
|
996
|
+
};
|
|
997
|
+
readonly info: {
|
|
998
|
+
readonly name: "Rd Files";
|
|
999
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness];
|
|
1000
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
1001
|
+
readonly description: "Finds problems in the Rd files: syntax, unknown macros, required and duplicated sections, metadata, cross-references, line widths, contents, and the example code.";
|
|
1002
|
+
readonly defaultConfig: () => {
|
|
1003
|
+
parse: true;
|
|
1004
|
+
minLevel: number;
|
|
1005
|
+
metadata: true;
|
|
1006
|
+
crossReferences: true;
|
|
1007
|
+
uncertainLinks: true;
|
|
1008
|
+
lineWidths: true;
|
|
1009
|
+
usageWidth: number;
|
|
1010
|
+
examplesWidth: number;
|
|
1011
|
+
contents: true;
|
|
1012
|
+
requireValue: false;
|
|
1013
|
+
standardKeywords: false;
|
|
1014
|
+
keywords: string[];
|
|
1015
|
+
docStyle: true;
|
|
1016
|
+
bibentries: true;
|
|
1017
|
+
examples: true;
|
|
1018
|
+
extraMacros: never[];
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
readonly 'package-data': {
|
|
1023
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
1024
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/package-data").PackageDataConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
1025
|
+
results: import("./rules/cmd-check/file-checks").FileResult<import("./rules/cmd-check/package-data").PackageDataKind>[];
|
|
1026
|
+
'.meta': {
|
|
1027
|
+
inspectedDataFiles: number;
|
|
1028
|
+
onDisk: boolean;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
readonly prettyPrint: {
|
|
1032
|
+
query: (r: {
|
|
1033
|
+
readonly message: string;
|
|
1034
|
+
readonly loc: import("..").SourceLocation;
|
|
1035
|
+
}) => string;
|
|
1036
|
+
full: (r: {
|
|
1037
|
+
readonly message: string;
|
|
1038
|
+
readonly loc: import("..").SourceLocation;
|
|
1039
|
+
}) => string;
|
|
1040
|
+
};
|
|
1041
|
+
readonly info: {
|
|
1042
|
+
readonly name: "Package Data";
|
|
1043
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
|
|
1044
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
1045
|
+
readonly description: "Finds problems in `data/` and `R/sysdata.rda`: allowed file types, LazyData, compression, the serialization version R needs, and undocumented data sets.";
|
|
1046
|
+
readonly defaultConfig: () => {
|
|
1047
|
+
maxUncompressedSize: number;
|
|
1048
|
+
checkCompaction: true;
|
|
1049
|
+
checkUndocumented: true;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
readonly 'package-runtime': {
|
|
1054
|
+
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
|
|
1055
|
+
readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/cmd-check/package-runtime").PackageRuntimeConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
1056
|
+
results: import("./rules/cmd-check/package-runtime").PackageRuntimeResult[];
|
|
1057
|
+
'.meta': {};
|
|
1058
|
+
}>;
|
|
1059
|
+
readonly prettyPrint: {
|
|
1060
|
+
query: (r: import("./rules/cmd-check/package-runtime").PackageRuntimeResult) => string;
|
|
1061
|
+
full: (r: import("./rules/cmd-check/package-runtime").PackageRuntimeResult) => string;
|
|
1062
|
+
};
|
|
1063
|
+
readonly info: {
|
|
1064
|
+
readonly name: "Package Runtime";
|
|
1065
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness];
|
|
1066
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
1067
|
+
readonly description: "Finds what makes installing, loading, or running the package fail without doing so: undefined exports, S3 methods without a function, bad NAMESPACE imports, a package attaching itself, tests that never run, test or vignette code that does not parse, missing vignette metadata, and files written into the working directory.";
|
|
1068
|
+
readonly defaultConfig: () => {
|
|
1069
|
+
checkWrites: true;
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
556
1073
|
};
|
|
557
1074
|
export type LintingRuleNames = keyof typeof LintingRules;
|
|
558
1075
|
export type LintingRuleMetadata<Name extends LintingRuleNames> = typeof LintingRules[Name] extends LintingRule<infer _Result, infer Metadata, infer _Config, infer _Info, infer _Elements> ? Metadata : never;
|