@eagleoutice/flowr 2.16.2 → 2.16.3

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.
Files changed (445) hide show
  1. package/README.md +10 -10
  2. package/abstract-interpretation/data-frame/arguments.js +4 -3
  3. package/abstract-interpretation/data-frame/dataframe-semantics.js +1 -2
  4. package/abstract-interpretation/data-frame/semantics.d.ts +2 -2
  5. package/abstract-interpretation/data-frame/semantics.js +2 -6
  6. package/benchmark/slicer.js +1 -3
  7. package/benchmark/summarizer/first-phase/input.js +1 -12
  8. package/benchmark/summarizer/second-phase/process.d.ts +7 -0
  9. package/benchmark/summarizer/second-phase/process.js +15 -12
  10. package/cli/repl/commands/repl-cfg.js +18 -49
  11. package/cli/repl/commands/repl-clipboard.d.ts +2 -0
  12. package/cli/repl/commands/repl-clipboard.js +5 -0
  13. package/cli/repl/commands/repl-commands.js +2 -2
  14. package/cli/repl/commands/repl-dataflow.js +21 -55
  15. package/cli/repl/commands/repl-normalize.js +15 -28
  16. package/cli/repl/commands/repl-parse.js +2 -2
  17. package/cli/repl/commands/repl-query.js +10 -10
  18. package/cli/repl/commands/repl-signature.js +4 -4
  19. package/cli/repl/server/connection.d.ts +1 -0
  20. package/cli/repl/server/connection.js +8 -30
  21. package/cli/repl/server/messages/message-analysis.js +1 -1
  22. package/config.d.ts +6 -0
  23. package/config.js +7 -4
  24. package/control-flow/cfg-dead-code.js +5 -14
  25. package/control-flow/cfg-to-basic-blocks.js +1 -6
  26. package/control-flow/control-flow-graph.d.ts +2 -16
  27. package/control-flow/control-flow-graph.js +8 -66
  28. package/control-flow/diff-cfg.js +10 -23
  29. package/control-flow/semantic-cfg-guided-visitor.js +5 -11
  30. package/control-flow/simple-visitor.js +2 -2
  31. package/core/steps/pipeline/default-pipelines.d.ts +138 -138
  32. package/data/r-base-packages.generated.js +0 -1
  33. package/data/r-base-primitives.generated.js +0 -1
  34. package/data/r-s3-generics.generated.d.ts +5 -0
  35. package/data/r-s3-generics.generated.js +103 -0
  36. package/dataflow/cluster.js +2 -1
  37. package/dataflow/environments/append.d.ts +1 -0
  38. package/dataflow/environments/built-in-props.d.ts +10 -0
  39. package/dataflow/environments/built-in-props.js +25 -1
  40. package/dataflow/environments/built-in.js +15 -9
  41. package/dataflow/environments/clone.d.ts +1 -0
  42. package/dataflow/environments/clone.js +1 -0
  43. package/dataflow/environments/default-builtin-config.d.ts +188 -14
  44. package/dataflow/environments/default-builtin-config.js +125 -65
  45. package/dataflow/environments/define.d.ts +1 -0
  46. package/dataflow/environments/define.js +1 -0
  47. package/dataflow/environments/environment.d.ts +27 -0
  48. package/dataflow/environments/environment.js +37 -16
  49. package/dataflow/environments/frame-memory.d.ts +9 -1
  50. package/dataflow/environments/frame-memory.js +12 -1
  51. package/dataflow/environments/identifier.d.ts +0 -2
  52. package/dataflow/environments/identifier.js +5 -7
  53. package/dataflow/environments/overwrite.js +1 -0
  54. package/dataflow/environments/query-fn-props.js +2 -3
  55. package/dataflow/environments/scoping.d.ts +3 -0
  56. package/dataflow/environments/scoping.js +3 -0
  57. package/dataflow/eval/resolve/alias-tracking.js +3 -3
  58. package/dataflow/eval/resolve/resolve-argument.d.ts +7 -3
  59. package/dataflow/eval/resolve/resolve-argument.js +16 -11
  60. package/dataflow/eval/resolve/resolve-numbers.js +5 -2
  61. package/dataflow/eval/resolve/resolve-strings.d.ts +1 -1
  62. package/dataflow/eval/resolve/resolve-working-directory.js +2 -2
  63. package/dataflow/eval/resolve/resolve.js +1 -2
  64. package/dataflow/eval/values/intervals/interval-constants.js +1 -6
  65. package/dataflow/eval/values/r-value.js +1 -6
  66. package/dataflow/extractor.js +17 -17
  67. package/dataflow/fn/argument-roles.js +15 -15
  68. package/dataflow/fn/class-declaration.js +7 -7
  69. package/dataflow/fn/frame-reflection.d.ts +1 -23
  70. package/dataflow/fn/frame-reflection.js +8 -95
  71. package/dataflow/fn/function-props.d.ts +0 -3
  72. package/dataflow/fn/function-props.js +9 -11
  73. package/dataflow/fn/function-semantics.d.ts +1 -0
  74. package/dataflow/fn/strict-function.js +15 -14
  75. package/dataflow/graph/call-graph.d.ts +8 -0
  76. package/dataflow/graph/call-graph.js +40 -25
  77. package/dataflow/graph/dataflowgraph-builder.d.ts +0 -60
  78. package/dataflow/graph/dataflowgraph-builder.js +15 -135
  79. package/dataflow/graph/df-helper.d.ts +56 -4
  80. package/dataflow/graph/df-helper.js +116 -1
  81. package/dataflow/graph/diff-dataflow-graph.js +13 -15
  82. package/dataflow/graph/graph-helper.d.ts +20 -0
  83. package/dataflow/graph/graph-helper.js +18 -0
  84. package/dataflow/graph/graph.js +3 -8
  85. package/dataflow/graph/match-args.d.ts +1 -1
  86. package/dataflow/graph/match-args.js +3 -3
  87. package/dataflow/internal/linker.d.ts +4 -10
  88. package/dataflow/internal/linker.js +21 -29
  89. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -8
  90. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +5 -2
  91. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +39 -22
  92. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -21
  93. package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +3 -7
  94. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +6 -11
  95. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +6 -8
  96. package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +14 -13
  97. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +27 -13
  98. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +6 -8
  99. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +33 -35
  100. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +3 -5
  101. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +6 -7
  102. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +12 -5
  103. package/dataflow/internal/process/functions/call/built-in/built-in-list.js +3 -4
  104. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +7 -8
  105. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +5 -6
  106. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +3 -4
  107. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +2 -3
  108. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +5 -7
  109. package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +6 -5
  110. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -2
  111. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +5 -6
  112. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +4 -4
  113. package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +7 -7
  114. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +1 -2
  115. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -3
  116. package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +1 -1
  117. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +5 -7
  118. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +1 -1
  119. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +4 -5
  120. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +8 -9
  121. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +4 -5
  122. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +3 -3
  123. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +36 -38
  124. package/dataflow/internal/process/functions/call/common.d.ts +3 -1
  125. package/dataflow/internal/process/functions/call/common.js +6 -7
  126. package/dataflow/internal/process/functions/call/deferred.js +8 -8
  127. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +11 -4
  128. package/dataflow/internal/process/functions/call/known-call-handling.js +11 -7
  129. package/dataflow/internal/process/functions/call/named-call-handling.js +4 -3
  130. package/dataflow/internal/process/functions/call/nse.js +4 -4
  131. package/dataflow/internal/process/functions/call/quoted.js +16 -14
  132. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +2 -2
  133. package/dataflow/internal/process/functions/process-parameter.js +2 -2
  134. package/dataflow/internal/process/process-named-call.js +1 -1
  135. package/dataflow/origin/dfg-get-origin.js +2 -2
  136. package/dataflow/origin/dfg-get-symbol-refs.d.ts +1 -0
  137. package/dataflow/origin/dfg-get-symbol-refs.js +3 -8
  138. package/documentation/data/faq/wiki-faq-store.js +2 -2
  139. package/documentation/doc-capabilities.js +2 -1
  140. package/documentation/doc-util/doc-functions.js +2 -2
  141. package/documentation/doc-util/doc-repl.js +4 -4
  142. package/documentation/doc-util/doc-types.js +2 -2
  143. package/documentation/wiki-absint.js +2 -1
  144. package/documentation/wiki-cfg.js +2 -1
  145. package/documentation/wiki-create-linting-rules.js +1 -1
  146. package/documentation/wiki-dataflow-graph.js +6 -6
  147. package/documentation/wiki-interface.js +3 -2
  148. package/documentation/wiki-linter.js +54 -4
  149. package/documentation/wiki-mk/doc-maker.js +1 -2
  150. package/documentation/wiki-query.js +25 -0
  151. package/documentation/wiki-search.js +2 -1
  152. package/documentation/wiki-signature-database.js +0 -2
  153. package/linter/linter-executor.js +4 -0
  154. package/linter/linter-rules.d.ts +518 -1
  155. package/linter/linter-rules.js +39 -1
  156. package/linter/linter-tags.d.ts +6 -0
  157. package/linter/linter-tags.js +6 -0
  158. package/linter/rules/absolute-path.js +4 -3
  159. package/linter/rules/cmd-check/bogus-return.d.ts +29 -0
  160. package/linter/rules/cmd-check/bogus-return.js +63 -0
  161. package/linter/rules/cmd-check/call-arguments.d.ts +63 -0
  162. package/linter/rules/cmd-check/call-arguments.js +211 -0
  163. package/linter/rules/cmd-check/class-string-comparison.d.ts +48 -0
  164. package/linter/rules/cmd-check/class-string-comparison.js +135 -0
  165. package/linter/rules/cmd-check/cmd-check-util.d.ts +67 -0
  166. package/linter/rules/cmd-check/cmd-check-util.js +169 -0
  167. package/linter/rules/cmd-check/compiled-code.d.ts +86 -0
  168. package/linter/rules/cmd-check/compiled-code.js +350 -0
  169. package/linter/rules/cmd-check/conformance.d.ts +47 -0
  170. package/linter/rules/cmd-check/conformance.js +166 -0
  171. package/linter/rules/cmd-check/dependency-declaration.d.ts +95 -0
  172. package/linter/rules/cmd-check/dependency-declaration.js +299 -0
  173. package/linter/rules/cmd-check/description-metadata.d.ts +63 -0
  174. package/linter/rules/cmd-check/description-metadata.js +393 -0
  175. package/linter/rules/cmd-check/documentation-mismatch.d.ts +54 -0
  176. package/linter/rules/cmd-check/documentation-mismatch.js +407 -0
  177. package/linter/rules/cmd-check/file-checks.d.ts +29 -0
  178. package/linter/rules/cmd-check/file-checks.js +34 -0
  179. package/linter/rules/cmd-check/foreign-function-calls.d.ts +54 -0
  180. package/linter/rules/cmd-check/foreign-function-calls.js +115 -0
  181. package/linter/rules/cmd-check/global-environment-modification.d.ts +61 -0
  182. package/linter/rules/cmd-check/global-environment-modification.js +237 -0
  183. package/linter/rules/cmd-check/namespace-tampering.d.ts +52 -0
  184. package/linter/rules/cmd-check/namespace-tampering.js +162 -0
  185. package/linter/rules/cmd-check/non-ascii-code.d.ts +51 -0
  186. package/linter/rules/cmd-check/non-ascii-code.js +112 -0
  187. package/linter/rules/cmd-check/package-code.d.ts +30 -0
  188. package/linter/rules/cmd-check/package-code.js +141 -0
  189. package/linter/rules/cmd-check/package-data.d.ts +49 -0
  190. package/linter/rules/cmd-check/package-data.js +181 -0
  191. package/linter/rules/cmd-check/package-files.d.ts +41 -0
  192. package/linter/rules/cmd-check/package-files.js +157 -0
  193. package/linter/rules/cmd-check/package-hooks.d.ts +57 -0
  194. package/linter/rules/cmd-check/package-hooks.js +165 -0
  195. package/linter/rules/cmd-check/package-metafiles.d.ts +49 -0
  196. package/linter/rules/cmd-check/package-metafiles.js +292 -0
  197. package/linter/rules/cmd-check/package-runtime.d.ts +67 -0
  198. package/linter/rules/cmd-check/package-runtime.js +284 -0
  199. package/linter/rules/cmd-check/package-structure.d.ts +85 -0
  200. package/linter/rules/cmd-check/package-structure.js +320 -0
  201. package/linter/rules/cmd-check/rd-files.d.ts +67 -0
  202. package/linter/rules/cmd-check/rd-files.js +621 -0
  203. package/linter/rules/cmd-check/s-three-method-consistency.d.ts +72 -0
  204. package/linter/rules/cmd-check/s-three-method-consistency.js +206 -0
  205. package/linter/rules/cmd-check/true-false-abbreviation.d.ts +45 -0
  206. package/linter/rules/cmd-check/true-false-abbreviation.js +121 -0
  207. package/linter/rules/deprecated-functions.js +4 -4
  208. package/linter/rules/naming-convention.d.ts +1 -1
  209. package/linter/rules/naming-convention.js +13 -14
  210. package/linter/rules/no-leaked-credentials.js +4 -4
  211. package/linter/rules/problematic-inputs.js +2 -1
  212. package/linter/rules/seeded-randomness.js +5 -5
  213. package/linter/rules/software-has-license.d.ts +1 -1
  214. package/linter/rules/software-has-license.js +1 -1
  215. package/linter/rules/unclosed-connection.js +3 -3
  216. package/linter/rules/undefined-symbol-util.js +16 -32
  217. package/linter/rules/undefined-symbol.d.ts +2 -0
  218. package/linter/rules/undefined-symbol.js +33 -3
  219. package/linter/rules/unescaped-arguments.js +10 -9
  220. package/linter/rules/unused-definition.js +13 -19
  221. package/package.json +1 -1
  222. package/project/cache/flowr-analyzer-cache.js +1 -1
  223. package/project/context/flowr-analyzer-context.js +1 -1
  224. package/project/context/flowr-analyzer-environment-context.d.ts +1 -1
  225. package/project/context/flowr-analyzer-files-context.d.ts +6 -0
  226. package/project/context/flowr-analyzer-files-context.js +3 -0
  227. package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +0 -2
  228. package/project/context/flowr-analyzer-incremental-analysis-context.js +0 -4
  229. package/project/context/flowr-file.d.ts +4 -0
  230. package/project/context/flowr-file.js +4 -0
  231. package/project/flowr-analyzer-builder.js +1 -1
  232. package/project/plugins/file-plugins/files/flowr-description-file.js +2 -2
  233. package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +2 -0
  234. package/project/plugins/file-plugins/files/flowr-jupyter-file.js +4 -0
  235. package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +2 -0
  236. package/project/plugins/file-plugins/files/flowr-manifest-files.js +11 -14
  237. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +3 -0
  238. package/project/plugins/file-plugins/files/flowr-namespace-file.js +25 -15
  239. package/project/plugins/file-plugins/files/flowr-rd-file.d.ts +44 -0
  240. package/project/plugins/file-plugins/files/flowr-rd-file.js +130 -61
  241. package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +0 -1
  242. package/project/plugins/file-plugins/files/flowr-rda-file.js +4 -16
  243. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -0
  244. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +4 -0
  245. package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +2 -0
  246. package/project/plugins/file-plugins/files/flowr-sweave-file.js +4 -0
  247. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.d.ts +0 -1
  248. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.js +1 -5
  249. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +2 -0
  250. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +2 -0
  251. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-session-info-plugin.js +3 -7
  252. package/project/sigdb/build.js +16 -30
  253. package/project/sigdb/dict.d.ts +4 -6
  254. package/project/sigdb/dict.js +125 -31
  255. package/project/sigdb/reader.js +2 -18
  256. package/project/sigdb/sigdb-download.js +14 -23
  257. package/queries/base-query-format.d.ts +2 -0
  258. package/queries/base-query-format.js +10 -2
  259. package/queries/catalog/absint-query/absint-query-format.d.ts +1 -1
  260. package/queries/catalog/absint-query/absint-query-format.js +5 -7
  261. package/queries/catalog/call-context-query/call-context-query-executor.js +24 -32
  262. package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -1
  263. package/queries/catalog/call-context-query/call-context-query-format.js +1 -3
  264. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +2 -4
  265. package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -4
  266. package/queries/catalog/call-graph-query/call-graph-query-format.js +2 -3
  267. package/queries/catalog/config-query/config-query-format.js +3 -3
  268. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +2 -3
  269. package/queries/catalog/dataflow-query/dataflow-query-format.js +2 -3
  270. package/queries/catalog/dependencies-query/data-flow.d.ts +43 -0
  271. package/queries/catalog/dependencies-query/data-flow.js +173 -0
  272. package/queries/catalog/dependencies-query/dependencies-query-executor.d.ts +18 -0
  273. package/queries/catalog/dependencies-query/dependencies-query-executor.js +108 -12
  274. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +17 -1
  275. package/queries/catalog/dependencies-query/dependencies-query-format.js +14 -11
  276. package/queries/catalog/dependencies-query/function-info/derived-functions.js +2 -1
  277. package/queries/catalog/dependencies-query/function-info/function-info.d.ts +2 -0
  278. package/queries/catalog/dependencies-query/function-info/library-functions.js +13 -13
  279. package/queries/catalog/dependencies-query/function-info/read-functions.js +1 -1
  280. package/queries/catalog/dependencies-query/function-info/remote-functions.js +3 -3
  281. package/queries/catalog/dependencies-query/function-info/source-functions.js +2 -2
  282. package/queries/catalog/dependencies-query/function-info/test-functions.js +8 -8
  283. package/queries/catalog/dependencies-query/function-info/transform-functions.d.ts +8 -0
  284. package/queries/catalog/dependencies-query/function-info/transform-functions.js +17 -0
  285. package/queries/catalog/dependencies-query/function-info/write-functions.js +4 -0
  286. package/queries/catalog/dependencies-query/implicit-echo.d.ts +5 -3
  287. package/queries/catalog/dependencies-query/implicit-echo.js +33 -34
  288. package/queries/catalog/dependencies-query/link-devices.d.ts +3 -2
  289. package/queries/catalog/dependencies-query/link-devices.js +9 -6
  290. package/queries/catalog/dependencies-query/plot-description.d.ts +10 -0
  291. package/queries/catalog/dependencies-query/plot-description.js +119 -0
  292. package/queries/catalog/dependencies-query/plot-objects.d.ts +13 -0
  293. package/queries/catalog/dependencies-query/plot-objects.js +61 -0
  294. package/queries/catalog/dice-query/dice-query-format.d.ts +2 -2
  295. package/queries/catalog/dice-query/dice-query-format.js +3 -40
  296. package/queries/catalog/does-call-query/does-call-query-format.d.ts +1 -1
  297. package/queries/catalog/does-call-query/does-call-query-format.js +2 -2
  298. package/queries/catalog/function-info-query/function-info-query-format.js +2 -2
  299. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +2 -1
  300. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +2 -2
  301. package/queries/catalog/happens-before-query/happens-before-query-format.js +2 -2
  302. package/queries/catalog/id-map-query/id-map-query-format.js +1 -3
  303. package/queries/catalog/input-sources-query/input-sources-query-executor.js +2 -2
  304. package/queries/catalog/input-sources-query/input-sources-query-format.js +2 -3
  305. package/queries/catalog/input-sources-query/simple-input-classifier.js +28 -29
  306. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +4 -7
  307. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +1 -1
  308. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +3 -2
  309. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +2 -2
  310. package/queries/catalog/linter-query/linter-query-executor.js +10 -3
  311. package/queries/catalog/linter-query/linter-query-format.d.ts +4 -1
  312. package/queries/catalog/linter-query/linter-query-format.js +32 -21
  313. package/queries/catalog/location-map-query/location-map-query-format.d.ts +1 -1
  314. package/queries/catalog/location-map-query/location-map-query-format.js +1 -3
  315. package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +2 -3
  316. package/queries/catalog/origin-query/origin-query-executor.d.ts +1 -1
  317. package/queries/catalog/origin-query/origin-query-executor.js +3 -3
  318. package/queries/catalog/origin-query/origin-query-format.d.ts +1 -1
  319. package/queries/catalog/origin-query/origin-query-format.js +4 -5
  320. package/queries/catalog/project-query/project-query-format.js +2 -2
  321. package/queries/catalog/provenance-query/provenance-query-format.js +2 -3
  322. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +1 -1
  323. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +4 -4
  324. package/queries/catalog/search-query/search-query-format.js +1 -3
  325. package/queries/catalog/signature-query/signature-query-executor.js +3 -3
  326. package/queries/catalog/signature-query/signature-query-format.js +2 -2
  327. package/queries/catalog/slice-query-options.d.ts +16 -0
  328. package/queries/catalog/slice-query-options.js +28 -0
  329. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -2
  330. package/queries/catalog/static-slice-query/static-slice-query-format.js +3 -42
  331. package/queries/query-print.d.ts +4 -0
  332. package/queries/query-print.js +17 -1
  333. package/queries/query.d.ts +3 -3
  334. package/queries/query.js +3 -4
  335. package/r-bridge/lang-4.x/ast/model/model.d.ts +27 -3
  336. package/r-bridge/lang-4.x/ast/model/model.js +28 -1
  337. package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.d.ts +1 -0
  338. package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.js +1 -0
  339. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +2 -0
  340. package/r-bridge/lang-4.x/ast/model/nodes/r-access.js +1 -0
  341. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +20 -1
  342. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +25 -1
  343. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +2 -0
  344. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.js +1 -0
  345. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +2 -0
  346. package/r-bridge/lang-4.x/ast/model/nodes/r-break.js +1 -0
  347. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +2 -0
  348. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.js +1 -0
  349. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +2 -0
  350. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.js +1 -0
  351. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +2 -0
  352. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.js +1 -0
  353. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +18 -2
  354. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +15 -6
  355. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +2 -0
  356. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.js +1 -0
  357. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +2 -0
  358. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.js +1 -0
  359. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +2 -0
  360. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.js +1 -0
  361. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +2 -0
  362. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.js +1 -0
  363. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +2 -0
  364. package/r-bridge/lang-4.x/ast/model/nodes/r-next.js +1 -0
  365. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +2 -0
  366. package/r-bridge/lang-4.x/ast/model/nodes/r-number.js +1 -0
  367. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +2 -0
  368. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -0
  369. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +2 -0
  370. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +1 -0
  371. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +2 -0
  372. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.js +1 -0
  373. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +17 -0
  374. package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +20 -0
  375. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +2 -0
  376. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -0
  377. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +2 -0
  378. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.js +1 -0
  379. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +2 -0
  380. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.js +1 -0
  381. package/r-bridge/lang-4.x/ast/model/operators.js +0 -2
  382. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +1 -6
  383. package/r-bridge/lang-4.x/ast/model/processing/fold.js +1 -6
  384. package/r-bridge/lang-4.x/ast/model/processing/node-id.js +4 -3
  385. package/r-bridge/lang-4.x/ast/parser/json/format.js +2 -2
  386. package/r-bridge/lang-4.x/ast/parser/main/internal/control/normalize-if-then.js +1 -5
  387. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +2 -2
  388. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +4 -20
  389. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +1 -5
  390. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.js +1 -5
  391. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +1 -5
  392. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-while.js +2 -9
  393. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +1 -5
  394. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +2 -10
  395. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +2 -11
  396. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-expressions.js +3 -11
  397. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -5
  398. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -5
  399. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.js +1 -5
  400. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +6 -1
  401. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +7 -0
  402. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +0 -10
  403. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +30 -82
  404. package/r-bridge/retriever.d.ts +0 -4
  405. package/r-bridge/retriever.js +0 -13
  406. package/r-bridge/roxygen2/documentation-provider.js +3 -7
  407. package/r-bridge/shell.js +3 -8
  408. package/reconstruct/auto-select/magic-comments.js +8 -7
  409. package/reconstruct/inline/source-inline-map.d.ts +3 -0
  410. package/reconstruct/inline/source-inline-map.js +8 -7
  411. package/reconstruct/reconstruct.d.ts +1 -1
  412. package/reconstruct/reconstruct.js +33 -109
  413. package/search/flowr-search-printer.js +4 -15
  414. package/search/search-executor/search-generators.js +1 -1
  415. package/slicing/criterion/filters/all-variables.js +1 -2
  416. package/slicing/static/fingerprint.js +11 -2
  417. package/slicing/static/slice-call.d.ts +2 -8
  418. package/slicing/static/slice-call.js +8 -18
  419. package/slicing/static/static-slicer.js +81 -6
  420. package/util/collections/arrays.js +1 -1
  421. package/util/collections/set.js +1 -1
  422. package/util/diff-graph.d.ts +4 -0
  423. package/util/diff-graph.js +12 -0
  424. package/util/files.js +2 -6
  425. package/util/json.js +1 -15
  426. package/util/mermaid/cfg.js +10 -17
  427. package/util/mermaid/dfg.js +6 -8
  428. package/util/objects.d.ts +1 -1
  429. package/util/quads.js +4 -13
  430. package/util/r-author.js +5 -5
  431. package/util/range.d.ts +9 -0
  432. package/util/range.js +11 -0
  433. package/util/schema.js +3 -3
  434. package/util/simple-df/dfg-view.js +2 -1
  435. package/util/text/ansi.js +1 -2
  436. package/util/text/playground-link.js +2 -1
  437. package/util/text/r-highlight.js +2 -1
  438. package/util/text/strings.d.ts +2 -0
  439. package/util/text/strings.js +5 -0
  440. package/util/text/time.js +1 -2
  441. package/util/version.js +4 -3
  442. package/dataflow/fn/recursive-function.d.ts +0 -6
  443. package/dataflow/fn/recursive-function.js +0 -32
  444. package/dataflow/internal/process/functions/call/argument/unpack-argument.d.ts +0 -16
  445. package/dataflow/internal/process/functions/call/argument/unpack-argument.js +0 -27
@@ -303,7 +303,7 @@ export declare const LintingRules: {
303
303
  };
304
304
  };
305
305
  readonly 'software-has-license': {
306
- 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>[]>>;
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': {};
@@ -553,6 +553,523 @@ export declare const LintingRules: {
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: "Checks 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.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.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];
721
+ readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
722
+ readonly description: "Checks `.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.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: "Checks `.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];
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: "Checks 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: "Checks `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: "Checks 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: "Checks 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: "Checks `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;
@@ -23,6 +23,25 @@ const syntactically_valid_1 = require("./rules/syntactically-valid");
23
23
  const unclosed_connection_1 = require("./rules/unclosed-connection");
24
24
  const unescaped_arguments_1 = require("./rules/unescaped-arguments");
25
25
  const namespace_access_1 = require("./rules/namespace-access");
26
+ const class_string_comparison_1 = require("./rules/cmd-check/class-string-comparison");
27
+ const description_metadata_1 = require("./rules/cmd-check/description-metadata");
28
+ const documentation_mismatch_1 = require("./rules/cmd-check/documentation-mismatch");
29
+ const non_ascii_code_1 = require("./rules/cmd-check/non-ascii-code");
30
+ const true_false_abbreviation_1 = require("./rules/cmd-check/true-false-abbreviation");
31
+ const bogus_return_1 = require("./rules/cmd-check/bogus-return");
32
+ const package_hooks_1 = require("./rules/cmd-check/package-hooks");
33
+ const package_structure_1 = require("./rules/cmd-check/package-structure");
34
+ const global_environment_modification_1 = require("./rules/cmd-check/global-environment-modification");
35
+ const namespace_tampering_1 = require("./rules/cmd-check/namespace-tampering");
36
+ const s_three_method_consistency_1 = require("./rules/cmd-check/s-three-method-consistency");
37
+ const foreign_function_calls_1 = require("./rules/cmd-check/foreign-function-calls");
38
+ const dependency_declaration_1 = require("./rules/cmd-check/dependency-declaration");
39
+ const call_arguments_1 = require("./rules/cmd-check/call-arguments");
40
+ const compiled_code_1 = require("./rules/cmd-check/compiled-code");
41
+ const package_metafiles_1 = require("./rules/cmd-check/package-metafiles");
42
+ const rd_files_1 = require("./rules/cmd-check/rd-files");
43
+ const package_data_1 = require("./rules/cmd-check/package-data");
44
+ const package_runtime_1 = require("./rules/cmd-check/package-runtime");
26
45
  /**
27
46
  * The registry of currently supported linting rules.
28
47
  * A linting rule can be executed on a dataflow pipeline result using {@link executeLintingRule}.
@@ -49,6 +68,25 @@ exports.LintingRules = {
49
68
  'syntactically-valid': syntactically_valid_1.SYNTACTICALLY_VALID,
50
69
  'unclosed-connection': unclosed_connection_1.UNCLOSED_CONNECTION,
51
70
  'unescaped-arguments': unescaped_arguments_1.UNESCAPED_ARGUMENTS,
52
- 'namespace-access': namespace_access_1.NAMESPACE_ACCESS
71
+ 'namespace-access': namespace_access_1.NAMESPACE_ACCESS,
72
+ 'class-string-comparison': class_string_comparison_1.CLASS_STRING_COMPARISON,
73
+ 'description-metadata': description_metadata_1.DESCRIPTION_METADATA,
74
+ 'documentation-mismatch': documentation_mismatch_1.DOCUMENTATION_MISMATCH,
75
+ 'non-ascii-code': non_ascii_code_1.NON_ASCII_CODE,
76
+ 'true-false-abbreviation': true_false_abbreviation_1.TRUE_FALSE_ABBREVIATION,
77
+ 'bogus-return': bogus_return_1.BOGUS_RETURN,
78
+ 'package-hooks': package_hooks_1.PACKAGE_HOOKS,
79
+ 'global-environment-modification': global_environment_modification_1.GLOBAL_ENVIRONMENT_MODIFICATION,
80
+ 'namespace-tampering': namespace_tampering_1.NAMESPACE_TAMPERING,
81
+ 's3-method-consistency': s_three_method_consistency_1.S3_METHOD_CONSISTENCY,
82
+ 'foreign-function-calls': foreign_function_calls_1.FOREIGN_FUNCTION_CALLS,
83
+ 'dependency-declaration': dependency_declaration_1.DEPENDENCY_DECLARATION,
84
+ 'call-arguments': call_arguments_1.CALL_ARGUMENTS,
85
+ 'package-structure': package_structure_1.PACKAGE_STRUCTURE,
86
+ 'compiled-code': compiled_code_1.COMPILED_CODE,
87
+ 'package-metafiles': package_metafiles_1.PACKAGE_METAFILES,
88
+ 'rd-files': rd_files_1.RD_FILES,
89
+ 'package-data': package_data_1.PACKAGE_DATA,
90
+ 'package-runtime': package_runtime_1.PACKAGE_RUNTIME
53
91
  };
54
92
  //# sourceMappingURL=linter-rules.js.map
@@ -73,6 +73,12 @@ export declare enum LintingRuleTag {
73
73
  * For example, missing or incorrect error handling, or missing or incorrect user interface elements.
74
74
  */
75
75
  Usability = "usability",
76
+ /**
77
+ * This rule ports a check of `R CMD check` (see the "Checking packages" section of the "Writing R Extensions" manual),
78
+ * so it only makes sense for an R package. Rules with this tag are only part of the default rule set when the
79
+ * analyzed project is a package (see the `linter.disabledTags` option of the flowR config).
80
+ */
81
+ CmdCheck = "cmd-check",
76
82
  /**
77
83
  * This rule may provide quickfixes to automatically fix the issues it detects.
78
84
  */