@eagleoutice/flowr 2.14.4 → 2.15.1
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 +77 -64
- package/abstract-interpretation/absint-inference.d.ts +347 -0
- package/abstract-interpretation/{absint-visitor.js → absint-inference.js} +327 -97
- package/abstract-interpretation/abstract-semantics.d.ts +246 -0
- package/abstract-interpretation/abstract-semantics.js +3 -0
- package/abstract-interpretation/data-frame/{mappers/arguments.d.ts → arguments.d.ts} +18 -16
- package/abstract-interpretation/data-frame/{mappers/arguments.js → arguments.js} +20 -21
- package/abstract-interpretation/data-frame/dataframe-semantics.d.ts +52 -0
- package/abstract-interpretation/data-frame/dataframe-semantics.js +1665 -0
- package/abstract-interpretation/data-frame/resolve-args.js +4 -4
- package/abstract-interpretation/data-frame/semantics.d.ts +15 -21
- package/abstract-interpretation/data-frame/semantics.js +27 -29
- package/abstract-interpretation/data-frame/shape-inference.d.ts +28 -24
- package/abstract-interpretation/data-frame/shape-inference.js +14 -79
- package/abstract-interpretation/domains/interval-domain.d.ts +5 -1
- package/abstract-interpretation/domains/interval-domain.js +25 -33
- package/abstract-interpretation/domains/multi-value-state-domain.d.ts +6 -3
- package/abstract-interpretation/domains/multi-value-state-domain.js +24 -4
- package/abstract-interpretation/domains/partial-product-domain.d.ts +12 -6
- package/abstract-interpretation/domains/partial-product-domain.js +26 -43
- package/abstract-interpretation/domains/positive-interval-domain.d.ts +1 -6
- package/abstract-interpretation/domains/positive-interval-domain.js +3 -29
- package/abstract-interpretation/domains/product-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-range-domain.d.ts +6 -0
- package/abstract-interpretation/domains/set-range-domain.js +29 -62
- package/abstract-interpretation/domains/state-abstract-domain.d.ts +9 -2
- package/abstract-interpretation/domains/state-abstract-domain.js +26 -37
- package/abstract-interpretation/domains/{state-domain-like.d.ts → state-domain.d.ts} +10 -6
- package/abstract-interpretation/domains/{state-domain-like.js → state-domain.js} +1 -1
- package/abstract-interpretation/value-semantics.d.ts +113 -0
- package/abstract-interpretation/value-semantics.js +115 -0
- package/benchmark/slicer.js +12 -6
- package/benchmark/stats/feature-counts.d.ts +2 -1
- package/benchmark/stats/feature-counts.js +25 -1
- package/benchmark/stats/stats.d.ts +4 -0
- package/benchmark/summarizer/second-phase/graph.js +7 -0
- package/cli/repl/commands/repl-parse.js +11 -22
- package/cli/repl/parser/slice-query-parser.d.ts +2 -0
- package/cli/repl/parser/slice-query-parser.js +1 -0
- package/config.d.ts +30 -205
- package/config.js +37 -3
- package/control-flow/cfg-properties.d.ts +5 -0
- package/control-flow/cfg-properties.js +25 -7
- package/control-flow/control-flow-graph.d.ts +11 -37
- package/control-flow/control-flow-graph.js +33 -77
- package/control-flow/semantic-cfg-guided-visitor.d.ts +63 -320
- package/control-flow/semantic-cfg-guided-visitor.js +65 -320
- package/dataflow/environments/built-in-config.d.ts +2 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +4 -0
- package/dataflow/environments/built-in-props.d.ts +192 -82
- package/dataflow/environments/built-in-props.js +336 -106
- package/dataflow/environments/built-in.d.ts +21 -9
- package/dataflow/environments/built-in.js +43 -12
- package/dataflow/environments/default-builtin-config.d.ts +3219 -313
- package/dataflow/environments/default-builtin-config.js +803 -1012
- package/dataflow/environments/environment.d.ts +26 -49
- package/dataflow/environments/environment.js +34 -47
- package/dataflow/environments/group-generics.d.ts +11 -2
- package/dataflow/environments/group-generics.js +22 -3
- package/dataflow/environments/identifier.d.ts +106 -6
- package/dataflow/environments/identifier.js +19 -1
- package/dataflow/environments/query-fn-props.d.ts +16 -8
- package/dataflow/environments/query-fn-props.js +45 -21
- package/dataflow/environments/resolve-by-name.js +9 -2
- package/dataflow/environments/scoping.d.ts +5 -0
- package/dataflow/environments/scoping.js +11 -0
- package/dataflow/eval/resolve/alias-tracking.d.ts +1 -1
- package/dataflow/eval/resolve/alias-tracking.js +24 -6
- package/dataflow/eval/resolve/resolve-numbers.d.ts +182 -7
- package/dataflow/eval/resolve/resolve-numbers.js +44 -9
- package/dataflow/eval/resolve/resolve-strings.d.ts +79 -2
- package/dataflow/eval/resolve/resolve-strings.js +16 -7
- package/dataflow/eval/resolve/resolve.d.ts +5 -22
- package/dataflow/eval/resolve/resolve.js +34 -34
- package/dataflow/eval/values/general.d.ts +9 -1
- package/dataflow/eval/values/general.js +22 -3
- package/dataflow/eval/values/sets/set-constants.d.ts +5 -0
- package/dataflow/eval/values/sets/set-constants.js +9 -1
- package/dataflow/eval/values/string/string-constants.d.ts +16 -15
- package/dataflow/eval/values/string/string-constants.js +59 -27
- package/dataflow/extractor.d.ts +2 -1
- package/dataflow/extractor.js +16 -4
- package/dataflow/fn/argument-roles.d.ts +35 -0
- package/dataflow/fn/argument-roles.js +252 -0
- package/dataflow/fn/class-declaration.d.ts +148 -0
- package/dataflow/fn/class-declaration.js +317 -0
- package/dataflow/fn/condition-handlers.d.ts +5 -0
- package/dataflow/fn/condition-handlers.js +13 -0
- package/dataflow/fn/exceptions-of-function.d.ts +21 -7
- package/dataflow/fn/exceptions-of-function.js +74 -43
- package/dataflow/fn/frame-reflection.d.ts +46 -0
- package/dataflow/fn/frame-reflection.js +169 -0
- package/dataflow/fn/function-props.d.ts +32 -0
- package/dataflow/fn/function-props.js +160 -0
- package/dataflow/fn/higher-order-function.d.ts +23 -5
- package/dataflow/fn/higher-order-function.js +64 -18
- package/dataflow/fn/strict-function.d.ts +24 -2
- package/dataflow/fn/strict-function.js +49 -19
- package/dataflow/graph/call-graph.js +10 -2
- package/dataflow/graph/df-helper.d.ts +1 -12
- package/dataflow/graph/df-helper.js +2 -19
- package/dataflow/graph/diff-dataflow-graph.d.ts +1 -1
- package/dataflow/graph/diff-dataflow-graph.js +2 -2
- package/dataflow/graph/graph.d.ts +39 -188
- package/dataflow/graph/graph.js +46 -163
- package/dataflow/graph/match-args.d.ts +34 -2
- package/dataflow/graph/match-args.js +45 -12
- package/dataflow/graph/vertex.d.ts +8 -0
- package/dataflow/info.d.ts +7 -5
- package/dataflow/info.js +1 -5
- package/dataflow/internal/control-flow.js +20 -17
- package/dataflow/internal/linker.d.ts +8 -37
- package/dataflow/internal/linker.js +22 -55
- package/dataflow/internal/process/functions/call/built-in/built-in-access.d.ts +1 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +3 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +8 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +43 -50
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.d.ts +4 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +5 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-class-relation.d.ts +23 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-class-relation.js +24 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +0 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +73 -27
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +131 -92
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +17 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +187 -99
- package/dataflow/internal/process/functions/call/built-in/built-in-load.d.ts +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.d.ts +2 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +4 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +1 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +0 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.d.ts +31 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +101 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-dispatch.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +7 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +23 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.d.ts +1 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-string-template.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +22 -1
- package/dataflow/internal/process/functions/call/common.d.ts +4 -6
- package/dataflow/internal/process/functions/call/common.js +2 -2
- package/dataflow/internal/process/functions/call/deferred.d.ts +1 -1
- package/dataflow/internal/process/functions/call/deferred.js +2 -2
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +5 -3
- package/dataflow/internal/process/functions/call/known-call-handling.js +6 -4
- package/dataflow/internal/process/functions/call/named-call-handling.js +19 -13
- package/dataflow/internal/process/functions/call/quoted.d.ts +2 -2
- package/dataflow/internal/process/functions/call/quoted.js +144 -28
- package/dataflow/origin/dfg-get-origin.js +23 -10
- package/dataflow/processor.d.ts +2 -1
- package/dataflow/processor.js +6 -0
- package/documentation/data/interface/doc-writing-code.js +2 -0
- package/documentation/doc-util/doc-search.js +1 -1
- package/documentation/wiki-absint.d.ts +11 -14
- package/documentation/wiki-absint.js +73 -59
- package/documentation/wiki-core.js +64 -24
- package/documentation/wiki-linter.js +1 -0
- package/documentation/wiki-query.js +82 -264
- package/documentation/wiki-signature-database.js +17 -5
- package/gas.d.ts +91 -47
- package/gas.js +97 -13
- package/index.d.ts +31 -0
- package/index.js +52 -0
- package/linter/linter-rules.d.ts +87 -23
- package/linter/linter-rules.js +3 -1
- package/linter/rules/absolute-path.d.ts +1 -1
- package/linter/rules/dataframe-access-validation.d.ts +1 -1
- package/linter/rules/dataframe-access-validation.js +10 -8
- package/linter/rules/dead-code.d.ts +1 -1
- package/linter/rules/deprecated-functions.js +14 -5
- package/linter/rules/file-path-validity.d.ts +1 -1
- package/linter/rules/naming-convention.d.ts +1 -1
- package/linter/rules/naming-convention.js +13 -2
- package/linter/rules/network-functions.d.ts +10 -5
- package/linter/rules/network-functions.js +48 -36
- package/linter/rules/no-leaked-credentials.d.ts +1 -1
- package/linter/rules/problematic-inputs.d.ts +1 -1
- package/linter/rules/problematic-inputs.js +1 -1
- package/linter/rules/seeded-randomness.d.ts +3 -2
- package/linter/rules/seeded-randomness.js +7 -3
- package/linter/rules/software-has-license.d.ts +1 -1
- package/linter/rules/software-has-tests.d.ts +1 -1
- package/linter/rules/stop-with-call-arg.d.ts +1 -1
- package/linter/rules/syntactically-valid.d.ts +1 -1
- package/linter/rules/unclosed-connection.d.ts +3 -3
- package/linter/rules/unclosed-connection.js +3 -4
- package/linter/rules/undefined-symbol.d.ts +1 -1
- package/linter/rules/unescaped-arguments.d.ts +161 -0
- package/linter/rules/unescaped-arguments.js +293 -0
- package/linter/rules/unused-definition.d.ts +1 -1
- package/linter/rules/unused-definition.js +49 -4
- package/linter/rules/unused-import.d.ts +1 -1
- package/linter/rules/useless-loop.d.ts +1 -1
- package/package.json +3 -198
- package/project/context/flowr-analyzer-environment-context.d.ts +12 -1
- package/project/context/flowr-analyzer-environment-context.js +33 -1
- package/project/context/flowr-analyzer-files-context.d.ts +24 -1
- package/project/context/flowr-analyzer-files-context.js +42 -21
- package/project/context/flowr-analyzer-functions-context.d.ts +8 -0
- package/project/context/flowr-analyzer-functions-context.js +2 -0
- package/project/context/flowr-analyzer-gas-context.d.ts +9 -1
- package/project/context/flowr-analyzer-gas-context.js +21 -0
- package/project/context/flowr-file.d.ts +16 -1
- package/project/context/flowr-file.js +26 -2
- package/project/plugins/file-plugins/files/flowr-description-file.d.ts +19 -20
- package/project/plugins/file-plugins/files/flowr-description-file.js +55 -41
- package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +9 -4
- package/project/plugins/file-plugins/files/flowr-jupyter-file.js +11 -3
- package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +6 -9
- package/project/plugins/file-plugins/files/flowr-manifest-files.js +5 -21
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +11 -12
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +48 -61
- package/project/plugins/file-plugins/files/flowr-news-file.d.ts +3 -12
- package/project/plugins/file-plugins/files/flowr-news-file.js +2 -19
- package/project/plugins/file-plugins/files/flowr-rd-file.d.ts +145 -0
- package/project/plugins/file-plugins/files/flowr-rd-file.js +676 -0
- package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +122 -422
- package/project/plugins/file-plugins/files/flowr-rda-file.js +517 -1005
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +8 -2
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +10 -1
- package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +7 -2
- package/project/plugins/file-plugins/files/flowr-sweave-file.js +9 -1
- package/project/plugins/file-plugins/files/flowr-sysdata-file.d.ts +17 -0
- package/project/plugins/file-plugins/files/flowr-sysdata-file.js +40 -0
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.d.ts +2 -0
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +3 -1
- package/project/plugins/file-plugins/flowr-analyzer-rd-file-plugin.d.ts +58 -0
- package/project/plugins/file-plugins/flowr-analyzer-rd-file-plugin.js +95 -0
- package/project/plugins/file-plugins/flowr-analyzer-sysdata-file-plugin.d.ts +23 -0
- package/project/plugins/file-plugins/flowr-analyzer-sysdata-file-plugin.js +33 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +33 -72
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-namespace-file-plugin.js +17 -15
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +20 -37
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +29 -53
- package/project/plugins/package-version-plugins/package.js +2 -1
- package/project/plugins/plugin-registry.d.ts +3 -1
- package/project/plugins/plugin-registry.js +11 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +20 -4
- package/project/sigdb/build.d.ts +9 -15
- package/project/sigdb/build.js +101 -42
- package/project/sigdb/decode.d.ts +10 -4
- package/project/sigdb/decode.js +60 -21
- package/project/sigdb/memory-source.d.ts +4 -0
- package/project/sigdb/memory-source.js +8 -0
- package/project/sigdb/reader.d.ts +57 -100
- package/project/sigdb/reader.js +157 -108
- package/project/sigdb/schema.d.ts +90 -26
- package/project/sigdb/schema.js +12 -6
- package/queries/base-query-format.d.ts +7 -0
- package/queries/base-query-format.js +29 -0
- package/queries/catalog/absint-query/absint-query-executor.js +8 -6
- package/queries/catalog/absint-query/absint-query-format.d.ts +20 -9
- package/queries/catalog/absint-query/absint-query-format.js +32 -19
- package/queries/catalog/call-context-query/call-context-query-executor.js +3 -3
- package/queries/catalog/call-graph-query/call-graph-query-format.d.ts +1 -1
- package/queries/catalog/cluster-query/cluster-query-format.d.ts +1 -1
- package/queries/catalog/control-flow-query/control-flow-query-format.d.ts +1 -1
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.js +1 -1
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.d.ts +1 -1
- package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +1 -1
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +33 -7
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +1 -1
- package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +2 -2
- package/queries/catalog/dependencies-query/function-info/derived-functions.js +14 -4
- package/queries/catalog/dependencies-query/function-info/read-functions.js +7 -121
- package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +1 -1
- package/queries/catalog/dependencies-query/function-info/statistics-functions.js +2 -2
- package/queries/catalog/dependencies-query/function-info/visualize-functions.js +4 -46
- package/queries/catalog/dependencies-query/function-info/write-functions.js +3 -76
- package/queries/catalog/dependencies-query/implicit-echo.js +2 -2
- package/queries/catalog/dependencies-query/link-devices.d.ts +2 -2
- package/queries/catalog/dependencies-query/link-devices.js +6 -7
- package/queries/catalog/dice-query/dice-query-executor.js +1 -1
- package/queries/catalog/dice-query/dice-query-format.d.ts +1 -1
- package/queries/catalog/does-call-query/does-call-query-executor.js +4 -0
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +7 -1
- package/queries/catalog/files-query/files-query-format.d.ts +1 -1
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +1 -1
- package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +1 -1
- package/queries/catalog/id-map-query/id-map-query-format.d.ts +1 -1
- package/queries/catalog/input-sources-query/input-source-functions.d.ts +1 -1
- package/queries/catalog/input-sources-query/input-source-functions.js +2 -2
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +7 -17
- package/queries/catalog/input-sources-query/input-sources-query-format.js +11 -27
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +1 -1
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +3 -8
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +2 -11
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.d.ts +4 -0
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +60 -0
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +35 -0
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +63 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +3 -6
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +3 -8
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +2 -11
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +3 -8
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.js +2 -12
- package/queries/catalog/linter-query/linter-query-format.d.ts +1 -1
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.d.ts +1 -1
- package/queries/catalog/origin-query/origin-query-format.d.ts +1 -1
- package/queries/catalog/project-query/project-query-format.d.ts +1 -1
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +3 -8
- package/queries/catalog/provenance-query/provenance-query-format.js +2 -14
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +1 -1
- package/queries/catalog/search-query/search-query-format.d.ts +1 -1
- package/queries/catalog/signature-query/signature-query-executor.d.ts +5 -10
- package/queries/catalog/signature-query/signature-query-executor.js +87 -93
- package/queries/catalog/signature-query/signature-query-format.d.ts +20 -5
- package/queries/catalog/signature-query/signature-query-format.js +16 -4
- package/queries/catalog/signature-query/signature-query-render.js +18 -4
- package/queries/catalog/slice-query-options.d.ts +14 -0
- package/queries/catalog/slice-query-options.js +15 -0
- package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +2 -1
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +3 -2
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +4 -3
- package/queries/catalog/static-slice-query/static-slice-query-format.js +7 -5
- package/queries/query-function-filter.d.ts +8 -3
- package/queries/query-function-filter.js +16 -6
- package/queries/query.d.ts +38 -38
- package/queries/query.js +30 -4
- package/r-bridge/lang-4.x/ast/model/model.d.ts +5 -0
- package/r-bridge/lang-4.x/ast/model/model.js +14 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +17 -9
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +35 -27
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +33 -22
- package/reconstruct/reconstruct.d.ts +9 -20
- package/reconstruct/reconstruct.js +66 -28
- package/search/flowr-search-filters.d.ts +7 -6
- package/search/flowr-search-filters.js +6 -4
- package/search/search-executor/search-enrichers.d.ts +10 -10
- package/search/search-executor/search-enrichers.js +32 -3
- package/search/search-executor/search-transformer.js +15 -23
- package/slicing/criterion/parse.js +2 -12
- package/slicing/static/slice-call.js +1 -8
- package/slicing/static/static-slicer.js +1 -1
- package/util/collections/bimap.js +14 -6
- package/util/objects.js +16 -17
- package/util/r-value.d.ts +5 -4
- package/util/record.d.ts +38 -3
- package/util/record.js +48 -1
- package/util/simple-df/dfg-ascii.js +1 -1
- package/util/text/strings.d.ts +5 -0
- package/util/text/strings.js +10 -0
- package/util/version.js +2 -2
- package/abstract-interpretation/absint-visitor.d.ts +0 -223
- package/abstract-interpretation/data-frame/mappers/access-mapper.d.ts +0 -19
- package/abstract-interpretation/data-frame/mappers/access-mapper.js +0 -151
- package/abstract-interpretation/data-frame/mappers/function-mapper.d.ts +0 -287
- package/abstract-interpretation/data-frame/mappers/function-mapper.js +0 -1096
- package/abstract-interpretation/data-frame/mappers/replacement-mapper.d.ts +0 -15
- package/abstract-interpretation/data-frame/mappers/replacement-mapper.js +0 -207
- package/queries/catalog/inspect-strictness-query/inspect-strictness-query-executor.d.ts +0 -6
- package/queries/catalog/inspect-strictness-query/inspect-strictness-query-executor.js +0 -25
- package/queries/catalog/inspect-strictness-query/inspect-strictness-query-format.d.ts +0 -31
- package/queries/catalog/inspect-strictness-query/inspect-strictness-query-format.js +0 -56
package/linter/linter-rules.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { LintingRule } from './linter-format';
|
|
|
6
6
|
export declare const LintingRules: {
|
|
7
7
|
readonly 'deprecated-functions': {
|
|
8
8
|
readonly createSearch: (_config: import("./rules/deprecated-functions").DeprecatedFunctionsConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with"], 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>[]>>>;
|
|
9
|
-
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/deprecated-functions").DeprecatedFunctionsConfig, data: import("
|
|
9
|
+
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/deprecated-functions").DeprecatedFunctionsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
10
10
|
results: import("./rules/deprecated-functions").DeprecatedFunctionRuleResult[];
|
|
11
11
|
'.meta': {
|
|
12
12
|
builtin: number;
|
|
@@ -30,7 +30,7 @@ export declare const LintingRules: {
|
|
|
30
30
|
};
|
|
31
31
|
readonly 'file-path-validity': {
|
|
32
32
|
readonly createSearch: (config: import("./rules/file-path-validity").FilePathValidityConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", ["with"], 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>[]>>>;
|
|
33
|
-
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/file-path-validity").FilePathValidityConfig, data: import("
|
|
33
|
+
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/file-path-validity").FilePathValidityConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
34
34
|
results: import("./rules/file-path-validity").FilePathValidityResult[];
|
|
35
35
|
".meta": import("./rules/file-path-validity").FilePathValidityMetadata;
|
|
36
36
|
}>;
|
|
@@ -53,7 +53,7 @@ export declare const LintingRules: {
|
|
|
53
53
|
};
|
|
54
54
|
readonly 'seeded-randomness': {
|
|
55
55
|
readonly createSearch: (config: import("./rules/seeded-randomness").SeededRandomnessConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with", "filter", "with"], 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>[]>>>;
|
|
56
|
-
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/seeded-randomness").SeededRandomnessConfig, data: import("
|
|
56
|
+
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/seeded-randomness").SeededRandomnessConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
57
57
|
results: {
|
|
58
58
|
involvedId: import("../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId;
|
|
59
59
|
certainty: import("./linter-format").LintingResultCertainty;
|
|
@@ -82,7 +82,7 @@ export declare const LintingRules: {
|
|
|
82
82
|
};
|
|
83
83
|
readonly 'absolute-file-paths': {
|
|
84
84
|
readonly createSearch: (config: import("./rules/absolute-path").AbsoluteFilePathConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", ["unique"], 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>[]>>;
|
|
85
|
-
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/absolute-path").AbsoluteFilePathConfig, data: import("
|
|
85
|
+
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/absolute-path").AbsoluteFilePathConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
86
86
|
results: import("./rules/absolute-path").AbsoluteFilePathResult[];
|
|
87
87
|
".meta": import("./rules/absolute-path").AbsoluteFilePathMetadata;
|
|
88
88
|
}>;
|
|
@@ -109,7 +109,7 @@ export declare const LintingRules: {
|
|
|
109
109
|
};
|
|
110
110
|
readonly 'unused-definitions': {
|
|
111
111
|
readonly createSearch: (config: import("./rules/unused-definition").UnusedDefinitionConfig) => 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>[]>>>;
|
|
112
|
-
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/unused-definition").UnusedDefinitionConfig, data: import("
|
|
112
|
+
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/unused-definition").UnusedDefinitionConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
113
113
|
results: import("./rules/unused-definition").UnusedDefinitionResult[];
|
|
114
114
|
".meta": import("./rules/unused-definition").UnusedDefinitionMetadata;
|
|
115
115
|
}>;
|
|
@@ -130,7 +130,7 @@ export declare const LintingRules: {
|
|
|
130
130
|
};
|
|
131
131
|
readonly 'naming-convention': {
|
|
132
132
|
readonly createSearch: (_config: import("./rules/naming-convention").NamingConventionConfig) => 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>[]>>>;
|
|
133
|
-
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/naming-convention").NamingConventionConfig, data: import("
|
|
133
|
+
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/naming-convention").NamingConventionConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
134
134
|
results: import("./rules/naming-convention").NamingConventionResult[];
|
|
135
135
|
'.meta': {
|
|
136
136
|
numMatches: number;
|
|
@@ -155,7 +155,7 @@ export declare const LintingRules: {
|
|
|
155
155
|
};
|
|
156
156
|
readonly 'network-functions': {
|
|
157
157
|
readonly createSearch: (config: import("./rules/network-functions").NetworkFunctionsConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "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>[]>>>;
|
|
158
|
-
readonly processSearchResult: (e: 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>[]>, c: import("./rules/network-functions").NetworkFunctionsConfig, d: import("
|
|
158
|
+
readonly processSearchResult: (e: 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>[]>, c: import("./rules/network-functions").NetworkFunctionsConfig, d: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
159
159
|
results: import("./rules/function-finder-util").FunctionsResult[];
|
|
160
160
|
'.meta': import("./rules/function-finder-util").FunctionsMetadata;
|
|
161
161
|
}>;
|
|
@@ -169,16 +169,13 @@ export declare const LintingRules: {
|
|
|
169
169
|
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
170
170
|
readonly description: "Marks network functions that execute network operations, such as downloading files or making HTTP requests.";
|
|
171
171
|
readonly defaultConfig: {
|
|
172
|
-
readonly fns:
|
|
173
|
-
name: import("../dataflow/environments/identifier").Identifier;
|
|
174
|
-
onlyTriggerWithArgument: RegExp;
|
|
175
|
-
}[];
|
|
172
|
+
readonly fns: import("./rules/network-functions").NetworkFunction[];
|
|
176
173
|
};
|
|
177
174
|
};
|
|
178
175
|
};
|
|
179
176
|
readonly 'dataframe-access-validation': {
|
|
180
177
|
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", [], 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>[]>>;
|
|
181
|
-
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/dataframe-access-validation").DataFrameAccessValidationConfig, data: import("
|
|
178
|
+
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/dataframe-access-validation").DataFrameAccessValidationConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
182
179
|
results: import("./rules/dataframe-access-validation").DataFrameAccessValidationResult[];
|
|
183
180
|
'.meta': import("./rules/dataframe-access-validation").DataFrameAccessValidationMetadata;
|
|
184
181
|
}>;
|
|
@@ -198,7 +195,7 @@ export declare const LintingRules: {
|
|
|
198
195
|
};
|
|
199
196
|
readonly 'dead-code': {
|
|
200
197
|
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, _data: import("
|
|
198
|
+
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>) => {
|
|
202
199
|
results: import("./linter-format").LintingResult[];
|
|
203
200
|
};
|
|
204
201
|
readonly prettyPrint: {
|
|
@@ -215,7 +212,7 @@ export declare const LintingRules: {
|
|
|
215
212
|
};
|
|
216
213
|
readonly 'useless-loop': {
|
|
217
214
|
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>[]>>>;
|
|
218
|
-
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>[]>, useLessLoopConfig: import("./rules/useless-loop").UselessLoopConfig, data: import("
|
|
215
|
+
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>[]>, useLessLoopConfig: import("./rules/useless-loop").UselessLoopConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
219
216
|
results: {
|
|
220
217
|
certainty: import("./linter-format").LintingResultCertainty.Certain;
|
|
221
218
|
name: string;
|
|
@@ -242,7 +239,7 @@ export declare const LintingRules: {
|
|
|
242
239
|
};
|
|
243
240
|
readonly 'problematic-inputs': {
|
|
244
241
|
readonly createSearch: (config: import("./rules/problematic-inputs").ProblematicInputsConfig) => 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>[]>>;
|
|
245
|
-
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/problematic-inputs").ProblematicInputsConfig, data: import("
|
|
242
|
+
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/problematic-inputs").ProblematicInputsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
246
243
|
results: import("./rules/problematic-inputs").ProblematicInputsResult[];
|
|
247
244
|
}>;
|
|
248
245
|
readonly prettyPrint: {
|
|
@@ -262,7 +259,7 @@ export declare const LintingRules: {
|
|
|
262
259
|
};
|
|
263
260
|
readonly 'stop-call': {
|
|
264
261
|
readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"get", ["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>[]>>>;
|
|
265
|
-
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("
|
|
262
|
+
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<{
|
|
266
263
|
results: import("ts-essentials").Writable<import("./rules/stop-with-call-arg").StopWithCallResult>[];
|
|
267
264
|
'.meta': import("./rules/stop-with-call-arg").StopWithCallMetadata;
|
|
268
265
|
}>;
|
|
@@ -298,7 +295,7 @@ export declare const LintingRules: {
|
|
|
298
295
|
};
|
|
299
296
|
readonly 'software-has-license': {
|
|
300
297
|
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>[]>>;
|
|
301
|
-
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("
|
|
298
|
+
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>) => {
|
|
302
299
|
results: import("./rules/software-has-license").SoftwareHasLicenseResult[];
|
|
303
300
|
'.meta': {};
|
|
304
301
|
};
|
|
@@ -318,7 +315,7 @@ export declare const LintingRules: {
|
|
|
318
315
|
};
|
|
319
316
|
readonly 'software-has-tests': {
|
|
320
317
|
readonly createSearch: (config: import("./rules/software-has-tests").SoftwareHasTestsConfig) => 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>[]>>;
|
|
321
|
-
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-tests").SoftwareHasTestsConfig, data: import("
|
|
318
|
+
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-tests").SoftwareHasTestsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
|
|
322
319
|
results: import("./rules/software-has-tests").SoftwareHasTestsResult[];
|
|
323
320
|
'.meta': {
|
|
324
321
|
testFilesFound: number;
|
|
@@ -341,7 +338,7 @@ export declare const LintingRules: {
|
|
|
341
338
|
};
|
|
342
339
|
readonly 'no-leaked-credentials': {
|
|
343
340
|
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>[]>>>;
|
|
344
|
-
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/no-leaked-credentials").NoLeakedCredentialsConfig, data: import("
|
|
341
|
+
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/no-leaked-credentials").NoLeakedCredentialsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
345
342
|
results: import("./rules/no-leaked-credentials").NoLeakedCredentialsResult[];
|
|
346
343
|
".meta": import("./rules/no-leaked-credentials").NoLeakedCredentialsMetadata;
|
|
347
344
|
}>;
|
|
@@ -362,7 +359,7 @@ export declare const LintingRules: {
|
|
|
362
359
|
};
|
|
363
360
|
readonly 'undefined-symbol': {
|
|
364
361
|
readonly createSearch: (_config: import("./rules/undefined-symbol").UndefinedSymbolConfig) => 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>[]>>>;
|
|
365
|
-
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/undefined-symbol").UndefinedSymbolConfig, data: import("
|
|
362
|
+
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/undefined-symbol").UndefinedSymbolConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
366
363
|
results: import("./rules/undefined-symbol").UndefinedSymbolResult[];
|
|
367
364
|
'.meta': import("./rules/undefined-symbol").UndefinedSymbolMetadata;
|
|
368
365
|
}>;
|
|
@@ -384,7 +381,7 @@ export declare const LintingRules: {
|
|
|
384
381
|
};
|
|
385
382
|
readonly 'unused-import': {
|
|
386
383
|
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>[]>>;
|
|
387
|
-
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/unused-import").UnusedImportConfig, data: import("
|
|
384
|
+
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/unused-import").UnusedImportConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
388
385
|
results: {
|
|
389
386
|
certainty: import("./linter-format").LintingResultCertainty;
|
|
390
387
|
involvedId: import("../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId;
|
|
@@ -411,7 +408,7 @@ export declare const LintingRules: {
|
|
|
411
408
|
};
|
|
412
409
|
readonly 'syntactically-valid': {
|
|
413
410
|
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>[]>>;
|
|
414
|
-
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/syntactically-valid").SyntacticallyValidConfig, data: import("
|
|
411
|
+
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/syntactically-valid").SyntacticallyValidConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
415
412
|
results: import("./rules/syntactically-valid").SyntacticallyValidResult[];
|
|
416
413
|
".meta": import("./rules/syntactically-valid").SyntacticallyValidMetadata;
|
|
417
414
|
}>;
|
|
@@ -433,7 +430,7 @@ export declare const LintingRules: {
|
|
|
433
430
|
};
|
|
434
431
|
readonly 'unclosed-connection': {
|
|
435
432
|
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>[]>>>;
|
|
436
|
-
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/unclosed-connection").UnclosedConnectionConfig, data: import("
|
|
433
|
+
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/unclosed-connection").UnclosedConnectionConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
437
434
|
results: import("./linter-format").LintingResult[];
|
|
438
435
|
'.meta': {
|
|
439
436
|
totalOpened: number;
|
|
@@ -455,6 +452,73 @@ export declare const LintingRules: {
|
|
|
455
452
|
};
|
|
456
453
|
};
|
|
457
454
|
};
|
|
455
|
+
readonly 'unescaped-arguments': {
|
|
456
|
+
readonly createSearch: (config: import("./rules/unescaped-arguments").UnescapedArgumentsConfig) => 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>[]>>;
|
|
457
|
+
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/unescaped-arguments").UnescapedArgumentsConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
|
|
458
|
+
results: import("./rules/unescaped-arguments").UnescapedArgumentsResult[];
|
|
459
|
+
'.meta': {
|
|
460
|
+
totalCriticalArguments: number;
|
|
461
|
+
totalEscapedArguments: number;
|
|
462
|
+
};
|
|
463
|
+
}>;
|
|
464
|
+
readonly prettyPrint: {
|
|
465
|
+
readonly query: (result: import("./rules/unescaped-arguments").UnescapedArgumentsResult) => string;
|
|
466
|
+
readonly full: (result: import("./rules/unescaped-arguments").UnescapedArgumentsResult) => string;
|
|
467
|
+
};
|
|
468
|
+
readonly info: {
|
|
469
|
+
readonly name: "Unescaped Arguments";
|
|
470
|
+
readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Shiny, import("./linter-tags").LintingRuleTag.QuickFix];
|
|
471
|
+
readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
|
|
472
|
+
readonly description: "Detects arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.";
|
|
473
|
+
readonly defaultConfig: {
|
|
474
|
+
readonly categories: {
|
|
475
|
+
readonly system: {
|
|
476
|
+
readonly criticalCalls: import("../dataflow/environments/built-in-props").SemanticCallTag.Process;
|
|
477
|
+
readonly criticalArgs: import("../dataflow/environments/built-in-props").ArgProp.Injectable;
|
|
478
|
+
readonly sanitizers: readonly [import("../dataflow/environments/identifier").Identifier];
|
|
479
|
+
readonly quickFix: {
|
|
480
|
+
readonly call: "shQuote";
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
readonly eval: {
|
|
484
|
+
readonly criticalCalls: import("../dataflow/environments/built-in-props").SemanticCallTag.Eval;
|
|
485
|
+
readonly criticalArgs: import("../dataflow/environments/built-in-props").ArgProp.Injectable;
|
|
486
|
+
readonly sanitizers: readonly [import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier];
|
|
487
|
+
};
|
|
488
|
+
readonly database: {
|
|
489
|
+
readonly criticalCalls: import("../dataflow/environments/built-in-props").SemanticCallTag.Database;
|
|
490
|
+
readonly criticalArgs: import("../dataflow/environments/built-in-props").ArgProp.Injectable;
|
|
491
|
+
readonly sanitizers: readonly [import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier];
|
|
492
|
+
readonly quickFix: {
|
|
493
|
+
readonly call: import("../dataflow/environments/identifier").Identifier;
|
|
494
|
+
readonly firstArg: import("../dataflow/environments/built-in-props").ArgProp.Handle;
|
|
495
|
+
readonly partsOnly: true;
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
readonly html: {
|
|
499
|
+
readonly criticalCalls: import("../dataflow/environments/built-in-props").SemanticCallTag.Html;
|
|
500
|
+
readonly criticalArgs: import("../dataflow/environments/built-in-props").ArgProp.Injectable;
|
|
501
|
+
readonly sanitizers: readonly [import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier];
|
|
502
|
+
readonly quickFix: {
|
|
503
|
+
readonly call: import("../dataflow/environments/identifier").Identifier;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
readonly javascript: {
|
|
507
|
+
readonly criticalCalls: import("../dataflow/environments/built-in-props").SemanticCallTag.JavaScript;
|
|
508
|
+
readonly criticalArgs: import("../dataflow/environments/built-in-props").ArgProp.Injectable;
|
|
509
|
+
readonly sanitizers: readonly [import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier, import("../dataflow/environments/identifier").Identifier];
|
|
510
|
+
readonly quickFix: {
|
|
511
|
+
readonly call: import("../dataflow/environments/identifier").Identifier;
|
|
512
|
+
readonly partsOnly: true;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly disabledCategories: readonly [];
|
|
517
|
+
readonly acceptedInputs: readonly import("../queries/catalog/input-sources-query/input-types").InputType[];
|
|
518
|
+
readonly maxDecentDepth: 5;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
458
522
|
};
|
|
459
523
|
export type LintingRuleNames = keyof typeof LintingRules;
|
|
460
524
|
export type LintingRuleMetadata<Name extends LintingRuleNames> = typeof LintingRules[Name] extends LintingRule<infer _Result, infer Metadata, infer _Config, infer _Info, infer _Elements> ? Metadata : never;
|
package/linter/linter-rules.js
CHANGED
|
@@ -21,6 +21,7 @@ const undefined_symbol_1 = require("./rules/undefined-symbol");
|
|
|
21
21
|
const unused_import_1 = require("./rules/unused-import");
|
|
22
22
|
const syntactically_valid_1 = require("./rules/syntactically-valid");
|
|
23
23
|
const unclosed_connection_1 = require("./rules/unclosed-connection");
|
|
24
|
+
const unescaped_arguments_1 = require("./rules/unescaped-arguments");
|
|
24
25
|
/**
|
|
25
26
|
* The registry of currently supported linting rules.
|
|
26
27
|
* A linting rule can be executed on a dataflow pipeline result using {@link executeLintingRule}.
|
|
@@ -45,6 +46,7 @@ exports.LintingRules = {
|
|
|
45
46
|
'undefined-symbol': undefined_symbol_1.UNDEFINED_SYMBOL,
|
|
46
47
|
'unused-import': unused_import_1.UNUSED_IMPORT,
|
|
47
48
|
'syntactically-valid': syntactically_valid_1.SYNTACTICALLY_VALID,
|
|
48
|
-
'unclosed-connection': unclosed_connection_1.UNCLOSED_CONNECTION
|
|
49
|
+
'unclosed-connection': unclosed_connection_1.UNCLOSED_CONNECTION,
|
|
50
|
+
'unescaped-arguments': unescaped_arguments_1.UNESCAPED_ARGUMENTS
|
|
49
51
|
};
|
|
50
52
|
//# sourceMappingURL=linter-rules.js.map
|
|
@@ -35,7 +35,7 @@ export interface AbsoluteFilePathMetadata extends MergeableRecord {
|
|
|
35
35
|
}
|
|
36
36
|
export declare const ABSOLUTE_PATH: {
|
|
37
37
|
readonly createSearch: (config: AbsoluteFilePathConfig) => import("../../search/flowr-search-builder").FlowrSearchBuilder<"from-query", ["unique"], 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>[]>>;
|
|
38
|
-
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: AbsoluteFilePathConfig, data: import("
|
|
38
|
+
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: AbsoluteFilePathConfig, data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => Promise<{
|
|
39
39
|
results: AbsoluteFilePathResult[];
|
|
40
40
|
".meta": AbsoluteFilePathMetadata;
|
|
41
41
|
}>;
|
|
@@ -27,7 +27,7 @@ export interface DataFrameAccessValidationMetadata extends MergeableRecord {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const DATA_FRAME_ACCESS_VALIDATION: {
|
|
29
29
|
readonly createSearch: () => import("../../search/flowr-search-builder").FlowrSearchBuilder<"all", [], ParentInformation, FlowrSearchElements<ParentInformation, import("../../search/flowr-search").FlowrSearchElement<ParentInformation>[]>>;
|
|
30
|
-
readonly processSearchResult: (elements: FlowrSearchElements<ParentInformation, import("../../search/flowr-search").FlowrSearchElement<ParentInformation>[]>, config: DataFrameAccessValidationConfig, data: import("
|
|
30
|
+
readonly processSearchResult: (elements: FlowrSearchElements<ParentInformation, import("../../search/flowr-search").FlowrSearchElement<ParentInformation>[]>, config: DataFrameAccessValidationConfig, data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => Promise<{
|
|
31
31
|
results: DataFrameAccessValidationResult[];
|
|
32
32
|
'.meta': DataFrameAccessValidationMetadata;
|
|
33
33
|
}>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DATA_FRAME_ACCESS_VALIDATION = void 0;
|
|
4
|
+
const absint_inference_1 = require("../../abstract-interpretation/absint-inference");
|
|
4
5
|
const shape_inference_1 = require("../../abstract-interpretation/data-frame/shape-inference");
|
|
5
6
|
const value_abstract_domain_1 = require("../../abstract-interpretation/domains/value-abstract-domain");
|
|
6
7
|
const config_1 = require("../../config");
|
|
7
8
|
const identifier_1 = require("../../dataflow/environments/identifier");
|
|
9
|
+
const r_symbol_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-symbol");
|
|
8
10
|
const flowr_search_builder_1 = require("../../search/flowr-search-builder");
|
|
11
|
+
const arrays_1 = require("../../util/collections/arrays");
|
|
9
12
|
const logic_1 = require("../../util/logic");
|
|
10
13
|
const range_1 = require("../../util/range");
|
|
11
14
|
const linter_format_1 = require("../linter-format");
|
|
12
15
|
const linter_tags_1 = require("../linter-tags");
|
|
13
|
-
const r_symbol_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-symbol");
|
|
14
|
-
const arrays_1 = require("../../util/collections/arrays");
|
|
15
16
|
exports.DATA_FRAME_ACCESS_VALIDATION = {
|
|
16
17
|
createSearch: () => flowr_search_builder_1.Q.all(),
|
|
17
18
|
processSearchResult: async (elements, config, data) => {
|
|
@@ -27,16 +28,17 @@ exports.DATA_FRAME_ACCESS_VALIDATION = {
|
|
|
27
28
|
return flowrConfig;
|
|
28
29
|
})
|
|
29
30
|
};
|
|
30
|
-
const cfg = await data.controlflow(
|
|
31
|
-
const
|
|
31
|
+
const cfg = await data.controlflow();
|
|
32
|
+
const analysis = new shape_inference_1.DataFrameShapeAnalysis();
|
|
33
|
+
const inference = new absint_inference_1.AbstractInterpreter({ controlFlow: cfg, dfg: dataflow.graph, normalizedAst: normalize, ctx }, analysis);
|
|
32
34
|
inference.start();
|
|
33
|
-
const accessOperations = getAccessOperations(elements,
|
|
35
|
+
const accessOperations = getAccessOperations(elements, analysis.semantics.dataFrame);
|
|
34
36
|
const accesses = [];
|
|
35
37
|
for (const [nodeId, operations] of accessOperations) {
|
|
36
38
|
const access = { nodeId };
|
|
37
39
|
for (const operation of operations) {
|
|
38
40
|
access.operand ??= operation.operand;
|
|
39
|
-
access.operandShape ??= inference.getAbstractValue(operation.operand);
|
|
41
|
+
access.operandShape ??= inference.getAbstractValue(operation.operand, 'dataFrame');
|
|
40
42
|
if (operation.operation === 'accessCols' && operation.columns !== undefined) {
|
|
41
43
|
access.accessedCols ??= [];
|
|
42
44
|
access.accessedCols.push(...operation.columns);
|
|
@@ -90,9 +92,9 @@ exports.DATA_FRAME_ACCESS_VALIDATION = {
|
|
|
90
92
|
defaultConfig: { readLoadedData: false }
|
|
91
93
|
}
|
|
92
94
|
};
|
|
93
|
-
function getAccessOperations(elements,
|
|
95
|
+
function getAccessOperations(elements, semantics) {
|
|
94
96
|
return new Map(elements.getElements()
|
|
95
|
-
.map(element => [element.node.info.id,
|
|
97
|
+
.map(element => [element.node.info.id, semantics.getAbstractOperations(element.node.info.id)
|
|
96
98
|
?.filter(({ operation }) => operation === 'accessCols' || operation === 'accessRows')
|
|
97
99
|
.map(({ operation, operand, type: _type, options: _options, ...args }) => ({ operation, operand, ...args })) ?? []
|
|
98
100
|
])
|
|
@@ -12,7 +12,7 @@ export interface DeadCodeConfig extends MergeableRecord {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const DEAD_CODE: {
|
|
14
14
|
readonly createSearch: (config: 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>[]>>>;
|
|
15
|
-
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: DeadCodeConfig, _data: import("
|
|
15
|
+
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: DeadCodeConfig, _data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => {
|
|
16
16
|
results: LintingResult[];
|
|
17
17
|
};
|
|
18
18
|
readonly prettyPrint: {
|
|
@@ -37,7 +37,9 @@ const GgplotLinewidth = {
|
|
|
37
37
|
};
|
|
38
38
|
const ConditionallyDeprecated = {
|
|
39
39
|
/* https://tidyverse.org/blog/2025/09/ggplot2-4-0-0/#violin--quantiles */
|
|
40
|
-
|
|
40
|
+
/* the quantiles moved to the stat, and the geom only kept arguments styling them, so neither is a rename of
|
|
41
|
+
`draw_quantiles = 0.5`: the value is a quantile, not a linetype, and `quantiles` is no formal of the geom */
|
|
42
|
+
'ggplot2::geom_violin': { whenArgs: [{ argName: 'draw_quantiles', state: DeprecationState.Deprecated, replacedBy: 'stat_ydensity(quantiles)', sinceVersion: r_version_1.RRange.parse('>= 4.0.0') }] },
|
|
41
43
|
'ggplot2::element_line': GgplotLinewidth,
|
|
42
44
|
'ggplot2::element_rect': GgplotLinewidth
|
|
43
45
|
};
|
|
@@ -102,8 +104,7 @@ function certaintyOf(target, owners, attached) {
|
|
|
102
104
|
}
|
|
103
105
|
function functionListFromBuiltinConfig() {
|
|
104
106
|
return default_builtin_config_1.DefaultBuiltinConfig.filter(def => def.type === 'function'
|
|
105
|
-
&& def.config
|
|
106
|
-
&& (def.config.props & built_in_props_1.CallProp.Deprecated) !== 0)
|
|
107
|
+
&& built_in_props_1.CallProps.hasAny(def.config, built_in_props_1.SemanticCallTag.Deprecated))
|
|
107
108
|
.flatMap(def => def.names);
|
|
108
109
|
}
|
|
109
110
|
exports.DEPRECATED_FUNCTIONS = {
|
|
@@ -275,10 +276,18 @@ function doesArgumentValueMatch(info, vertex, analyzer, dataflow, setUncertain)
|
|
|
275
276
|
}
|
|
276
277
|
return true;
|
|
277
278
|
}
|
|
278
|
-
/**
|
|
279
|
+
/**
|
|
280
|
+
* Whether the replacement is a plain name, which is what makes swapping the old one for it a rename at all.
|
|
281
|
+
* A replacement that names where the thing went instead (`stat_ydensity(quantiles)`) says the right thing to a
|
|
282
|
+
* reader and the wrong thing to an editor, so it carries no fix.
|
|
283
|
+
*/
|
|
284
|
+
function isRename(replacedBy) {
|
|
285
|
+
return /^(?:[A-Za-z.][A-Za-z0-9._]*|`[^`]+`)$/.test(replacedBy);
|
|
286
|
+
}
|
|
287
|
+
/** The rename that carries a finding out, when a replacement name is known and swapping it in is one. */
|
|
279
288
|
function renameFix(node, replacedBy, what) {
|
|
280
289
|
const loc = node === undefined ? undefined : range_1.SourceLocation.fromNode(node);
|
|
281
|
-
if (replacedBy === undefined || loc === undefined) {
|
|
290
|
+
if (replacedBy === undefined || loc === undefined || !isRename(replacedBy)) {
|
|
282
291
|
return undefined;
|
|
283
292
|
}
|
|
284
293
|
return [{ type: 'replace', description: `Replace ${what} with \`${replacedBy}\``, replacement: replacedBy, loc }];
|
|
@@ -35,7 +35,7 @@ export interface FilePathValidityMetadata extends MergeableRecord {
|
|
|
35
35
|
}
|
|
36
36
|
export declare const FILE_PATH_VALIDITY: {
|
|
37
37
|
readonly createSearch: (config: FilePathValidityConfig) => import("../../search/flowr-search-builder").FlowrSearchBuilder<"from-query", ["with"], 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>[]>>>;
|
|
38
|
-
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: FilePathValidityConfig, data: import("
|
|
38
|
+
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: FilePathValidityConfig, data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => Promise<{
|
|
39
39
|
results: FilePathValidityResult[];
|
|
40
40
|
".meta": FilePathValidityMetadata;
|
|
41
41
|
}>;
|
|
@@ -58,7 +58,7 @@ export declare function fixCasing(identifier: string, convention: CasingConventi
|
|
|
58
58
|
export declare function createNamingConventionQuickFixes(graph: DataflowGraph, nodeId: NodeId, replacement: string, conv: CasingConvention): LintQuickFixReplacement[] | undefined;
|
|
59
59
|
export declare const NAMING_CONVENTION: {
|
|
60
60
|
readonly createSearch: (_config: NamingConventionConfig) => 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>[]>>>;
|
|
61
|
-
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: NamingConventionConfig, data: import("
|
|
61
|
+
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: NamingConventionConfig, data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => Promise<{
|
|
62
62
|
results: NamingConventionResult[];
|
|
63
63
|
'.meta': {
|
|
64
64
|
numMatches: number;
|
|
@@ -134,10 +134,18 @@ function createNamingConventionQuickFixes(graph, nodeId, replacement, conv) {
|
|
|
134
134
|
if (refs === undefined || idMap === undefined) {
|
|
135
135
|
return undefined;
|
|
136
136
|
}
|
|
137
|
+
/* the name as it is written, which is the only text a rename may overwrite */
|
|
138
|
+
const original = idMap.get(nodeId)?.lexeme;
|
|
139
|
+
if (original === undefined || original === replacement) {
|
|
140
|
+
/* a replacement equal to what is already there is no fix at all */
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
137
143
|
const result = [];
|
|
138
144
|
for (const ref of refs) {
|
|
139
145
|
const node = idMap.get(ref);
|
|
140
|
-
if (node === undefined) {
|
|
146
|
+
if (node === undefined || node.lexeme !== original) {
|
|
147
|
+
/* a reference reached through something else, as `myfield(x) <- v` reaches `x` through the call it
|
|
148
|
+
names, sits at a place holding another name, and writing over it would rename that one instead */
|
|
141
149
|
continue;
|
|
142
150
|
}
|
|
143
151
|
const loc = range_1.SourceLocation.fromNode(node);
|
|
@@ -170,7 +178,10 @@ exports.NAMING_CONVENTION = {
|
|
|
170
178
|
})).filter(e => (0, assert_1.isNotUndefined)(e.loc));
|
|
171
179
|
const casing = config.caseing === 'auto' ? getMostUsedCasing(symbols) : config.caseing;
|
|
172
180
|
const results = symbols
|
|
173
|
-
|
|
181
|
+
/* a name that already reads as the wanted convention is no violation, whatever else it could also be
|
|
182
|
+
read as: `f` carries no separator and no capital, so it is snake_case and camelCase at once */
|
|
183
|
+
.filter(m => !detectPotentialCasings(m.name, config.ignorePrefix).includes(casing)
|
|
184
|
+
&& (!config.ignoreNonAlpha || containsAlpha(m.name)))
|
|
174
185
|
.map(({ id, ...m }) => {
|
|
175
186
|
const fix = fixCasing(m.name, casing, config.ignorePrefix);
|
|
176
187
|
return {
|
|
@@ -6,6 +6,7 @@ import type { ParentInformation } from '../../r-bridge/lang-4.x/ast/model/proces
|
|
|
6
6
|
import type { FunctionInfo } from '../../queries/catalog/dependencies-query/function-info/function-info';
|
|
7
7
|
import { Identifier } from '../../dataflow/environments/identifier';
|
|
8
8
|
import type { MergeableRecord } from '../../util/objects';
|
|
9
|
+
import { BuiltInIndex } from '../../dataflow/environments/query-fn-props';
|
|
9
10
|
export interface NetworkFunctionsConfig extends MergeableRecord {
|
|
10
11
|
/**
|
|
11
12
|
* The list of function names or more detailed {@link NetworkFunction} information that should be marked in the given context if their arguments match.
|
|
@@ -28,9 +29,16 @@ export interface NetworkFunction extends MergeableRecord {
|
|
|
28
29
|
*/
|
|
29
30
|
onlyTriggerWithArgument?: RegExp | string;
|
|
30
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Every built-in that may reach the network, read back from the {@link DefaultBuiltinConfig}: the ones labeled
|
|
34
|
+
* {@link SemanticCallTag.Network} always do, and any call naming an {@link ArgProp.Resource} does whenever that
|
|
35
|
+
* resource is a url rather than a path -- which is what {@link UrlPattern} decides per call site. Label a
|
|
36
|
+
* built-in `Network` or give it a resource parameter and it shows up here; nothing is listed twice.
|
|
37
|
+
*/
|
|
38
|
+
export declare function networkFunctions(index?: BuiltInIndex): NetworkFunction[];
|
|
31
39
|
export declare const NETWORK_FUNCTIONS: {
|
|
32
40
|
readonly createSearch: (config: NetworkFunctionsConfig) => import("../../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with", "filter"], ParentInformation, Promise<import("../../search/flowr-search").FlowrSearchElements<ParentInformation, [] | FlowrSearchElement<ParentInformation>[]>>>;
|
|
33
|
-
readonly processSearchResult: (e: import("../../search/flowr-search").FlowrSearchElements<ParentInformation, FlowrSearchElement<ParentInformation>[]>, c: NetworkFunctionsConfig, d: import("
|
|
41
|
+
readonly processSearchResult: (e: import("../../search/flowr-search").FlowrSearchElements<ParentInformation, FlowrSearchElement<ParentInformation>[]>, c: NetworkFunctionsConfig, d: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => Promise<{
|
|
34
42
|
results: FunctionsResult[];
|
|
35
43
|
'.meta': FunctionsMetadata;
|
|
36
44
|
}>;
|
|
@@ -44,10 +52,7 @@ export declare const NETWORK_FUNCTIONS: {
|
|
|
44
52
|
readonly certainty: LintingRuleCertainty.BestEffort;
|
|
45
53
|
readonly description: "Marks network functions that execute network operations, such as downloading files or making HTTP requests.";
|
|
46
54
|
readonly defaultConfig: {
|
|
47
|
-
readonly fns:
|
|
48
|
-
name: Identifier;
|
|
49
|
-
onlyTriggerWithArgument: RegExp;
|
|
50
|
-
}[];
|
|
55
|
+
readonly fns: NetworkFunction[];
|
|
51
56
|
};
|
|
52
57
|
};
|
|
53
58
|
};
|