@eagleoutice/flowr 2.10.9 → 2.10.10

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 (256) hide show
  1. package/README.md +103 -33
  2. package/abstract-interpretation/absint-visitor.js +6 -3
  3. package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
  4. package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
  5. package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
  6. package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
  7. package/abstract-interpretation/domains/interval-domain.js +1 -1
  8. package/abstract-interpretation/domains/lattice.d.ts +1 -1
  9. package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
  10. package/abstract-interpretation/domains/partial-product-domain.js +2 -2
  11. package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
  12. package/abstract-interpretation/domains/set-range-domain.js +1 -1
  13. package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
  14. package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
  15. package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
  16. package/abstract-interpretation/domains/singleton-domain.js +1 -1
  17. package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
  18. package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
  19. package/abstract-interpretation/unsupported-functions.d.ts +3 -2
  20. package/abstract-interpretation/unsupported-functions.js +38 -28
  21. package/cli/benchmark-app.js +2 -1
  22. package/cli/common/script.js +3 -2
  23. package/cli/flowr.js +47 -10
  24. package/cli/repl/commands/repl-cfg.js +9 -9
  25. package/cli/repl/commands/repl-commands.js +5 -0
  26. package/cli/repl/commands/repl-dataflow.js +31 -24
  27. package/cli/repl/commands/repl-main.d.ts +6 -0
  28. package/cli/repl/commands/repl-normalize.js +15 -12
  29. package/cli/repl/commands/repl-parse.js +1 -1
  30. package/cli/repl/commands/repl-query.js +4 -5
  31. package/cli/repl/commands/repl-quit.js +2 -1
  32. package/cli/repl/core.d.ts +11 -0
  33. package/cli/repl/core.js +101 -3
  34. package/cli/repl/execute.js +3 -2
  35. package/cli/repl/parser/slice-query-parser.d.ts +16 -0
  36. package/cli/repl/parser/slice-query-parser.js +52 -0
  37. package/cli/repl/server/connection.d.ts +1 -0
  38. package/cli/repl/server/connection.js +25 -0
  39. package/cli/repl/server/messages/message-analysis.d.ts +10 -0
  40. package/cli/repl/server/messages/message-analysis.js +6 -2
  41. package/cli/repl/server/messages/message-slice.d.ts +1 -1
  42. package/cli/script-core/statistics-core.js +2 -1
  43. package/cli/script-core/statistics-helper-core.js +2 -1
  44. package/cli/wiki.d.ts +2 -1
  45. package/cli/wiki.js +4 -1
  46. package/config.d.ts +9 -10
  47. package/config.js +25 -7
  48. package/control-flow/diff-cfg.d.ts +1 -1
  49. package/control-flow/diff-cfg.js +1 -1
  50. package/control-flow/semantic-cfg-guided-visitor.js +1 -0
  51. package/control-flow/simple-visitor.js +6 -5
  52. package/control-flow/useless-loop.js +2 -2
  53. package/core/print/dataflow-printer.d.ts +2 -2
  54. package/core/print/dataflow-printer.js +2 -2
  55. package/core/steps/all/static-slicing/00-slice.js +1 -1
  56. package/core/steps/pipeline/default-pipelines.d.ts +146 -146
  57. package/dataflow/environments/append.d.ts +2 -1
  58. package/dataflow/environments/append.js +2 -1
  59. package/dataflow/environments/built-in-proc-name.d.ts +2 -0
  60. package/dataflow/environments/built-in-proc-name.js +2 -0
  61. package/dataflow/environments/built-in.d.ts +2 -0
  62. package/dataflow/environments/built-in.js +2 -0
  63. package/dataflow/environments/default-builtin-config.d.ts +122 -66
  64. package/dataflow/environments/default-builtin-config.js +324 -145
  65. package/dataflow/environments/environment.d.ts +2 -1
  66. package/dataflow/environments/environment.js +13 -9
  67. package/dataflow/environments/identifier.d.ts +55 -2
  68. package/dataflow/environments/identifier.js +14 -2
  69. package/dataflow/environments/reference-to-maybe.d.ts +2 -0
  70. package/dataflow/environments/reference-to-maybe.js +56 -11
  71. package/dataflow/environments/resolve-by-name.js +13 -7
  72. package/dataflow/eval/values/general.js +4 -0
  73. package/dataflow/extractor.js +12 -2
  74. package/dataflow/graph/df-helper.d.ts +6 -0
  75. package/dataflow/graph/df-helper.js +33 -0
  76. package/dataflow/graph/graph.js +1 -1
  77. package/dataflow/info.d.ts +1 -1
  78. package/dataflow/internal/linker.d.ts +5 -1
  79. package/dataflow/internal/linker.js +34 -9
  80. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +1 -1
  81. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +53 -0
  82. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
  83. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
  84. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
  85. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -1
  86. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +38 -14
  87. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +9 -10
  88. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +1 -1
  89. package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
  90. package/dataflow/internal/process/functions/call/named-call-handling.js +6 -0
  91. package/dataflow/origin/dfg-get-origin.d.ts +1 -1
  92. package/dataflow/origin/dfg-get-origin.js +1 -1
  93. package/dataflow/processor.d.ts +6 -0
  94. package/documentation/data/faq/faqs.d.ts +2 -1
  95. package/documentation/data/faq/faqs.js +75 -57
  96. package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
  97. package/documentation/data/server/doc-data-server-messages.js +15 -7
  98. package/documentation/doc-readme.js +15 -15
  99. package/documentation/doc-util/doc-cfg.d.ts +3 -1
  100. package/documentation/doc-util/doc-cfg.js +3 -3
  101. package/documentation/doc-util/doc-dfg.d.ts +3 -1
  102. package/documentation/doc-util/doc-dfg.js +3 -3
  103. package/documentation/doc-util/doc-files.d.ts +3 -1
  104. package/documentation/doc-util/doc-files.js +9 -6
  105. package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
  106. package/documentation/doc-util/doc-normalized-ast.js +2 -2
  107. package/documentation/doc-util/doc-query.d.ts +2 -1
  108. package/documentation/doc-util/doc-query.js +2 -2
  109. package/documentation/doc-util/doc-repl.js +1 -0
  110. package/documentation/doc-util/doc-types.d.ts +6 -6
  111. package/documentation/doc-util/doc-types.js +11 -9
  112. package/documentation/issue-linting-rule.js +1 -2
  113. package/documentation/wiki-analyzer.js +9 -9
  114. package/documentation/wiki-cfg.js +40 -41
  115. package/documentation/wiki-core.js +119 -31
  116. package/documentation/wiki-create-linting-rules.d.ts +6 -0
  117. package/documentation/wiki-create-linting-rules.js +95 -0
  118. package/documentation/wiki-dataflow-graph.js +77 -76
  119. package/documentation/wiki-engine.js +1 -2
  120. package/documentation/wiki-faq.d.ts +2 -1
  121. package/documentation/wiki-faq.js +4 -4
  122. package/documentation/wiki-interface.js +19 -6
  123. package/documentation/wiki-linter.d.ts +1 -1
  124. package/documentation/wiki-linter.js +14 -6
  125. package/documentation/wiki-linting-and-testing.js +2 -2
  126. package/documentation/wiki-mk/doc-context.d.ts +3 -3
  127. package/documentation/wiki-mk/doc-maker.d.ts +2 -0
  128. package/documentation/wiki-mk/doc-maker.js +7 -1
  129. package/documentation/wiki-normalized-ast.js +5 -5
  130. package/documentation/wiki-onboarding.d.ts +2 -1
  131. package/documentation/wiki-onboarding.js +5 -5
  132. package/documentation/wiki-overview.js +3 -3
  133. package/documentation/wiki-query.js +85 -84
  134. package/documentation/wiki-search.js +4 -5
  135. package/documentation/wiki-setup.js +6 -7
  136. package/gas.d.ts +74 -0
  137. package/gas.js +18 -0
  138. package/linter/linter-executor.js +2 -8
  139. package/linter/linter-format.d.ts +4 -11
  140. package/linter/linter-rules.d.ts +88 -86
  141. package/linter/linter-rules.js +7 -1
  142. package/linter/rules/absolute-path.d.ts +2 -7
  143. package/linter/rules/absolute-path.js +6 -4
  144. package/linter/rules/dataframe-access-validation.d.ts +1 -6
  145. package/linter/rules/dataframe-access-validation.js +8 -6
  146. package/linter/rules/dead-code.d.ts +2 -11
  147. package/linter/rules/dead-code.js +16 -11
  148. package/linter/rules/deprecated-functions.d.ts +3 -3
  149. package/linter/rules/file-path-validity.d.ts +1 -6
  150. package/linter/rules/file-path-validity.js +5 -5
  151. package/linter/rules/function-finder-util.d.ts +7 -11
  152. package/linter/rules/function-finder-util.js +9 -6
  153. package/linter/rules/naming-convention.d.ts +2 -7
  154. package/linter/rules/naming-convention.js +3 -2
  155. package/linter/rules/network-functions.d.ts +2 -7
  156. package/linter/rules/network-functions.js +14 -12
  157. package/linter/rules/no-leaked-credentials.d.ts +36 -0
  158. package/linter/rules/no-leaked-credentials.js +75 -0
  159. package/linter/rules/problematic-inputs.d.ts +1 -8
  160. package/linter/rules/problematic-inputs.js +5 -4
  161. package/linter/rules/roxygen-arguments.d.ts +2 -7
  162. package/linter/rules/roxygen-arguments.js +13 -20
  163. package/linter/rules/seeded-randomness.d.ts +2 -7
  164. package/linter/rules/seeded-randomness.js +7 -4
  165. package/linter/rules/software-has-license.d.ts +31 -0
  166. package/linter/rules/software-has-license.js +46 -0
  167. package/linter/rules/software-has-tests.d.ts +38 -0
  168. package/linter/rules/software-has-tests.js +48 -0
  169. package/linter/rules/stop-with-call-arg.d.ts +2 -7
  170. package/linter/rules/stop-with-call-arg.js +3 -2
  171. package/linter/rules/unused-definition.d.ts +3 -8
  172. package/linter/rules/unused-definition.js +7 -5
  173. package/linter/rules/useless-loop.d.ts +2 -7
  174. package/linter/rules/useless-loop.js +5 -2
  175. package/package.json +3 -2
  176. package/project/context/flowr-analyzer-context.d.ts +13 -14
  177. package/project/context/flowr-analyzer-context.js +4 -0
  178. package/project/context/flowr-analyzer-files-context.d.ts +12 -0
  179. package/project/context/flowr-analyzer-files-context.js +12 -2
  180. package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
  181. package/project/context/flowr-analyzer-gas-context.js +101 -0
  182. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
  183. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
  184. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
  185. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
  186. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
  187. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
  188. package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
  189. package/project/plugins/flowr-analyzer-plugin.js +14 -7
  190. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
  191. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
  192. package/project/plugins/plugin-registry.d.ts +2 -1
  193. package/project/plugins/plugin-registry.js +3 -1
  194. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
  195. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
  196. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
  197. package/queries/catalog/call-context-query/call-context-query-executor.js +54 -8
  198. package/queries/catalog/call-context-query/call-context-query-format.d.ts +2 -2
  199. package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
  200. package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
  201. package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
  202. package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
  203. package/queries/catalog/dice-query/dice-query-executor.js +52 -0
  204. package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
  205. package/queries/catalog/dice-query/dice-query-format.js +102 -0
  206. package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
  207. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
  208. package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -0
  209. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
  210. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +1 -0
  211. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
  212. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +1 -0
  213. package/queries/catalog/linter-query/linter-query-executor.js +7 -0
  214. package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
  215. package/queries/catalog/location-map-query/location-map-query-format.js +1 -0
  216. package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
  217. package/queries/catalog/origin-query/origin-query-format.js +1 -0
  218. package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
  219. package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
  220. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
  221. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
  222. package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
  223. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
  224. package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
  225. package/queries/query.d.ts +18 -1
  226. package/queries/query.js +3 -1
  227. package/r-bridge/data/data.d.ts +5 -0
  228. package/r-bridge/data/data.js +6 -0
  229. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
  230. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
  231. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
  232. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
  233. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
  234. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +55 -44
  235. package/r-bridge/parser.js +2 -9
  236. package/r-bridge/shell.d.ts +8 -1
  237. package/r-bridge/shell.js +26 -7
  238. package/search/flowr-search-builder.d.ts +2 -2
  239. package/search/flowr-search-builder.js +1 -1
  240. package/search/flowr-search-filters.d.ts +30 -9
  241. package/search/flowr-search-filters.js +26 -21
  242. package/search/search-executor/search-enrichers.d.ts +600 -0
  243. package/search/search-executor/search-enrichers.js +23 -2
  244. package/slicing/static/static-slicer.d.ts +39 -11
  245. package/slicing/static/static-slicer.js +44 -14
  246. package/util/collections/queue.d.ts +16 -0
  247. package/util/collections/queue.js +38 -0
  248. package/util/log.d.ts +1 -1
  249. package/util/log.js +1 -1
  250. package/util/mermaid/dfg.d.ts +2 -2
  251. package/util/mermaid/dfg.js +2 -2
  252. package/util/objects.d.ts +9 -0
  253. package/util/objects.js +54 -0
  254. package/util/proc.d.ts +6 -0
  255. package/util/proc.js +20 -0
  256. package/util/version.js +1 -1
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WikiSearch = void 0;
4
- const doc_files_1 = require("./doc-util/doc-files");
5
4
  const doc_search_1 = require("./doc-util/doc-search");
6
5
  const flowr_search_builder_1 = require("../search/flowr-search-builder");
7
6
  const vertex_1 = require("../dataflow/graph/vertex");
@@ -17,9 +16,9 @@ class WikiSearch extends doc_maker_1.DocMaker {
17
16
  }
18
17
  async text({ ctx, shell }) {
19
18
  return `
20
- This page briefly summarizes flowR's search API which provides a set of functions to search for nodes in the [Dataflow Graph](${doc_files_1.FlowrWikiBaseRef}/Dataflow-Graph) and the
21
- [Normalized AST](${doc_files_1.FlowrWikiBaseRef}/Normalized-AST) of a given R code (the search will always consider both, with respect to your search query).
22
- Please see the [Interface](${doc_files_1.FlowrWikiBaseRef}/Interface) wiki page for more information on how to access this API.
19
+ This page briefly summarizes flowR's search API which provides a set of functions to search for nodes in the ${ctx.linkPage('wiki/Dataflow Graph', 'Dataflow Graph')} and the
20
+ ${ctx.linkPage('wiki/Normalized AST', 'Normalized AST')} of a given R code (the search will always consider both, with respect to your search query).
21
+ Please see the ${ctx.linkPage('wiki/Interface', 'Interface')} wiki page for more information on how to access this API.
23
22
  Within code, you can execute a search using the ${ctx.link(flowr_search_executor_1.runSearch)} function.
24
23
 
25
24
  For an initial motivation, let's have a look at the following example:
@@ -36,7 +35,7 @@ ${await (0, doc_search_1.showSearch)(shell, 'x <- x * x\nprint(x)\nx <- y <- 3\n
36
35
  In summary, every search has two parts. It is initialized with a _generator_ (such as \`Q.var('x')\`)
37
36
  and can be further refined with _transformers_ or _modifiers_.
38
37
  Such queries can be constructed starting from the ${ctx.link('Q')} object (backed by ${ctx.link('FlowrSearchGenerator')}) and
39
- are fully serializable so you can use them when communicating with the [Query API](${doc_files_1.FlowrWikiBaseRef}/Query%20API).
38
+ are fully serializable so you can use them when communicating with the ${ctx.linkPage('wiki/Query API', 'Query API')}.
40
39
 
41
40
  ## File Path Filtering
42
41
 
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WikiSetup = void 0;
4
4
  const doc_maker_1 = require("./wiki-mk/doc-maker");
5
- const doc_files_1 = require("./doc-util/doc-files");
6
5
  /**
7
6
  * https://github.com/flowr-analysis/flowr/wiki/Setup
8
7
  */
@@ -13,8 +12,8 @@ class WikiSetup extends doc_maker_1.DocMaker {
13
12
  text({ ctx }) {
14
13
  return `
15
14
  There are several ways to use _flowR_.
16
- You can download and build it from source, download the accompanying [docker image](${doc_files_1.FlowrDockerRef}),
17
- or use its [Visual Studio Code extension](${doc_files_1.FlowrVsCode}) and [RStudio Addin](${doc_files_1.FlowrRStudioAddin}).
15
+ You can download and build it from source, download the accompanying ${ctx.linkPage('flowr:docker', 'docker image')},
16
+ or use its ${ctx.linkPage('flowr:vscode', 'Visual Studio Code extension')} and ${ctx.linkPage('flowr:rstudio-addin', 'RStudio Addin')}.
18
17
 
19
18
  - [🗒️ Using the Visual Studio Code Extension](#-using-the-visual-studio-code-extension)
20
19
  - [🗒️ Using the RStudio Addin](#-using-the-rstudio-addin)
@@ -28,18 +27,18 @@ look at the [Contributing Guidelines](https://github.com/flowr-analysis/flowr/tr
28
27
 
29
28
  ## 🗒️ Using the Visual Studio Code Extension
30
29
 
31
- The easiest way to use _flowR_ is to install the [Visual Studio Code extension](${doc_files_1.FlowrVsCode}).
30
+ The easiest way to use _flowR_ is to install the ${ctx.linkPage('flowr:vscode', 'Visual Studio Code extension')}.
32
31
  The extension directly includes a version of _flowR_ that can be used by default, so you can start analyzing code right away (given that you have R installed on your system).
33
32
  Please check out the marketplace entry for more information.
34
- This extension works with Positron as well (in general, it is available on [open-vsx](${doc_files_1.FlowrPositron}) as well).
33
+ This extension works with Positron as well (in general, it is available on ${ctx.linkPage('flowr:positron', 'open-vsx')} as well).
35
34
 
36
35
  ## 🗒️ Using the RStudio Addin
37
36
 
38
- You can also use _flowR_ as an RStudio Addin. Please check out the [RStudio Addin repository](${doc_files_1.FlowrRStudioAddin}) for more information on how to get started!
37
+ You can also use _flowR_ as an RStudio Addin. Please check out the ${ctx.linkPage('flowr:rstudio-addin', 'RStudio Addin repository')} for more information on how to get started!
39
38
 
40
39
  ## 🐳️ Using the Docker Image
41
40
 
42
- You can get the image from [docker hub](${doc_files_1.FlowrDockerRef}) by running:
41
+ You can get the image from ${ctx.linkPage('flowr:docker', 'docker hub')} by running:
43
42
 
44
43
  \`\`\`shell
45
44
  docker pull eagleoutice/flowr
package/gas.d.ts ADDED
@@ -0,0 +1,74 @@
1
+ import type { MergeableRecord } from './util/objects';
2
+ /** Wiki reference for the gas resource guard, use this in user-facing warnings. */
3
+ export declare const GasWikiRef = "https://github.com/flowr-analysis/flowr/wiki/Core#gas-resource-guard";
4
+ /**
5
+ * Resource-pressure level returned by {@link ReadOnlyFlowrAnalyzerGasContext.checkGas}.
6
+ * Numeric ordering lets callers use `>=` for threshold comparisons at zero cost.
7
+ * See the [Gas (Resource Guard)](https://github.com/flowr-analysis/flowr/wiki/Core#gas-resource-guard) wiki section for details.
8
+ */
9
+ export declare const enum GasLevel {
10
+ /** Safe to continue, all resources are within bounds. */
11
+ Normal = 0,
12
+ /** Approaching a threshold. Consider emitting a warning and continue. */
13
+ Problematic = 1,
14
+ /** Threshold exceeded. The caller should skip the expensive work. */
15
+ Critical = 2
16
+ }
17
+ /**
18
+ * Known feature keys accepted by {@link ReadOnlyFlowrAnalyzerGasContext.checkGas}.
19
+ * Each key corresponds to a sensitivity factor in {@link FlowrGasConfig.features}.
20
+ */
21
+ export declare const GasFeatureKey: {
22
+ /** Gas key for built-in `source()` file analysis. */
23
+ readonly Source: "source";
24
+ /** Gas key for the side-effect link resolution phase of the dataflow extractor, which matches unknown side effects against call sites via the CFG and can be expensive for large scripts. */
25
+ readonly SideEffectLinking: "side-effect-linking";
26
+ /** Gas key for the linter, checked once per linting rule. Under critical pressure, remaining rules are skipped. */
27
+ readonly Linter: "linter";
28
+ };
29
+ export type GasFeatureKey = typeof GasFeatureKey[keyof typeof GasFeatureKey];
30
+ /** Paired low/high thresholds used inside {@link FlowrGasThresholds}. */
31
+ export interface GasThresholdPair extends MergeableRecord {
32
+ /** Returns {@link GasLevel.Problematic} when reached (after factor scaling). */
33
+ readonly problematic: number;
34
+ /** Returns {@link GasLevel.Critical} when reached (after factor scaling). */
35
+ readonly critical: number;
36
+ }
37
+ /**
38
+ * Thresholds for {@link GasLevel} transitions used by {@link ReadOnlyFlowrAnalyzerGasContext.checkGas}.
39
+ * Memory values are fractions of the heap limit reported by the active heap source (0-1), time values are in milliseconds.
40
+ * See the [Gas (Resource Guard)](https://github.com/flowr-analysis/flowr/wiki/Core#gas-resource-guard) wiki section.
41
+ */
42
+ export interface FlowrGasThresholds extends MergeableRecord {
43
+ /** Heap-usage fraction thresholds (0-1, before factor scaling). */
44
+ readonly memory: GasThresholdPair;
45
+ /** Elapsed analysis time thresholds in milliseconds (before factor scaling). */
46
+ readonly timeMs: GasThresholdPair;
47
+ }
48
+ /** Heap statistics used for gas memory checks (field names follow the v8 API). */
49
+ export interface GasHeapStatistics {
50
+ readonly used_heap_size: number;
51
+ readonly heap_size_limit: number;
52
+ }
53
+ /**
54
+ * Gas configuration embedded in {@link FlowrConfig.gas}.
55
+ *
56
+ * Each entry in `features` is a sensitivity factor for a named analysis feature
57
+ * (see {@link GasFeatureKey} for the recognised keys):
58
+ * - `0` / absent - disabled for that feature, zero overhead.
59
+ * - `1` - normal sensitivity, thresholds in {@link thresholds} apply as-is.
60
+ * - `N` - N times as sensitive, effectively divides each threshold by N.
61
+ *
62
+ * See the [Gas (Resource Guard)](https://github.com/flowr-analysis/flowr/wiki/Core#gas-resource-guard) wiki section.
63
+ */
64
+ export interface FlowrGasConfig extends MergeableRecord {
65
+ /** Shared thresholds scaled by each feature factor before comparison. */
66
+ readonly thresholds: FlowrGasThresholds;
67
+ /** Per-feature sensitivity factors. Missing or `0` disables checking with zero overhead. */
68
+ readonly features: Record<string, number | undefined>;
69
+ /**
70
+ * Custom heap statistics source (programmatic configs only), overriding the built-in
71
+ * detection (v8 module, then Chromium's performance.memory). Return undefined to skip the memory check.
72
+ */
73
+ readonly heapProvider?: () => GasHeapStatistics | undefined;
74
+ }
package/gas.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GasFeatureKey = exports.GasWikiRef = void 0;
4
+ /** Wiki reference for the gas resource guard, use this in user-facing warnings. */
5
+ exports.GasWikiRef = 'https://github.com/flowr-analysis/flowr/wiki/Core#gas-resource-guard';
6
+ /**
7
+ * Known feature keys accepted by {@link ReadOnlyFlowrAnalyzerGasContext.checkGas}.
8
+ * Each key corresponds to a sensitivity factor in {@link FlowrGasConfig.features}.
9
+ */
10
+ exports.GasFeatureKey = {
11
+ /** Gas key for built-in `source()` file analysis. */
12
+ Source: 'source',
13
+ /** Gas key for the side-effect link resolution phase of the dataflow extractor, which matches unknown side effects against call sites via the CFG and can be expensive for large scripts. */
14
+ SideEffectLinking: 'side-effect-linking',
15
+ /** Gas key for the linter, checked once per linting rule. Under critical pressure, remaining rules are skipped. */
16
+ Linter: 'linter'
17
+ };
18
+ //# sourceMappingURL=gas.js.map
@@ -16,18 +16,12 @@ async function executeLintingRule(ruleName, input, lintingRuleConfig) {
16
16
  const searchResult = await (0, flowr_search_executor_1.runSearch)(ruleSearch, input);
17
17
  const searchTime = Date.now() - searchStart;
18
18
  const processStart = Date.now();
19
- const result = await rule.processSearchResult(searchResult, fullConfig, {
20
- /* we currently await them here for simplicity (no redundant awaits in the linting rules), but they could be passed as promises too */
21
- dataflow: await input.dataflow(),
22
- normalize: await input.normalize(),
23
- cfg: await input.controlflow(),
24
- analyzer: input
25
- });
19
+ const result = await rule.processSearchResult(searchResult, fullConfig, input);
26
20
  const processTime = Date.now() - processStart;
27
21
  return {
28
22
  ...result,
29
23
  '.meta': {
30
- ...result['.meta'],
24
+ ...(result['.meta'] ?? {}),
31
25
  searchTimeMs: searchTime,
32
26
  processTimeMs: processTime
33
27
  }
@@ -3,13 +3,11 @@ import type { FlowrSearchElement, FlowrSearchElements } from '../search/flowr-se
3
3
  import type { MergeableRecord } from '../util/objects';
4
4
  import type { GeneratorNames } from '../search/search-executor/search-generators';
5
5
  import type { TransformerNames } from '../search/search-executor/search-transformer';
6
- import type { NormalizedAst, ParentInformation } from '../r-bridge/lang-4.x/ast/model/processing/decorate';
6
+ import type { ParentInformation } from '../r-bridge/lang-4.x/ast/model/processing/decorate';
7
7
  import type { LintingRuleConfig, LintingRuleMetadata, LintingRuleNames, LintingRuleResult } from './linter-rules';
8
8
  import type { AsyncOrSync, DeepPartial, DeepReadonly } from 'ts-essentials';
9
9
  import type { LintingRuleTag } from './linter-tags';
10
10
  import type { SourceLocation } from '../util/range';
11
- import type { DataflowInformation } from '../dataflow/info';
12
- import type { ControlFlowInformation } from '../control-flow/control-flow-graph';
13
11
  import type { ReadonlyFlowrAnalysisProvider } from '../project/flowr-analyzer';
14
12
  import type { NodeId } from '../r-bridge/lang-4.x/ast/model/processing/node-id';
15
13
  export interface LinterRuleInformation<Config extends MergeableRecord = never> {
@@ -38,7 +36,7 @@ export interface LinterRuleInformation<Config extends MergeableRecord = never> {
38
36
  * The base interface for a linting rule, which contains all of its relevant settings.
39
37
  * The registry of valid linting rules is stored in {@link LintingRules}.
40
38
  */
41
- export interface LintingRule<Result extends LintingResult, Metadata extends MergeableRecord, Config extends MergeableRecord = never, Info = ParentInformation, Elements extends FlowrSearchElement<Info>[] = FlowrSearchElement<Info>[]> {
39
+ export interface LintingRule<Result extends LintingResult, Metadata extends MergeableRecord = never, Config extends MergeableRecord = never, Info = ParentInformation, Elements extends FlowrSearchElement<Info>[] = FlowrSearchElement<Info>[]> {
42
40
  /**
43
41
  * Creates a flowR search that will then be executed and whose results will be passed to {@link processSearchResult}.
44
42
  * In the future, additional optimizations and transformations may be applied to the search between this function and {@link processSearchResult}.
@@ -48,14 +46,9 @@ export interface LintingRule<Result extends LintingResult, Metadata extends Merg
48
46
  * Processes the search results of the search created through {@link createSearch}.
49
47
  * This function is expected to return the linting results from this rule for the given search, ie usually the given script file.
50
48
  */
51
- readonly processSearchResult: (elements: FlowrSearchElements<Info, Elements>, config: Config, data: {
52
- normalize: NormalizedAst;
53
- dataflow: DataflowInformation;
54
- cfg: ControlFlowInformation;
55
- analyzer: ReadonlyFlowrAnalysisProvider;
56
- }) => AsyncOrSync<{
49
+ readonly processSearchResult: (elements: FlowrSearchElements<Info, Elements>, config: Config, data: ReadonlyFlowrAnalysisProvider) => AsyncOrSync<{
57
50
  results: Result[];
58
- '.meta': Metadata;
51
+ '.meta'?: Metadata;
59
52
  }>;
60
53
  /**
61
54
  * A set of functions used to pretty-print the given linting result.
@@ -6,12 +6,12 @@ import type { LintingRule } from './linter-format';
6
6
  export declare const LintingRules: {
7
7
  readonly 'deprecated-functions': {
8
8
  readonly createSearch: (config: import("./rules/function-finder-util").FunctionsToDetectConfig) => 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>[]>>>;
9
- readonly processSearchResult: <T extends import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>(elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, T>, _config: unknown, _data: unknown, refineSearch?: (elements: T) => (T[number] & {
9
+ readonly processSearchResult: <T extends import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>(this: void, elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, T>, _config: unknown, _data: unknown, refineSearch?: (elements: T) => import("ts-essentials").AsyncOrSync<(T[number] & {
10
10
  certainty?: import("./linter-format").LintingResultCertainty;
11
- })[]) => {
11
+ })[]>) => Promise<{
12
12
  results: import("./rules/function-finder-util").FunctionsResult[];
13
13
  '.meta': import("./rules/function-finder-util").FunctionsMetadata;
14
- };
14
+ }>;
15
15
  readonly prettyPrint: {
16
16
  query: (result: import("./rules/function-finder-util").FunctionsResult) => string;
17
17
  full: (result: import("./rules/function-finder-util").FunctionsResult) => string;
@@ -28,12 +28,7 @@ export declare const LintingRules: {
28
28
  };
29
29
  readonly 'file-path-validity': {
30
30
  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>[]>>>;
31
- 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: {
32
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
33
- dataflow: import("../dataflow/info").DataflowInformation;
34
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
35
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
36
- }) => Promise<{
31
+ 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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
37
32
  results: import("./rules/file-path-validity").FilePathValidityResult[];
38
33
  ".meta": import("./rules/file-path-validity").FilePathValidityMetadata;
39
34
  }>;
@@ -56,12 +51,7 @@ export declare const LintingRules: {
56
51
  };
57
52
  readonly 'seeded-randomness': {
58
53
  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>[]>>>;
59
- 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, { dataflow, analyzer }: {
60
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
61
- dataflow: import("../dataflow/info").DataflowInformation;
62
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
63
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
64
- }) => {
54
+ 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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
65
55
  results: {
66
56
  involvedId: import("../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId;
67
57
  certainty: import("./linter-format").LintingResultCertainty;
@@ -69,7 +59,7 @@ export declare const LintingRules: {
69
59
  loc: [startLine: number, startColumn: number, endLine: number, endColumn: number, f?: string | undefined];
70
60
  }[];
71
61
  '.meta': import("./rules/seeded-randomness").SeededRandomnessMeta;
72
- };
62
+ }>;
73
63
  readonly info: {
74
64
  readonly defaultConfig: {
75
65
  readonly randomnessProducers: readonly [{
@@ -93,15 +83,10 @@ export declare const LintingRules: {
93
83
  };
94
84
  readonly 'absolute-file-paths': {
95
85
  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>[]>>;
96
- 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: {
97
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
98
- dataflow: import("../dataflow/info").DataflowInformation;
99
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
100
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
101
- }) => {
86
+ 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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
102
87
  results: import("./rules/absolute-path").AbsoluteFilePathResult[];
103
88
  ".meta": import("./rules/absolute-path").AbsoluteFilePathMetadata;
104
- };
89
+ }>;
105
90
  readonly prettyPrint: {
106
91
  readonly query: (result: import("./rules/absolute-path").AbsoluteFilePathResult) => string;
107
92
  readonly full: (result: import("./rules/absolute-path").AbsoluteFilePathResult) => string;
@@ -125,15 +110,10 @@ export declare const LintingRules: {
125
110
  };
126
111
  readonly 'unused-definitions': {
127
112
  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>[]>>>;
128
- 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: {
129
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
130
- dataflow: import("../dataflow/info").DataflowInformation;
131
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
132
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
133
- }) => {
113
+ 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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
134
114
  results: import("./rules/unused-definition").UnusedDefinitionResult[];
135
115
  ".meta": import("./rules/unused-definition").UnusedDefinitionMetadata;
136
- };
116
+ }>;
137
117
  readonly prettyPrint: {
138
118
  readonly query: (result: import("./rules/unused-definition").UnusedDefinitionResult) => string;
139
119
  readonly full: (result: import("./rules/unused-definition").UnusedDefinitionResult) => string;
@@ -150,18 +130,13 @@ export declare const LintingRules: {
150
130
  };
151
131
  readonly 'naming-convention': {
152
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>[]>>>;
153
- 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: {
154
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
155
- dataflow: import("../dataflow/info").DataflowInformation;
156
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
157
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
158
- }) => {
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
159
134
  results: import("./rules/naming-convention").NamingConventionResult[];
160
135
  '.meta': {
161
136
  numMatches: number;
162
137
  numBreak: number;
163
138
  };
164
- };
139
+ }>;
165
140
  readonly prettyPrint: {
166
141
  readonly query: (result: import("./rules/naming-convention").NamingConventionResult) => string;
167
142
  readonly full: (result: import("./rules/naming-convention").NamingConventionResult) => string;
@@ -179,15 +154,10 @@ export declare const LintingRules: {
179
154
  };
180
155
  readonly 'network-functions': {
181
156
  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>[]>>>;
182
- 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: {
183
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
184
- dataflow: import("../dataflow/info").DataflowInformation;
185
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
186
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
187
- }) => {
157
+ 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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
188
158
  results: import("./rules/function-finder-util").FunctionsResult[];
189
159
  '.meta': import("./rules/function-finder-util").FunctionsMetadata;
190
- };
160
+ }>;
191
161
  readonly prettyPrint: {
192
162
  query: (result: import("./rules/function-finder-util").FunctionsResult) => string;
193
163
  full: (result: import("./rules/function-finder-util").FunctionsResult) => string;
@@ -205,12 +175,7 @@ export declare const LintingRules: {
205
175
  };
206
176
  readonly 'dataframe-access-validation': {
207
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>[]>>;
208
- 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: {
209
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
210
- dataflow: import("../dataflow/info").DataflowInformation;
211
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
212
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
213
- }) => Promise<{
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
214
179
  results: import("./rules/dataframe-access-validation").DataFrameAccessValidationResult[];
215
180
  '.meta': import("./rules/dataframe-access-validation").DataFrameAccessValidationMetadata;
216
181
  }>;
@@ -229,15 +194,9 @@ export declare const LintingRules: {
229
194
  };
230
195
  };
231
196
  readonly 'dead-code': {
232
- readonly createSearch: (config: import("./rules/dead-code").DeadCodeConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["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>[]>>>;
233
- 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: {
234
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
235
- dataflow: import("../dataflow/info").DataflowInformation;
236
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
237
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
238
- }) => {
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>[]>>>;
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => {
239
199
  results: import("./linter-format").LintingResult[];
240
- '.meta': import("./rules/dead-code").DeadCodeMetadata;
241
200
  };
242
201
  readonly prettyPrint: {
243
202
  readonly query: (result: import("./linter-format").LintingResult) => string;
@@ -253,12 +212,7 @@ export declare const LintingRules: {
253
212
  };
254
213
  readonly 'useless-loop': {
255
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>[]>>>;
256
- 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, { analyzer, dataflow, normalize, cfg }: {
257
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
258
- dataflow: import("../dataflow/info").DataflowInformation;
259
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
260
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
261
- }) => {
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
262
216
  results: {
263
217
  certainty: import("./linter-format").LintingResultCertainty.Certain;
264
218
  name: string;
@@ -268,7 +222,7 @@ export declare const LintingRules: {
268
222
  '.meta': {
269
223
  numOfUselessLoops: number;
270
224
  };
271
- };
225
+ }>;
272
226
  readonly prettyPrint: {
273
227
  readonly query: (result: import("./rules/useless-loop").UselessLoopResult) => string;
274
228
  readonly full: (result: import("./rules/useless-loop").UselessLoopResult) => string;
@@ -285,14 +239,8 @@ export declare const LintingRules: {
285
239
  };
286
240
  readonly 'problematic-inputs': {
287
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>[]>>;
288
- 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: {
289
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
290
- dataflow: import("../dataflow/info").DataflowInformation;
291
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
292
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
293
- }) => Promise<{
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
294
243
  results: import("./rules/problematic-inputs").ProblematicInputsResult[];
295
- '.meta': {};
296
244
  }>;
297
245
  readonly prettyPrint: {
298
246
  readonly query: (result: import("./rules/problematic-inputs").ProblematicInputsResult) => string;
@@ -311,15 +259,10 @@ export declare const LintingRules: {
311
259
  };
312
260
  readonly 'stop-call': {
313
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>[]>>>;
314
- 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, { dataflow, analyzer }: {
315
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
316
- dataflow: import("../dataflow/info").DataflowInformation;
317
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
318
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
319
- }) => {
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
320
263
  results: import("ts-essentials").Writable<import("./rules/stop-with-call-arg").StopWithCallResult>[];
321
264
  '.meta': import("./rules/stop-with-call-arg").StopWithCallMetadata;
322
- };
265
+ }>;
323
266
  readonly prettyPrint: {
324
267
  readonly query: (result: import("./linter-format").LintingResult) => string;
325
268
  readonly full: (result: import("./linter-format").LintingResult) => string;
@@ -333,13 +276,8 @@ export declare const LintingRules: {
333
276
  };
334
277
  };
335
278
  readonly 'roxygen-arguments': {
336
- 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>[]>>>;
337
- 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, { normalize }: {
338
- normalize: import("../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
339
- dataflow: import("../dataflow/info").DataflowInformation;
340
- cfg: import("../control-flow/control-flow-graph").ControlFlowInformation;
341
- analyzer: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider;
342
- }) => {
279
+ readonly createSearch: () => 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>[]>>>;
280
+ 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) => {
343
281
  results: import("ts-essentials").Writable<import("./rules/roxygen-arguments").RoxygenArgsResult>[];
344
282
  '.meta': {};
345
283
  };
@@ -355,6 +293,70 @@ export declare const LintingRules: {
355
293
  readonly defaultConfig: {};
356
294
  };
357
295
  };
296
+ readonly 'software-has-license': {
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>[]>>;
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => {
299
+ results: import("./rules/software-has-license").SoftwareHasLicenseResult[];
300
+ '.meta': {};
301
+ };
302
+ readonly prettyPrint: {
303
+ readonly query: (result: import("./rules/software-has-license").SoftwareHasLicenseResult) => string;
304
+ readonly full: (result: import("./rules/software-has-license").SoftwareHasLicenseResult) => string;
305
+ };
306
+ readonly info: {
307
+ readonly name: "Software Has License";
308
+ readonly description: "Checks whether the software project provides a license (via a LICENSE file or the DESCRIPTION file License field).";
309
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Usability];
310
+ readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
311
+ readonly defaultConfig: {
312
+ readonly checkDescriptionFile: true;
313
+ };
314
+ };
315
+ };
316
+ readonly 'software-has-tests': {
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>[]>>;
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => {
319
+ results: import("./rules/software-has-tests").SoftwareHasTestsResult[];
320
+ '.meta': {
321
+ testFilesFound: number;
322
+ testCallsFound: number;
323
+ };
324
+ };
325
+ readonly prettyPrint: {
326
+ readonly query: (result: import("./rules/software-has-tests").SoftwareHasTestsResult) => string;
327
+ readonly full: (result: import("./rules/software-has-tests").SoftwareHasTestsResult) => string;
328
+ };
329
+ readonly info: {
330
+ readonly name: "Software Has Tests";
331
+ readonly description: "Checks whether the software project has tests (test files in a test directory or test function calls in R code).";
332
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
333
+ readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
334
+ readonly defaultConfig: {
335
+ readonly additionalTestFunctions: readonly [];
336
+ };
337
+ };
338
+ };
339
+ readonly 'no-leaked-credentials': {
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>[]>>>;
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("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
342
+ results: import("./rules/no-leaked-credentials").NoLeakedCredentialsResult[];
343
+ ".meta": import("./rules/no-leaked-credentials").NoLeakedCredentialsMetadata;
344
+ }>;
345
+ readonly prettyPrint: {
346
+ readonly query: (result: import("./rules/no-leaked-credentials").NoLeakedCredentialsResult) => string;
347
+ readonly full: (result: import("./rules/no-leaked-credentials").NoLeakedCredentialsResult) => string;
348
+ };
349
+ readonly info: {
350
+ readonly name: "No Leaked Credentials";
351
+ readonly description: "Detects hardcoded credentials assigned to variables whose names suggest they hold passwords, tokens, or API keys, or whose values match known credential formats (AWS, GitHub, Slack, Stripe, SSH).";
352
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Experimental, import("./linter-tags").LintingRuleTag.Smell];
353
+ readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
354
+ readonly defaultConfig: {
355
+ readonly credentialNamePattern: "(?:password|passwd|pwd|secret|api[_.]?key|api[_.]?token|access[_.]?token|auth[_.]?token|bearer[_.]?token|private[_.]?key|credential)";
356
+ readonly credentialValuePattern: string;
357
+ };
358
+ };
359
+ };
358
360
  };
359
361
  export type LintingRuleNames = keyof typeof LintingRules;
360
362
  export type LintingRuleMetadata<Name extends LintingRuleNames> = typeof LintingRules[Name] extends LintingRule<infer _Result, infer Metadata, infer _Config, infer _Info, infer _Elements> ? Metadata : never;
@@ -14,6 +14,9 @@ const network_functions_1 = require("./rules/network-functions");
14
14
  const stop_with_call_arg_1 = require("./rules/stop-with-call-arg");
15
15
  const roxygen_arguments_1 = require("./rules/roxygen-arguments");
16
16
  const problematic_inputs_1 = require("./rules/problematic-inputs");
17
+ const software_has_license_1 = require("./rules/software-has-license");
18
+ const software_has_tests_1 = require("./rules/software-has-tests");
19
+ const no_leaked_credentials_1 = require("./rules/no-leaked-credentials");
17
20
  /**
18
21
  * The registry of currently supported linting rules.
19
22
  * A linting rule can be executed on a dataflow pipeline result using {@link executeLintingRule}.
@@ -31,6 +34,9 @@ exports.LintingRules = {
31
34
  'useless-loop': useless_loop_1.USELESS_LOOP,
32
35
  'problematic-inputs': problematic_inputs_1.PROBLEMATIC_INPUTS,
33
36
  'stop-call': stop_with_call_arg_1.STOP_WITH_CALL_ARG,
34
- 'roxygen-arguments': roxygen_arguments_1.ROXYGEN_ARGS
37
+ 'roxygen-arguments': roxygen_arguments_1.ROXYGEN_ARGS,
38
+ 'software-has-license': software_has_license_1.SOFTWARE_HAS_LICENSE,
39
+ 'software-has-tests': software_has_tests_1.SOFTWARE_HAS_TESTS,
40
+ 'no-leaked-credentials': no_leaked_credentials_1.NO_LEAKED_CREDENTIALS
35
41
  };
36
42
  //# sourceMappingURL=linter-rules.js.map