@eagleoutice/flowr 2.16.3 → 2.16.5

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 (148) hide show
  1. package/README.md +14 -14
  2. package/cli/repl/core.js +13 -2
  3. package/cli/repl/parser/slice-query-parser.d.ts +21 -5
  4. package/cli/repl/parser/slice-query-parser.js +33 -13
  5. package/core/steps/all/static-slicing/10-reconstruct.d.ts +2 -2
  6. package/dataflow/environments/built-in.d.ts +2 -0
  7. package/dataflow/environments/built-in.js +10 -2
  8. package/dataflow/environments/data-masking-functions.js +2 -1
  9. package/dataflow/environments/default-builtin-config.d.ts +31 -5
  10. package/dataflow/environments/default-builtin-config.js +12 -15
  11. package/dataflow/environments/query-fn-props.js +2 -1
  12. package/dataflow/eval/resolve/alias-tracking.js +5 -2
  13. package/dataflow/eval/resolve/node-value.js +1 -1
  14. package/dataflow/eval/resolve/resolve-argument.js +2 -0
  15. package/dataflow/eval/resolve/resolve-strings.d.ts +10 -0
  16. package/dataflow/eval/resolve/resolve-strings.js +79 -12
  17. package/dataflow/eval/resolve/resolve.js +2 -6
  18. package/dataflow/extractor.js +11 -4
  19. package/dataflow/graph/applied-arguments.d.ts +5 -0
  20. package/dataflow/graph/applied-arguments.js +17 -0
  21. package/dataflow/graph/df-helper.js +2 -2
  22. package/dataflow/graph/graph.d.ts +5 -0
  23. package/dataflow/graph/graph.js +5 -0
  24. package/dataflow/info.js +8 -1
  25. package/dataflow/internal/linker.js +35 -13
  26. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +9 -1
  27. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +32 -12
  28. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -1
  29. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +7 -4
  30. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +11 -1
  31. package/dataflow/internal/process/functions/call/named-call-handling.js +4 -2
  32. package/dataflow/internal/process/functions/call/quoted.js +3 -3
  33. package/dataflow/internal/program-order.js +7 -1
  34. package/dataflow/processor.d.ts +2 -0
  35. package/documentation/doc-util/doc-query.d.ts +1 -1
  36. package/documentation/doc-util/doc-query.js +3 -1
  37. package/documentation/doc-util/doc-timings.js +3 -2
  38. package/documentation/doc-util/doc-types.js +4 -0
  39. package/documentation/wiki-create-linting-rules.js +1 -1
  40. package/documentation/wiki-linter.d.ts +14 -0
  41. package/documentation/wiki-linter.js +341 -126
  42. package/linter/linter-executor.js +7 -0
  43. package/linter/linter-rules.d.ts +47 -47
  44. package/linter/rules/absolute-path.d.ts +1 -1
  45. package/linter/rules/absolute-path.js +6 -4
  46. package/linter/rules/cmd-check/call-arguments.d.ts +1 -1
  47. package/linter/rules/cmd-check/call-arguments.js +10 -5
  48. package/linter/rules/cmd-check/compiled-code.d.ts +1 -1
  49. package/linter/rules/cmd-check/compiled-code.js +1 -1
  50. package/linter/rules/cmd-check/conformance.d.ts +5 -1
  51. package/linter/rules/cmd-check/conformance.js +64 -64
  52. package/linter/rules/cmd-check/description-metadata.d.ts +1 -1
  53. package/linter/rules/cmd-check/description-metadata.js +1 -1
  54. package/linter/rules/cmd-check/documentation-mismatch.d.ts +6 -0
  55. package/linter/rules/cmd-check/foreign-function-calls.d.ts +1 -1
  56. package/linter/rules/cmd-check/foreign-function-calls.js +1 -1
  57. package/linter/rules/cmd-check/namespace-tampering.d.ts +1 -1
  58. package/linter/rules/cmd-check/namespace-tampering.js +1 -1
  59. package/linter/rules/cmd-check/non-ascii-code.d.ts +1 -1
  60. package/linter/rules/cmd-check/non-ascii-code.js +1 -1
  61. package/linter/rules/cmd-check/package-data.d.ts +3 -1
  62. package/linter/rules/cmd-check/package-data.js +1 -1
  63. package/linter/rules/cmd-check/package-hooks.d.ts +2 -2
  64. package/linter/rules/cmd-check/package-hooks.js +13 -5
  65. package/linter/rules/cmd-check/package-metafiles.d.ts +1 -1
  66. package/linter/rules/cmd-check/package-metafiles.js +1 -1
  67. package/linter/rules/cmd-check/package-structure.d.ts +1 -1
  68. package/linter/rules/cmd-check/package-structure.js +1 -1
  69. package/linter/rules/cmd-check/rd-files.d.ts +17 -1
  70. package/linter/rules/cmd-check/rd-files.js +1 -1
  71. package/linter/rules/cmd-check/true-false-abbreviation.d.ts +1 -1
  72. package/linter/rules/cmd-check/true-false-abbreviation.js +1 -1
  73. package/linter/rules/dataframe-access-validation.d.ts +1 -1
  74. package/linter/rules/dataframe-access-validation.js +1 -1
  75. package/linter/rules/dead-code.d.ts +4 -4
  76. package/linter/rules/dead-code.js +19 -4
  77. package/linter/rules/deprecated-functions.d.ts +1 -1
  78. package/linter/rules/deprecated-functions.js +1 -1
  79. package/linter/rules/file-path-validity.d.ts +6 -2
  80. package/linter/rules/file-path-validity.js +7 -3
  81. package/linter/rules/namespace-access.d.ts +3 -3
  82. package/linter/rules/namespace-access.js +12 -3
  83. package/linter/rules/naming-convention.d.ts +1 -1
  84. package/linter/rules/naming-convention.js +1 -1
  85. package/linter/rules/network-functions.d.ts +1 -1
  86. package/linter/rules/network-functions.js +1 -1
  87. package/linter/rules/no-leaked-credentials.d.ts +1 -1
  88. package/linter/rules/no-leaked-credentials.js +1 -1
  89. package/linter/rules/problematic-inputs.d.ts +2 -2
  90. package/linter/rules/problematic-inputs.js +4 -4
  91. package/linter/rules/roxygen-arguments.d.ts +2 -2
  92. package/linter/rules/roxygen-arguments.js +2 -2
  93. package/linter/rules/seeded-randomness.d.ts +2 -2
  94. package/linter/rules/seeded-randomness.js +2 -2
  95. package/linter/rules/software-has-license.d.ts +2 -2
  96. package/linter/rules/software-has-license.js +2 -2
  97. package/linter/rules/software-has-tests.d.ts +2 -2
  98. package/linter/rules/software-has-tests.js +2 -2
  99. package/linter/rules/stop-with-call-arg.d.ts +3 -3
  100. package/linter/rules/stop-with-call-arg.js +22 -5
  101. package/linter/rules/syntactically-valid.d.ts +1 -1
  102. package/linter/rules/syntactically-valid.js +1 -1
  103. package/linter/rules/unclosed-connection.d.ts +2 -2
  104. package/linter/rules/unclosed-connection.js +2 -2
  105. package/linter/rules/undefined-symbol.d.ts +1 -1
  106. package/linter/rules/undefined-symbol.js +27 -4
  107. package/linter/rules/unescaped-arguments.d.ts +1 -1
  108. package/linter/rules/unescaped-arguments.js +1 -1
  109. package/linter/rules/unused-definition.d.ts +1 -1
  110. package/linter/rules/unused-definition.js +21 -2
  111. package/linter/rules/unused-import.d.ts +1 -1
  112. package/linter/rules/unused-import.js +1 -1
  113. package/linter/rules/useless-loop.d.ts +1 -1
  114. package/linter/rules/useless-loop.js +1 -1
  115. package/package.json +1 -1
  116. package/project/context/flowr-analyzer-environment-context.d.ts +1 -1
  117. package/project/context/flowr-analyzer-environment-context.js +2 -1
  118. package/project/context/flowr-analyzer-files-context.js +12 -11
  119. package/project/dependency-version-space.js +4 -6
  120. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -0
  121. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +9 -8
  122. package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +1 -1
  123. package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +1 -1
  124. package/queries/catalog/dependencies-query/data-flow.d.ts +2 -0
  125. package/queries/catalog/dependencies-query/data-flow.js +6 -0
  126. package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -0
  127. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +5 -0
  128. package/queries/catalog/dependencies-query/implicit-echo.js +29 -30
  129. package/queries/catalog/dependencies-query/plot-objects.js +6 -2
  130. package/queries/catalog/dice-query/dice-query-format.d.ts +1 -1
  131. package/queries/catalog/dice-query/dice-query-format.js +1 -1
  132. package/queries/catalog/slice-query-options.d.ts +3 -3
  133. package/queries/catalog/slice-query-options.js +1 -1
  134. package/queries/catalog/static-slice-query/static-slice-query-executor.js +12 -1
  135. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +7 -1
  136. package/queries/catalog/static-slice-query/static-slice-query-format.js +4 -2
  137. package/queries/query.d.ts +2 -2
  138. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +19 -56
  139. package/reconstruct/inline/source-inline-map.d.ts +1 -1
  140. package/reconstruct/inline/source-inline-map.js +5 -3
  141. package/reconstruct/reconstruct.d.ts +8 -1
  142. package/reconstruct/reconstruct.js +12 -3
  143. package/slicing/static/removal-slice.d.ts +19 -0
  144. package/slicing/static/removal-slice.js +165 -0
  145. package/slicing/static/static-slicer.js +10 -5
  146. package/util/text/playground-link.d.ts +24 -1
  147. package/util/text/playground-link.js +16 -1
  148. package/util/version.js +2 -2
@@ -21,7 +21,7 @@ export declare const LintingRules: {
21
21
  readonly name: "Deprecated Functions";
22
22
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Deprecated, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.QuickFix];
23
23
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
24
- readonly description: "Marks deprecated functions and deprecated arguments of still-current functions, offering the replacement as a quick fix where one is known. A call to a bare name whose package the code never attaches is reported as uncertain, as any function of that name would answer to it.";
24
+ readonly description: "Finds deprecated functions and deprecated arguments of still-current functions, offering the replacement as a quick fix where one is known. A call to a bare name whose package the code never attaches is reported as uncertain, as any function of that name would answer to it.";
25
25
  readonly defaultConfig: (ctx: import("../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
26
26
  always: import("..").Identifier[];
27
27
  conditionally: Record<import("../dataflow/environments/identifier").BrandedIdentifier, import("../dataflow/environments/deprecation-info").DeprecatedFunctionInformation>;
@@ -36,7 +36,7 @@ export declare const LintingRules: {
36
36
  }>;
37
37
  readonly info: {
38
38
  readonly name: "File Path Validity";
39
- readonly description: "Checks whether file paths used in read and write operations are valid and point to existing files.";
39
+ readonly description: "Finds file paths used in read and write operations that are invalid or do not point to existing files.";
40
40
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
41
41
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.QuickFix];
42
42
  readonly defaultConfig: () => {
@@ -73,10 +73,10 @@ export declare const LintingRules: {
73
73
  })[];
74
74
  randomnessConsumers: string[];
75
75
  };
76
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility];
76
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility];
77
77
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
78
78
  readonly name: "Seeded Randomness";
79
- readonly description: "Checks whether randomness-based function calls are preceded by a random seed generation function. For consistent reproducibility, functions that use randomness should only be called after a constant random seed is set using a function like `set.seed`.";
79
+ readonly description: "Finds randomness-based function calls not preceded by a random seed generation function. For consistent reproducibility, functions that use randomness should only be called after a constant random seed is set using a function like `set.seed`.";
80
80
  };
81
81
  readonly prettyPrint: {
82
82
  readonly query: (result: import("./rules/seeded-randomness").SeededRandomnessResult, _meta: import("./rules/seeded-randomness").SeededRandomnessMeta) => string;
@@ -95,7 +95,7 @@ export declare const LintingRules: {
95
95
  };
96
96
  readonly info: {
97
97
  readonly name: "Absolute Paths";
98
- readonly description: "Checks whether file paths are absolute.";
98
+ readonly description: "Finds absolute file paths.";
99
99
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
100
100
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
101
101
  readonly defaultConfig: () => {
@@ -122,7 +122,7 @@ export declare const LintingRules: {
122
122
  };
123
123
  readonly info: {
124
124
  readonly name: "Unused Definitions";
125
- readonly description: "Checks for unused definitions.";
125
+ readonly description: "Finds definitions that are never used.";
126
126
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
127
127
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
128
128
  readonly defaultConfig: () => {
@@ -147,7 +147,7 @@ export declare const LintingRules: {
147
147
  readonly info: {
148
148
  readonly name: "Naming Convention";
149
149
  readonly certainty: import("./linter-format").LintingRuleCertainty.OverApproximative;
150
- readonly description: "Checks whether the symbols conform to a certain naming convention";
150
+ readonly description: "Finds symbols that do not follow the naming convention of the code.";
151
151
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Style, import("./linter-tags").LintingRuleTag.QuickFix];
152
152
  readonly activeByDefault: false;
153
153
  readonly defaultConfig: () => {
@@ -170,7 +170,7 @@ export declare const LintingRules: {
170
170
  readonly name: "Network Functions";
171
171
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Performance, import("./linter-tags").LintingRuleTag.Smell];
172
172
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
173
- readonly description: "Marks network functions that execute network operations, such as downloading files or making HTTP requests.";
173
+ readonly description: "Finds functions that execute network operations, such as downloading files or making HTTP requests.";
174
174
  readonly defaultConfig: (ctx: import("../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
175
175
  fns: import("./rules/network-functions").NetworkFunction[];
176
176
  };
@@ -190,7 +190,7 @@ export declare const LintingRules: {
190
190
  readonly name: "Dataframe Access Validation";
191
191
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
192
192
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
193
- readonly description: "Validates the existence of accessed columns and rows of dataframes.";
193
+ readonly description: "Finds accesses to columns and rows a data frame does not have.";
194
194
  readonly defaultConfig: () => {
195
195
  readLoadedData: false;
196
196
  };
@@ -198,18 +198,18 @@ export declare const LintingRules: {
198
198
  };
199
199
  readonly 'dead-code': {
200
200
  readonly createSearch: (config: import("./rules/dead-code").DeadCodeConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["with", "filter"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
201
- readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: import("./rules/dead-code").DeadCodeConfig, _data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => {
201
+ readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: import("./rules/dead-code").DeadCodeConfig, data: import("..").ReadonlyFlowrAnalysisProvider<import("..").KnownParser>) => Promise<{
202
202
  results: import("./linter-format").LintingResult[];
203
- };
203
+ }>;
204
204
  readonly prettyPrint: {
205
205
  readonly query: (result: import("./linter-format").LintingResult) => string;
206
206
  readonly full: (result: import("./linter-format").LintingResult) => string;
207
207
  };
208
208
  readonly info: {
209
209
  readonly name: "Dead Code";
210
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
210
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.QuickFix];
211
211
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
212
- readonly description: "Marks areas of code that are never reached during execution.";
212
+ readonly description: "Finds code that is never reached during execution.";
213
213
  readonly defaultConfig: () => {};
214
214
  };
215
215
  };
@@ -232,7 +232,7 @@ export declare const LintingRules: {
232
232
  };
233
233
  readonly info: {
234
234
  readonly name: "Useless Loops";
235
- readonly description: "Detect loops which only iterate once";
235
+ readonly description: "Finds loops that iterate only once.";
236
236
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
237
237
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability];
238
238
  readonly defaultConfig: () => {
@@ -250,8 +250,8 @@ export declare const LintingRules: {
250
250
  readonly full: (result: import("./rules/problematic-inputs").ProblematicInputsResult) => string;
251
251
  };
252
252
  readonly info: {
253
- readonly name: "Problematic inputs";
254
- readonly description: "Detects uses of dynamic calls (e.g. eval, system) with non-constant inputs, and graphics-device calls (pdf, postscript) where a filename starts with '|' indicating a pipe command injection.";
253
+ readonly name: "Problematic Inputs";
254
+ readonly description: "Finds dynamic calls (e.g. eval, system) with non-constant inputs, and graphics-device calls (pdf, postscript) where a filename starts with '|' indicating a pipe command injection.";
255
255
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.Performance];
256
256
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
257
257
  readonly defaultConfig: (ctx: import("../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
@@ -271,10 +271,10 @@ export declare const LintingRules: {
271
271
  readonly full: (result: import("./linter-format").LintingResult) => string;
272
272
  };
273
273
  readonly info: {
274
- readonly name: "Stop without call.=False argument";
275
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell];
274
+ readonly name: "Stop Without Call";
275
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
276
276
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
277
- readonly description: "Checks whether stop calls without call. argument set to FALSE are used.";
277
+ readonly description: "Finds `stop()` calls that do not set `call.` to `FALSE`.";
278
278
  readonly defaultConfig: () => {};
279
279
  };
280
280
  };
@@ -296,9 +296,9 @@ export declare const LintingRules: {
296
296
  };
297
297
  readonly info: {
298
298
  readonly name: "Roxygen Arguments";
299
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Style];
299
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Documentation];
300
300
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
301
- readonly description: "Checks whether a function has undocumented or overdocumented parameters";
301
+ readonly description: "Finds function parameters the roxygen documentation leaves out, and documented parameters the function does not have.";
302
302
  readonly defaultConfig: () => {};
303
303
  };
304
304
  };
@@ -314,8 +314,8 @@ export declare const LintingRules: {
314
314
  };
315
315
  readonly info: {
316
316
  readonly name: "Software Has License";
317
- readonly description: "Checks whether the software project provides a license (via a LICENSE file or the DESCRIPTION file License field).";
318
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Usability];
317
+ readonly description: "Finds software projects without a license (a LICENSE file or the License field of the DESCRIPTION).";
318
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Documentation, import("./linter-tags").LintingRuleTag.Usability];
319
319
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
320
320
  readonly defaultConfig: () => {
321
321
  checkDescriptionFile: true;
@@ -337,8 +337,8 @@ export declare const LintingRules: {
337
337
  };
338
338
  readonly info: {
339
339
  readonly name: "Software Has Tests";
340
- readonly description: "Checks whether the software project has tests (test files in a test directory or test function calls in R code).";
341
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
340
+ readonly description: "Finds software projects without tests (test files in a test directory or test function calls in R code).";
341
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
342
342
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
343
343
  readonly defaultConfig: () => {
344
344
  additionalTestFunctions: never[];
@@ -357,7 +357,7 @@ export declare const LintingRules: {
357
357
  };
358
358
  readonly info: {
359
359
  readonly name: "No Leaked Credentials";
360
- readonly description: "Detects hardcoded credentials assigned to variables or passed as arguments whose names suggest they hold passwords, tokens, or API keys, handed to authentication functions, or whose values match known credential formats (AWS, GitHub, Slack, Stripe, Google, JWT, SSH, URLs with passwords).";
360
+ readonly description: "Finds hardcoded credentials assigned to variables or passed as arguments whose names suggest they hold passwords, tokens, or API keys, handed to authentication functions, or whose values match known credential formats (AWS, GitHub, Slack, Stripe, Google, JWT, SSH, URLs with passwords).";
361
361
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Experimental, import("./linter-tags").LintingRuleTag.Smell];
362
362
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
363
363
  readonly defaultConfig: () => {
@@ -380,7 +380,7 @@ export declare const LintingRules: {
380
380
  readonly info: {
381
381
  readonly name: "Undefined Symbol";
382
382
  readonly certainty: import("./linter-format").LintingRuleCertainty.OverApproximative;
383
- readonly description: "Flags functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.";
383
+ readonly description: "Finds functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.";
384
384
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Experimental];
385
385
  readonly defaultConfig: () => {
386
386
  checkFunctions: true;
@@ -410,7 +410,7 @@ export declare const LintingRules: {
410
410
  readonly name: "Unused Import";
411
411
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.QuickFix];
412
412
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
413
- readonly description: "Highlights packages that are attached but never used, so the code runs just the same without them. Requires a signature database, and packages that only do their work on load should be whitelisted in the configuration.";
413
+ readonly description: "Finds packages that are attached but never used, so the code runs just the same without them. Requires a signature database, and packages that only do their work on load should be whitelisted in the configuration.";
414
414
  readonly defaultConfig: () => {
415
415
  whitelist: never[];
416
416
  };
@@ -428,7 +428,7 @@ export declare const LintingRules: {
428
428
  };
429
429
  readonly info: {
430
430
  readonly name: "Syntactically Valid";
431
- readonly description: "Checks whether the code is free of syntax errors, using the configured (error-tolerant) parser, and offers extensible quick-fixes to repair them.";
431
+ readonly description: "Finds syntax errors with the configured (error-tolerant) parser. Offers extensible quick fixes to repair them.";
432
432
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.QuickFix];
433
433
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
434
434
  readonly activeByDefault: false;
@@ -453,9 +453,9 @@ export declare const LintingRules: {
453
453
  };
454
454
  readonly info: {
455
455
  readonly name: "Unclosed Connection";
456
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Smell];
456
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.QuickFix];
457
457
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
458
- readonly description: "Flags connections that are opened but not closed on every path opening them.";
458
+ readonly description: "Finds connections that are opened but not closed on every path opening them.";
459
459
  readonly defaultConfig: () => {
460
460
  openFns: never[];
461
461
  closeFns: never[];
@@ -479,7 +479,7 @@ export declare const LintingRules: {
479
479
  readonly name: "Unescaped Arguments";
480
480
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.Security, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Shiny, import("./linter-tags").LintingRuleTag.QuickFix];
481
481
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
482
- readonly description: "Detects arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.";
482
+ readonly description: "Finds arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.";
483
483
  readonly defaultConfig: () => {
484
484
  categories: {
485
485
  system: {
@@ -548,8 +548,8 @@ export declare const LintingRules: {
548
548
  readonly info: {
549
549
  readonly name: "Namespace Access Validity";
550
550
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
551
- readonly description: "Flags `pkg:::name` where `name` is actually exported by `pkg` (so `::` would do), and `pkg::name` where the signature database knows `name` is not exported (which fails at runtime in R). Stays silent whenever the database has no definite answer for the name.";
552
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug];
551
+ readonly description: "Finds `pkg:::name` where `name` is actually exported by `pkg` (so `::` would do), and `pkg::name` where the signature database knows `name` is not exported (which fails at runtime in R). Stays silent whenever the database has no definite answer for the name.";
552
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.QuickFix];
553
553
  readonly defaultConfig: () => {};
554
554
  };
555
555
  };
@@ -603,7 +603,7 @@ export declare const LintingRules: {
603
603
  readonly name: "Description Metadata";
604
604
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
605
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.";
606
+ readonly description: "Finds problems in the DESCRIPTION: required fields, package name, version, maintainer, dependency fields, license, Authors@R, encoding, and the Title and Description style CRAN asks for.";
607
607
  readonly defaultConfig: () => {
608
608
  cranIncoming: true;
609
609
  maxDepends: number;
@@ -653,7 +653,7 @@ export declare const LintingRules: {
653
653
  };
654
654
  readonly info: {
655
655
  readonly name: "Non-ASCII Code";
656
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.QuickFix];
656
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.QuickFix];
657
657
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
658
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
659
  readonly defaultConfig: () => {
@@ -676,7 +676,7 @@ export declare const LintingRules: {
676
676
  };
677
677
  readonly info: {
678
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];
679
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.QuickFix];
680
680
  readonly certainty: import("./linter-format").LintingRuleCertainty.Exact;
681
681
  readonly activeByDefault: false;
682
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.";
@@ -717,9 +717,9 @@ export declare const LintingRules: {
717
717
  };
718
718
  readonly info: {
719
719
  readonly name: "Package Hooks";
720
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Usability];
720
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.QuickFix];
721
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.";
722
+ readonly description: "Finds problems in `.onLoad`, `.onAttach`, `.onDetach`, and `.Last.lib`: argument lists, attaching packages, output other than `packageStartupMessage()`, `installed.packages()`, misplaced `library.dynam()` calls, and the obsolete `.First.lib`. Follows calls into the package's own functions.";
723
723
  readonly defaultConfig: () => {
724
724
  startupMessageFunctions: string[];
725
725
  allowedOutput: string[];
@@ -763,7 +763,7 @@ export declare const LintingRules: {
763
763
  };
764
764
  readonly info: {
765
765
  readonly name: "Namespace Tampering";
766
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Security];
766
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.Security];
767
767
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
768
768
  readonly description: "Finds `unlockBinding()` and `assignInNamespace()` on other namespaces, `.Internal()` calls, and `library.dynam()` given a file extension.";
769
769
  readonly defaultConfig: () => {
@@ -813,7 +813,7 @@ export declare const LintingRules: {
813
813
  readonly name: "Foreign Function Calls";
814
814
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness];
815
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.";
816
+ readonly description: "Finds problems in `.Call`, `.C`, `.External`, and `.Fortran` calls: a missing or empty `PACKAGE`, calls into base or other packages, and undeclared packages. Routine and package names are resolved through variables.";
817
817
  readonly defaultConfig: () => {
818
818
  resolveValues: true;
819
819
  };
@@ -860,7 +860,7 @@ export declare const LintingRules: {
860
860
  };
861
861
  readonly info: {
862
862
  readonly name: "Call Arguments";
863
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness];
863
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Bug, import("./linter-tags").LintingRuleTag.Robustness, import("./linter-tags").LintingRuleTag.QuickFix];
864
864
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
865
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
866
  readonly defaultConfig: () => {
@@ -892,7 +892,7 @@ export declare const LintingRules: {
892
892
  readonly name: "Package Structure";
893
893
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
894
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.";
895
+ readonly description: "Finds problems in the package files: portable names, hidden files, top-level files, subdirectories, permissions, executables, timestamps, sizes, line endings of scripts, and vignette leftovers.";
896
896
  readonly defaultConfig: () => {
897
897
  maxPathLength: number;
898
898
  hiddenAllowed: string[];
@@ -927,7 +927,7 @@ export declare const LintingRules: {
927
927
  readonly name: "Compiled Code";
928
928
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
929
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/`.";
930
+ readonly description: "Finds problems in `src/` and the build files: non-portable Makevars flags, BLAS/LAPACK and OpenMP flag use, GNU make extensions, pragmas, line endings, Fortran KIND, the C++ standard, calls to non-API or non-portable entry points, and `useDynLib` against `src/`.";
931
931
  readonly defaultConfig: () => {
932
932
  skip: never[];
933
933
  nonPortableFlags: string[];
@@ -973,7 +973,7 @@ export declare const LintingRules: {
973
973
  readonly name: "Package Metafiles";
974
974
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness];
975
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.";
976
+ readonly description: "Finds problems in the demo index, `INDEX`, `inst/CITATION`, and relative links in README, NEWS, and vignettes.";
977
977
  readonly defaultConfig: () => {
978
978
  index: true;
979
979
  citation: true;
@@ -998,7 +998,7 @@ export declare const LintingRules: {
998
998
  readonly name: "Rd Files";
999
999
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck, import("./linter-tags").LintingRuleTag.Robustness];
1000
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.";
1001
+ readonly description: "Finds problems in the Rd files: syntax, unknown macros, required and duplicated sections, metadata, cross-references, line widths, contents, and the example code.";
1002
1002
  readonly defaultConfig: () => {
1003
1003
  parse: true;
1004
1004
  minLevel: number;
@@ -1042,7 +1042,7 @@ export declare const LintingRules: {
1042
1042
  readonly name: "Package Data";
1043
1043
  readonly tags: readonly [import("./linter-tags").LintingRuleTag.CmdCheck];
1044
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.";
1045
+ readonly description: "Finds problems in `data/` and `R/sysdata.rda`: allowed file types, LazyData, compression, the serialization version R needs, and undocumented data sets.";
1046
1046
  readonly defaultConfig: () => {
1047
1047
  maxUncompressedSize: number;
1048
1048
  checkCompaction: true;
@@ -45,7 +45,7 @@ export declare const ABSOLUTE_PATH: {
45
45
  };
46
46
  readonly info: {
47
47
  readonly name: "Absolute Paths";
48
- readonly description: "Checks whether file paths are absolute.";
48
+ readonly description: "Finds absolute file paths.";
49
49
  readonly tags: readonly [LintingRuleTag.Robustness, LintingRuleTag.Reproducibility, LintingRuleTag.Smell, LintingRuleTag.QuickFix];
50
50
  readonly certainty: LintingRuleCertainty.BestEffort;
51
51
  readonly defaultConfig: () => {
@@ -20,6 +20,7 @@ const resolve_argument_1 = require("../../dataflow/eval/resolve/resolve-argument
20
20
  const r_string_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-string");
21
21
  const other_path_functions_1 = require("../../queries/catalog/dependencies-query/function-info/other-path-functions");
22
22
  const identifier_1 = require("../../dataflow/environments/identifier");
23
+ const file_path_validity_1 = require("./file-path-validity");
23
24
  function inferWd(file, wd, ctx) {
24
25
  if (wd === '@script') {
25
26
  return file;
@@ -114,11 +115,12 @@ exports.ABSOLUTE_PATH = {
114
115
  const path = resolvePathForAbsoluteCheck(value, config.ignoreUrls);
115
116
  return path !== undefined && (0, strings_1.isAbsolutePath)(path, regex) ? path : undefined;
116
117
  };
117
- const finding = (certainty, filePath, node, wd) => (0, objects_1.compactRecord)({
118
+ /* the fix rewrites the string spelling the path, which may sit inside the reported call */
119
+ const finding = (certainty, filePath, node, wd, str = node) => (0, objects_1.compactRecord)({
118
120
  certainty,
119
121
  filePath,
120
122
  loc: range_1.SourceLocation.fromNode(node) ?? range_1.SourceLocation.invalid(),
121
- quickFix: quickFixForPath(node, filePath, wd)
123
+ quickFix: quickFixForPath(str, filePath, wd)
122
124
  });
123
125
  return {
124
126
  results: withoutNested(elements.getElements().flatMap(element => {
@@ -138,7 +140,7 @@ exports.ABSOLUTE_PATH = {
138
140
  return [];
139
141
  }
140
142
  const path = absolute(r.value);
141
- return path === undefined ? [] : [finding(linter_format_1.LintingResultCertainty.Certain, path, idMap.get(r.nodeId), wd)];
143
+ return path === undefined ? [] : [finding(linter_format_1.LintingResultCertainty.Certain, path, idMap.get(r.nodeId), wd, (0, file_path_validity_1.pathArgStringNode)(idMap, r.nodeId, r.value))];
142
144
  });
143
145
  // if we have no absolute paths, but all paths are known, we can return an empty array
144
146
  if (found.length > 0 || reads.every(r => r.value !== dependencies_query_format_1.Unknown)) {
@@ -167,7 +169,7 @@ exports.ABSOLUTE_PATH = {
167
169
  },
168
170
  info: {
169
171
  name: 'Absolute Paths',
170
- description: 'Checks whether file paths are absolute.',
172
+ description: 'Finds absolute file paths.',
171
173
  tags: [linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.Reproducibility, linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.QuickFix],
172
174
  // checks all found paths for whether they're absolute to ensure correctness, but doesn't handle non-constant paths so not all will be returned
173
175
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
@@ -52,7 +52,7 @@ export declare const CALL_ARGUMENTS: {
52
52
  };
53
53
  readonly info: {
54
54
  readonly name: "Call Arguments";
55
- readonly tags: readonly [LintingRuleTag.CmdCheck, LintingRuleTag.Bug, LintingRuleTag.Robustness];
55
+ readonly tags: readonly [LintingRuleTag.CmdCheck, LintingRuleTag.Bug, LintingRuleTag.Robustness, LintingRuleTag.QuickFix];
56
56
  readonly certainty: LintingRuleCertainty.BestEffort;
57
57
  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.";
58
58
  readonly defaultConfig: () => {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CALL_ARGUMENTS = void 0;
4
4
  const linter_format_1 = require("../../linter-format");
5
+ const range_1 = require("../../../util/range");
5
6
  const r_symbol_1 = require("../../../r-bridge/lang-4.x/ast/model/nodes/r-symbol");
6
7
  const flowr_search_builder_1 = require("../../../search/flowr-search-builder");
7
8
  const linter_tags_1 = require("../../linter-tags");
@@ -78,7 +79,7 @@ function mismatchesOf(call, formals, partial) {
78
79
  if (candidates.length === 1) {
79
80
  bound.add(candidates[0]);
80
81
  if (partial) {
81
- result.push({ kind: 'partial-match', argument: name, message: `partial argument match of '${name}' to '${candidates[0]}'` });
82
+ result.push({ kind: 'partial-match', argument: name, message: `partial argument match of '${name}' to '${candidates[0]}'`, full: { name: candidates[0], loc: range_1.SourceLocation.fromNode(arg.name) } });
82
83
  }
83
84
  }
84
85
  else if (candidates.length > 1) {
@@ -143,11 +144,15 @@ exports.CALL_ARGUMENTS = {
143
144
  for (const m of mismatches) {
144
145
  const key = `${m.kind}:${m.argument ?? ''}`;
145
146
  const entry = keys.get(key);
146
- keys.set(key, { m, count: (entry?.count ?? 0) + 1 });
147
+ keys.set(key, { m, count: (entry?.count ?? 0) + 1, fulls: (entry?.fulls ?? new Set()).add(m.full?.name) });
147
148
  }
148
149
  }
149
- for (const { m, count } of keys.values()) {
150
- add(node, { kind: m.kind, function: fn, ...(m.argument !== undefined ? { argument: m.argument } : {}), message: `possible error in ${fn}(): ${m.message}` }, targets.certain && count === targets.formals.length);
150
+ for (const { m, count, fulls } of keys.values()) {
151
+ const everywhere = count === targets.formals.length;
152
+ /* the name is spelled out only when every target takes the same formal for it */
153
+ const quickFix = m.full?.loc !== undefined && everywhere && fulls.size === 1
154
+ ? [{ type: 'replace', loc: m.full.loc, description: `Spell out \`${m.full.name}\``, replacement: m.full.name }] : undefined;
155
+ add(node, { kind: m.kind, function: fn, ...(m.argument !== undefined ? { argument: m.argument } : {}), message: `possible error in ${fn}(): ${m.message}`, ...(quickFix ? { quickFix } : {}) }, targets.certain && everywhere);
151
156
  }
152
157
  }
153
158
  const nodes = (0, cmd_check_util_1.projectNodes)(ast);
@@ -199,7 +204,7 @@ exports.CALL_ARGUMENTS = {
199
204
  prettyPrint: (0, cmd_check_util_1.printer)(r => `${r.kind}${r.function ? ` in ${r.function}` : ''}${r.argument ? ` (${r.argument})` : ''}`),
200
205
  info: {
201
206
  name: 'Call Arguments',
202
- tags: [linter_tags_1.LintingRuleTag.CmdCheck, linter_tags_1.LintingRuleTag.Bug, linter_tags_1.LintingRuleTag.Robustness],
207
+ tags: [linter_tags_1.LintingRuleTag.CmdCheck, linter_tags_1.LintingRuleTag.Bug, linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.QuickFix],
203
208
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
204
209
  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.',
205
210
  defaultConfig: () => ({
@@ -54,7 +54,7 @@ export declare const COMPILED_CODE: {
54
54
  readonly name: "Compiled Code";
55
55
  readonly tags: readonly [LintingRuleTag.CmdCheck];
56
56
  readonly certainty: LintingRuleCertainty.BestEffort;
57
- 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/`.";
57
+ readonly description: "Finds problems in `src/` and the build files: non-portable Makevars flags, BLAS/LAPACK and OpenMP flag use, GNU make extensions, pragmas, line endings, Fortran KIND, the C++ standard, calls to non-API or non-portable entry points, and `useDynLib` against `src/`.";
58
58
  readonly defaultConfig: () => {
59
59
  skip: never[];
60
60
  nonPortableFlags: string[];
@@ -326,7 +326,7 @@ exports.COMPILED_CODE = {
326
326
  name: 'Compiled Code',
327
327
  tags: [linter_tags_1.LintingRuleTag.CmdCheck],
328
328
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
329
- 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/`.',
329
+ description: 'Finds problems in `src/` and the build files: non-portable Makevars flags, BLAS/LAPACK and OpenMP flag use, GNU make extensions, pragmas, line endings, Fortran KIND, the C++ standard, calls to non-API or non-portable entry points, and `useDynLib` against `src/`.',
330
330
  defaultConfig: () => ({
331
331
  skip: [],
332
332
  nonPortableFlags: ['O.*', 'W', 'w', 'W[^l].*', 'ansi', 'pedantic', 'traditional', 'f.*', 'm.*', 'std.*', 'isystem', 'x', 'pipe', 'cpp', 'g', 'q'],
@@ -20,8 +20,12 @@ export interface ConformanceEntry {
20
20
  readonly book: RPackagesSection;
21
21
  readonly rules: readonly LintingRuleNames[];
22
22
  readonly level: ConformanceLevel;
23
- /** what is left out, or what flowR adds */
23
+ /** what flowR leaves out, or how it decides what R finds out by building or running the package */
24
24
  readonly note?: string;
25
+ /** what flowR reports beyond the step */
26
+ readonly adds?: string;
27
+ /** the configuration options () that tune what flowR reports for the step */
28
+ readonly options?: readonly string[];
25
29
  }
26
30
  /** A group of related `R CMD check` steps. */
27
31
  export interface ConformanceArea {