@eagleoutice/flowr 2.16.3 → 2.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +14 -14
  2. package/dataflow/environments/query-fn-props.js +2 -1
  3. package/dataflow/eval/resolve/resolve.js +2 -6
  4. package/documentation/doc-util/doc-query.d.ts +1 -1
  5. package/documentation/doc-util/doc-query.js +3 -1
  6. package/documentation/doc-util/doc-timings.js +3 -2
  7. package/documentation/wiki-create-linting-rules.js +1 -1
  8. package/documentation/wiki-linter.d.ts +14 -0
  9. package/documentation/wiki-linter.js +341 -126
  10. package/linter/linter-rules.d.ts +47 -47
  11. package/linter/rules/absolute-path.d.ts +1 -1
  12. package/linter/rules/absolute-path.js +6 -4
  13. package/linter/rules/cmd-check/call-arguments.d.ts +1 -1
  14. package/linter/rules/cmd-check/call-arguments.js +10 -5
  15. package/linter/rules/cmd-check/compiled-code.d.ts +1 -1
  16. package/linter/rules/cmd-check/compiled-code.js +1 -1
  17. package/linter/rules/cmd-check/conformance.d.ts +5 -1
  18. package/linter/rules/cmd-check/conformance.js +64 -64
  19. package/linter/rules/cmd-check/description-metadata.d.ts +1 -1
  20. package/linter/rules/cmd-check/description-metadata.js +1 -1
  21. package/linter/rules/cmd-check/documentation-mismatch.d.ts +6 -0
  22. package/linter/rules/cmd-check/foreign-function-calls.d.ts +1 -1
  23. package/linter/rules/cmd-check/foreign-function-calls.js +1 -1
  24. package/linter/rules/cmd-check/namespace-tampering.d.ts +1 -1
  25. package/linter/rules/cmd-check/namespace-tampering.js +1 -1
  26. package/linter/rules/cmd-check/non-ascii-code.d.ts +1 -1
  27. package/linter/rules/cmd-check/non-ascii-code.js +1 -1
  28. package/linter/rules/cmd-check/package-data.d.ts +3 -1
  29. package/linter/rules/cmd-check/package-data.js +1 -1
  30. package/linter/rules/cmd-check/package-hooks.d.ts +2 -2
  31. package/linter/rules/cmd-check/package-hooks.js +13 -5
  32. package/linter/rules/cmd-check/package-metafiles.d.ts +1 -1
  33. package/linter/rules/cmd-check/package-metafiles.js +1 -1
  34. package/linter/rules/cmd-check/package-structure.d.ts +1 -1
  35. package/linter/rules/cmd-check/package-structure.js +1 -1
  36. package/linter/rules/cmd-check/rd-files.d.ts +17 -1
  37. package/linter/rules/cmd-check/rd-files.js +1 -1
  38. package/linter/rules/cmd-check/true-false-abbreviation.d.ts +1 -1
  39. package/linter/rules/cmd-check/true-false-abbreviation.js +1 -1
  40. package/linter/rules/dataframe-access-validation.d.ts +1 -1
  41. package/linter/rules/dataframe-access-validation.js +1 -1
  42. package/linter/rules/dead-code.d.ts +4 -4
  43. package/linter/rules/dead-code.js +19 -4
  44. package/linter/rules/deprecated-functions.d.ts +1 -1
  45. package/linter/rules/deprecated-functions.js +1 -1
  46. package/linter/rules/file-path-validity.d.ts +6 -2
  47. package/linter/rules/file-path-validity.js +7 -3
  48. package/linter/rules/namespace-access.d.ts +3 -3
  49. package/linter/rules/namespace-access.js +12 -3
  50. package/linter/rules/naming-convention.d.ts +1 -1
  51. package/linter/rules/naming-convention.js +1 -1
  52. package/linter/rules/network-functions.d.ts +1 -1
  53. package/linter/rules/network-functions.js +1 -1
  54. package/linter/rules/no-leaked-credentials.d.ts +1 -1
  55. package/linter/rules/no-leaked-credentials.js +1 -1
  56. package/linter/rules/problematic-inputs.d.ts +2 -2
  57. package/linter/rules/problematic-inputs.js +2 -2
  58. package/linter/rules/roxygen-arguments.d.ts +2 -2
  59. package/linter/rules/roxygen-arguments.js +2 -2
  60. package/linter/rules/seeded-randomness.d.ts +2 -2
  61. package/linter/rules/seeded-randomness.js +2 -2
  62. package/linter/rules/software-has-license.d.ts +2 -2
  63. package/linter/rules/software-has-license.js +2 -2
  64. package/linter/rules/software-has-tests.d.ts +2 -2
  65. package/linter/rules/software-has-tests.js +2 -2
  66. package/linter/rules/stop-with-call-arg.d.ts +3 -3
  67. package/linter/rules/stop-with-call-arg.js +21 -4
  68. package/linter/rules/syntactically-valid.d.ts +1 -1
  69. package/linter/rules/syntactically-valid.js +1 -1
  70. package/linter/rules/unclosed-connection.d.ts +2 -2
  71. package/linter/rules/unclosed-connection.js +2 -2
  72. package/linter/rules/undefined-symbol.d.ts +1 -1
  73. package/linter/rules/undefined-symbol.js +1 -1
  74. package/linter/rules/unescaped-arguments.d.ts +1 -1
  75. package/linter/rules/unescaped-arguments.js +1 -1
  76. package/linter/rules/unused-definition.d.ts +1 -1
  77. package/linter/rules/unused-definition.js +1 -1
  78. package/linter/rules/unused-import.d.ts +1 -1
  79. package/linter/rules/unused-import.js +1 -1
  80. package/linter/rules/useless-loop.d.ts +1 -1
  81. package/linter/rules/useless-loop.js +1 -1
  82. package/package.json +1 -1
  83. package/project/context/flowr-analyzer-environment-context.d.ts +1 -1
  84. package/project/context/flowr-analyzer-environment-context.js +2 -1
  85. package/project/context/flowr-analyzer-files-context.js +12 -11
  86. package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +1 -1
  87. package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +1 -1
  88. package/queries/catalog/dependencies-query/data-flow.d.ts +2 -0
  89. package/queries/catalog/dependencies-query/data-flow.js +6 -0
  90. package/queries/catalog/dependencies-query/implicit-echo.js +3 -1
  91. package/util/version.js +2 -2
@@ -12,18 +12,18 @@ export interface DeadCodeConfig extends MergeableRecord {
12
12
  }
13
13
  export declare const DEAD_CODE: {
14
14
  readonly createSearch: (config: DeadCodeConfig) => import("../../search/flowr-search-builder").FlowrSearchBuilder<"all", ["with", "filter"], import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../../search/flowr-search").FlowrSearchElements<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, [] | import("../../search/flowr-search").FlowrSearchElement<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
15
- readonly processSearchResult: (elements: import("../../search/flowr-search").FlowrSearchElements<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../search/flowr-search").FlowrSearchElement<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: DeadCodeConfig, _data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => {
15
+ readonly processSearchResult: (elements: import("../../search/flowr-search").FlowrSearchElements<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../search/flowr-search").FlowrSearchElement<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, _config: DeadCodeConfig, data: import("../..").ReadonlyFlowrAnalysisProvider<import("../..").KnownParser>) => Promise<{
16
16
  results: LintingResult[];
17
- };
17
+ }>;
18
18
  readonly prettyPrint: {
19
19
  readonly query: (result: LintingResult) => string;
20
20
  readonly full: (result: LintingResult) => string;
21
21
  };
22
22
  readonly info: {
23
23
  readonly name: "Dead Code";
24
- readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Usability, LintingRuleTag.Reproducibility];
24
+ readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Usability, LintingRuleTag.Reproducibility, LintingRuleTag.QuickFix];
25
25
  readonly certainty: LintingRuleCertainty.BestEffort;
26
- readonly description: "Marks areas of code that are never reached during execution.";
26
+ readonly description: "Finds code that is never reached during execution.";
27
27
  readonly defaultConfig: () => {};
28
28
  };
29
29
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEAD_CODE = void 0;
4
4
  const linter_format_1 = require("../linter-format");
5
5
  const range_1 = require("../../util/range");
6
+ const r_expression_list_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-expression-list");
6
7
  const flowr_search_builder_1 = require("../../search/flowr-search-builder");
7
8
  const linter_tags_1 = require("../linter-tags");
8
9
  const search_enrichers_1 = require("../../search/search-executor/search-enrichers");
@@ -27,7 +28,8 @@ exports.DEAD_CODE = {
27
28
  roleInParent: "el-g" /* RoleInParent.ExpressionListGrouping */
28
29
  }
29
30
  }))),
30
- processSearchResult: (elements, _config, _data) => {
31
+ processSearchResult: async (elements, _config, data) => {
32
+ const { idMap } = await data.normalize();
31
33
  return {
32
34
  results: combineResults(elements.getElements()
33
35
  .map(element => ({
@@ -35,7 +37,7 @@ exports.DEAD_CODE = {
35
37
  involvedId: element.node.info.id,
36
38
  loc: range_1.SourceLocation.fromNode(element.node)
37
39
  }))
38
- .filter(element => (0, assert_1.isNotUndefined)(element.loc)))
40
+ .filter(element => (0, assert_1.isNotUndefined)(element.loc))).map(result => isStatement(result, idMap) ? { ...result, quickFix: [{ type: 'remove', loc: result.loc, description: 'Remove the unreachable code' }] } : result)
39
41
  };
40
42
  },
41
43
  prettyPrint: {
@@ -44,13 +46,26 @@ exports.DEAD_CODE = {
44
46
  },
45
47
  info: {
46
48
  name: 'Dead Code',
47
- tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Usability, linter_tags_1.LintingRuleTag.Reproducibility],
49
+ tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Usability, linter_tags_1.LintingRuleTag.Reproducibility, linter_tags_1.LintingRuleTag.QuickFix],
48
50
  // our limited dead code analysis causes complex cases of dead code not to be included in the linting result, but deadness is properly investigated for returned results
49
51
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
50
- description: 'Marks areas of code that are never reached during execution.',
52
+ description: 'Finds code that is never reached during execution.',
51
53
  defaultConfig: () => ({})
52
54
  }
53
55
  };
56
+ /** whether the result is a whole statement of a block or the file, which can go without breaking the code around it */
57
+ function isStatement(result, idMap) {
58
+ const ids = Array.isArray(result.involvedId) ? result.involvedId : [result.involvedId];
59
+ return ids.some(id => {
60
+ const node = id === undefined ? undefined : idMap.get(id);
61
+ const parent = node?.info.parent === undefined ? undefined : idMap.get(node.info.parent);
62
+ /* the branch of an `if` without braces is a list of its own, which is no block */
63
+ const own = range_1.SourceLocation.fromNode(node);
64
+ return node?.info.role === "el-c" /* RoleInParent.ExpressionListChild */ && r_expression_list_1.RExpressionList.is(parent)
65
+ && (parent.grouping !== undefined || parent.info.parent === undefined)
66
+ && own !== undefined && range_1.SourceLocation.isSubsetOf(result.loc, own) && range_1.SourceLocation.isSubsetOf(own, result.loc);
67
+ });
68
+ }
54
69
  function combineResults(results) {
55
70
  for (let i = results.length - 1; i >= 0; i--) {
56
71
  const result = results[i];
@@ -67,7 +67,7 @@ export declare const DEPRECATED_FUNCTIONS: {
67
67
  readonly name: "Deprecated Functions";
68
68
  readonly tags: readonly [LintingRuleTag.Deprecated, LintingRuleTag.Smell, LintingRuleTag.Usability, LintingRuleTag.Reproducibility, LintingRuleTag.QuickFix];
69
69
  readonly certainty: LintingRuleCertainty.BestEffort;
70
- 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.";
70
+ 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.";
71
71
  readonly defaultConfig: (ctx: import("../../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
72
72
  always: Identifier[];
73
73
  conditionally: Record<BrandedIdentifier, DeprecatedFunctionInformation>;
@@ -206,7 +206,7 @@ exports.DEPRECATED_FUNCTIONS = {
206
206
  // the hardcoded `always` and `conditionally` list ensures every reported hit is real, but the list is pre-crawled and hence
207
207
  // incomplete; the signature-database pass above adds recall for whichever packages are resolved
208
208
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
209
- 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.',
209
+ 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.',
210
210
  defaultConfig: ctx => ({
211
211
  always: ctx.env.deriveFromDefinitions(alwayDeprecatedFromBuiltinConfig),
212
212
  conditionally: ctx.env.deriveFromDefinitions(conditionalyDeprecatedFromBuiltinConfig)
@@ -2,8 +2,10 @@ import { type LintingResult, LintingRuleCertainty } from '../linter-format';
2
2
  import type { MergeableRecord } from '../../util/objects';
3
3
  import type { FunctionInfo } from '../../queries/catalog/dependencies-query/function-info/function-info';
4
4
  import { LintingRuleTag } from '../linter-tags';
5
- import type { ParentInformation } from '../../r-bridge/lang-4.x/ast/model/processing/decorate';
5
+ import { RString } from '../../r-bridge/lang-4.x/ast/model/nodes/r-string';
6
+ import type { AstIdMap, ParentInformation } from '../../r-bridge/lang-4.x/ast/model/processing/decorate';
6
7
  import type { ReadonlyFlowrAnalysisProvider } from '../../project/flowr-analyzer';
8
+ import type { NodeId } from '../../r-bridge/lang-4.x/ast/model/processing/node-id';
7
9
  export interface FilePathValidityResult extends LintingResult {
8
10
  filePath: string;
9
11
  }
@@ -43,7 +45,7 @@ export declare const FILE_PATH_VALIDITY: {
43
45
  }>;
44
46
  readonly info: {
45
47
  readonly name: "File Path Validity";
46
- readonly description: "Checks whether file paths used in read and write operations are valid and point to existing files.";
48
+ readonly description: "Finds file paths used in read and write operations that are invalid or do not point to existing files.";
47
49
  readonly certainty: LintingRuleCertainty.BestEffort;
48
50
  readonly tags: readonly [LintingRuleTag.Robustness, LintingRuleTag.Reproducibility, LintingRuleTag.Bug, LintingRuleTag.QuickFix];
49
51
  readonly defaultConfig: () => {
@@ -58,3 +60,5 @@ export declare const FILE_PATH_VALIDITY: {
58
60
  readonly full: (result: FilePathValidityResult) => string;
59
61
  };
60
62
  };
63
+ /** the string-literal path argument of a call whose resolved value is `value`, for anchoring a quick fix */
64
+ export declare function pathArgStringNode(idMap: AstIdMap, callId: NodeId, value: string): RString | undefined;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FILE_PATH_VALIDITY = void 0;
4
+ exports.pathArgStringNode = pathArgStringNode;
4
5
  const linter_format_1 = require("../linter-format");
5
6
  const strings_1 = require("../../util/text/strings");
6
7
  const flowr_search_builder_1 = require("../../search/flowr-search-builder");
@@ -30,6 +31,7 @@ const built_in_props_1 = require("../../dataflow/environments/built-in-props");
30
31
  const resolve_argument_1 = require("../../dataflow/eval/resolve/resolve-argument");
31
32
  const r_base_packages_1 = require("../../util/r-base-packages");
32
33
  const secure_mode_1 = require("../../util/secure-mode");
34
+ const files_1 = require("../../util/files");
33
35
  const DataSetExtensions = ['R', 'r', 'RData', 'rdata', 'rda', 'tab', 'txt', 'TXT', 'tab.gz', 'tab.bz2', 'tab.xz', 'txt.gz', 'txt.bz2', 'txt.xz', 'csv', 'CSV'];
34
36
  function namesPackage(node) {
35
37
  return r_function_call_1.RFunctionCall.is(node) && node.arguments.some(a => a !== r_function_call_1.EmptyArgument && a.name !== undefined && ['package', 'lib.loc'].includes(identifier_1.Identifier.getName(a.name.content)));
@@ -152,7 +154,7 @@ exports.FILE_PATH_VALIDITY = {
152
154
  },
153
155
  info: {
154
156
  name: 'File Path Validity',
155
- description: 'Checks whether file paths used in read and write operations are valid and point to existing files.',
157
+ description: 'Finds file paths used in read and write operations that are invalid or do not point to existing files.',
156
158
  // checks all found paths for whether they're valid to ensure correctness, but doesn't handle non-constant paths so not all will be returned
157
159
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
158
160
  tags: [linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.Reproducibility, linter_tags_1.LintingRuleTag.Bug, linter_tags_1.LintingRuleTag.QuickFix],
@@ -220,11 +222,13 @@ function buildDidYouMeanFix(idMap, callId, value, found) {
220
222
  /* a fix that names no place or changes nothing cannot be carried out, so none is offered */
221
223
  return undefined;
222
224
  }
225
+ /* R reads a backslash in a string as an escape, so a windows path is written with forward slashes */
226
+ const fixed = files_1.RPath.of(found);
223
227
  return [{
224
228
  type: 'replace',
225
229
  loc,
226
- description: `Replace with existing path \`${found}\``,
227
- replacement: str.content.quotes + found + str.content.quotes
230
+ description: `Replace with existing path \`${fixed}\``,
231
+ replacement: str.content.quotes + fixed + str.content.quotes
228
232
  }];
229
233
  }
230
234
  //# sourceMappingURL=file-path-validity.js.map
@@ -1,4 +1,4 @@
1
- import type { MergeableRecord } from '../../util/objects';
1
+ import { type MergeableRecord } from '../../util/objects';
2
2
  import { type LintingResult, LintingRuleCertainty } from '../linter-format';
3
3
  import { LintingRuleTag } from '../linter-tags';
4
4
  /** kind of mismatch between the `::`/`:::` written and what the package actually exports */
@@ -35,8 +35,8 @@ export declare const NAMESPACE_ACCESS: {
35
35
  readonly info: {
36
36
  readonly name: "Namespace Access Validity";
37
37
  readonly certainty: LintingRuleCertainty.BestEffort;
38
- 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.";
39
- readonly tags: readonly [LintingRuleTag.Bug];
38
+ 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.";
39
+ readonly tags: readonly [LintingRuleTag.Bug, LintingRuleTag.QuickFix];
40
40
  readonly defaultConfig: () => {};
41
41
  };
42
42
  };
@@ -5,10 +5,12 @@ const identifier_1 = require("../../dataflow/environments/identifier");
5
5
  const r_symbol_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-symbol");
6
6
  const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
7
7
  const flowr_search_builder_1 = require("../../search/flowr-search-builder");
8
+ const objects_1 = require("../../util/objects");
8
9
  const range_1 = require("../../util/range");
9
10
  const linter_format_1 = require("../linter-format");
10
11
  const linter_tags_1 = require("../linter-tags");
11
12
  const schema_1 = require("../../project/sigdb/schema");
13
+ const SyntacticName = /^(?:[A-Za-z]|\.(?![0-9]))[A-Za-z0-9._]*$/;
12
14
  /**
13
15
  * Cross-checks every `pkg::name`/`pkg:::name` against the signature database's exported bit.
14
16
  * An absent entry (unknown package, unresolved version, uncatalogued name) is never read as "not exported" -
@@ -41,7 +43,14 @@ exports.NAMESPACE_ACCESS = {
41
43
  : (raw.exported ? undefined : 'not-exported');
42
44
  const loc = range_1.SourceLocation.fromNode(node);
43
45
  if (kind !== undefined && loc !== undefined) {
44
- results.push({ certainty: linter_format_1.LintingResultCertainty.Certain, involvedId: node.info.id, loc, pkg, name, kind });
46
+ /* a name that needs backticks is left alone, the replacement spells it plainly */
47
+ const operator = kind === 'unnecessary-internal' ? '::' : ':::';
48
+ /* the access runs from the package to the end of the name, a call around it reaches further */
49
+ const [startLine, startColumn] = range_1.SourceLocation.getRange(loc);
50
+ const own = range_1.SourceRange.ownFromNode(node);
51
+ const access = own === undefined ? undefined : range_1.SourceLocation.from([startLine, startColumn, own[2], own[3]], node.info.file);
52
+ const quickFix = SyntacticName.test(name) && access !== undefined ? [{ type: 'replace', loc: access, description: `Use \`${pkg}${operator}${name}\``, replacement: `${pkg}${operator}${name}` }] : undefined;
53
+ results.push((0, objects_1.compactRecord)({ certainty: linter_format_1.LintingResultCertainty.Certain, involvedId: node.info.id, loc, pkg, name, kind, quickFix }));
45
54
  }
46
55
  }
47
56
  return { results, '.meta': { unresolved } };
@@ -58,8 +67,8 @@ exports.NAMESPACE_ACCESS = {
58
67
  info: {
59
68
  name: 'Namespace Access Validity',
60
69
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
61
- 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.',
62
- tags: [linter_tags_1.LintingRuleTag.Bug],
70
+ 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.',
71
+ tags: [linter_tags_1.LintingRuleTag.Bug, linter_tags_1.LintingRuleTag.QuickFix],
63
72
  defaultConfig: () => ({})
64
73
  }
65
74
  };
@@ -72,7 +72,7 @@ export declare const NAMING_CONVENTION: {
72
72
  readonly info: {
73
73
  readonly name: "Naming Convention";
74
74
  readonly certainty: LintingRuleCertainty.OverApproximative;
75
- readonly description: "Checks whether the symbols conform to a certain naming convention";
75
+ readonly description: "Finds symbols that do not follow the naming convention of the code.";
76
76
  readonly tags: readonly [LintingRuleTag.Style, LintingRuleTag.QuickFix];
77
77
  readonly activeByDefault: false;
78
78
  readonly defaultConfig: () => {
@@ -221,7 +221,7 @@ exports.NAMING_CONVENTION = {
221
221
  name: 'Naming Convention',
222
222
  // detects casing heuristically so correctness is not ensured using default config, but checks all identifiers in the code for naming convention match
223
223
  certainty: linter_format_1.LintingRuleCertainty.OverApproximative,
224
- description: 'Checks whether the symbols conform to a certain naming convention',
224
+ description: 'Finds symbols that do not follow the naming convention of the code.',
225
225
  tags: [linter_tags_1.LintingRuleTag.Style, linter_tags_1.LintingRuleTag.QuickFix],
226
226
  // heuristic and noisy on real package code, so only run when requested explicitly
227
227
  activeByDefault: false,
@@ -51,7 +51,7 @@ export declare const NETWORK_FUNCTIONS: {
51
51
  readonly name: "Network Functions";
52
52
  readonly tags: readonly [LintingRuleTag.Reproducibility, LintingRuleTag.Security, LintingRuleTag.Performance, LintingRuleTag.Smell];
53
53
  readonly certainty: LintingRuleCertainty.BestEffort;
54
- readonly description: "Marks network functions that execute network operations, such as downloading files or making HTTP requests.";
54
+ readonly description: "Finds functions that execute network operations, such as downloading files or making HTTP requests.";
55
55
  readonly defaultConfig: (ctx: import("../../project/context/flowr-analyzer-context").ReadOnlyFlowrAnalyzerContext) => {
56
56
  fns: NetworkFunction[];
57
57
  };
@@ -96,7 +96,7 @@ exports.NETWORK_FUNCTIONS = {
96
96
  tags: [linter_tags_1.LintingRuleTag.Reproducibility, linter_tags_1.LintingRuleTag.Security, linter_tags_1.LintingRuleTag.Performance, linter_tags_1.LintingRuleTag.Smell],
97
97
  // ensures all network functions found are actually network functions through its limited config, but doesn't find all network functions since the config is pre-crawled, and the DFG may be over-approximated
98
98
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
99
- description: 'Marks network functions that execute network operations, such as downloading files or making HTTP requests.',
99
+ description: 'Finds functions that execute network operations, such as downloading files or making HTTP requests.',
100
100
  defaultConfig: ctx => ({
101
101
  fns: ctx.env.deriveFromIndex(networkFunctions)
102
102
  })
@@ -29,7 +29,7 @@ export declare const NO_LEAKED_CREDENTIALS: {
29
29
  };
30
30
  readonly info: {
31
31
  readonly name: "No Leaked Credentials";
32
- 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).";
32
+ 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).";
33
33
  readonly tags: readonly [LintingRuleTag.Security, LintingRuleTag.Experimental, LintingRuleTag.Smell];
34
34
  readonly certainty: LintingRuleCertainty.BestEffort;
35
35
  readonly defaultConfig: () => {
@@ -156,7 +156,7 @@ exports.NO_LEAKED_CREDENTIALS = {
156
156
  },
157
157
  info: {
158
158
  name: 'No Leaked Credentials',
159
- 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).',
159
+ 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).',
160
160
  tags: [linter_tags_1.LintingRuleTag.Security, linter_tags_1.LintingRuleTag.Experimental, linter_tags_1.LintingRuleTag.Smell],
161
161
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
162
162
  defaultConfig: () => ({
@@ -28,8 +28,8 @@ export declare const PROBLEMATIC_INPUTS: {
28
28
  readonly full: (result: ProblematicInputsResult) => string;
29
29
  };
30
30
  readonly info: {
31
- readonly name: "Problematic inputs";
32
- 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.";
31
+ readonly name: "Problematic Inputs";
32
+ 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.";
33
33
  readonly tags: readonly [LintingRuleTag.Security, LintingRuleTag.Smell, LintingRuleTag.Readability, LintingRuleTag.Performance];
34
34
  readonly certainty: LintingRuleCertainty.BestEffort;
35
35
  readonly defaultConfig: (ctx: ReadOnlyFlowrAnalyzerContext) => {
@@ -136,8 +136,8 @@ exports.PROBLEMATIC_INPUTS = {
136
136
  }
137
137
  },
138
138
  info: {
139
- name: 'Problematic inputs',
140
- 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.',
139
+ name: 'Problematic Inputs',
140
+ 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.',
141
141
  tags: [linter_tags_1.LintingRuleTag.Security, linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Readability, linter_tags_1.LintingRuleTag.Performance],
142
142
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
143
143
  defaultConfig: ctx => ({
@@ -25,9 +25,9 @@ export declare const ROXYGEN_ARGS: {
25
25
  };
26
26
  readonly info: {
27
27
  readonly name: "Roxygen Arguments";
28
- readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Documentation, LintingRuleTag.Style];
28
+ readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Documentation];
29
29
  readonly certainty: LintingRuleCertainty.BestEffort;
30
- readonly description: "Checks whether a function has undocumented or overdocumented parameters";
30
+ readonly description: "Finds function parameters the roxygen documentation leaves out, and documented parameters the function does not have.";
31
31
  readonly defaultConfig: () => {};
32
32
  };
33
33
  };
@@ -60,9 +60,9 @@ exports.ROXYGEN_ARGS = {
60
60
  },
61
61
  info: {
62
62
  name: 'Roxygen Arguments',
63
- tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Documentation, linter_tags_1.LintingRuleTag.Style],
63
+ tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Documentation],
64
64
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
65
- description: 'Checks whether a function has undocumented or overdocumented parameters',
65
+ description: 'Finds function parameters the roxygen documentation leaves out, and documented parameters the function does not have.',
66
66
  defaultConfig: () => ({})
67
67
  }
68
68
  };
@@ -51,10 +51,10 @@ export declare const SEEDED_RANDOMNESS: {
51
51
  })[];
52
52
  randomnessConsumers: string[];
53
53
  };
54
- readonly tags: readonly [LintingRuleTag.Robustness, LintingRuleTag.Reproducibility];
54
+ readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Robustness, LintingRuleTag.Reproducibility];
55
55
  readonly certainty: LintingRuleCertainty.BestEffort;
56
56
  readonly name: "Seeded Randomness";
57
- 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`.";
57
+ 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`.";
58
58
  };
59
59
  readonly prettyPrint: {
60
60
  readonly query: (result: SeededRandomnessResult, _meta: SeededRandomnessMeta) => string;
@@ -179,11 +179,11 @@ exports.SEEDED_RANDOMNESS = {
179
179
  'permuted', 'permute', 'shuffle', 'shuffleSet', 'data_shuffle', 'sample_frac', 'sample_n',
180
180
  ],
181
181
  }),
182
- tags: [linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.Reproducibility],
182
+ tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.Reproducibility],
183
183
  // only finds proper randomness producers and consumers due to its config, but will not find all producers/consumers since not all existing deprecated functions will be in the config
184
184
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
185
185
  name: 'Seeded Randomness',
186
- 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`.'
186
+ 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`.'
187
187
  },
188
188
  prettyPrint: {
189
189
  [linter_format_1.LintingPrettyPrintContext.Query]: (result, _meta) => `Function \`${result.function}\` at ${range_1.SourceLocation.format(result.loc)}`,
@@ -21,8 +21,8 @@ export declare const SOFTWARE_HAS_LICENSE: {
21
21
  };
22
22
  readonly info: {
23
23
  readonly name: "Software Has License";
24
- readonly description: "Checks whether the software project provides a license (via a LICENSE file or the DESCRIPTION file License field).";
25
- readonly tags: readonly [LintingRuleTag.Documentation, LintingRuleTag.Usability];
24
+ readonly description: "Finds software projects without a license (a LICENSE file or the License field of the DESCRIPTION).";
25
+ readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Documentation, LintingRuleTag.Usability];
26
26
  readonly certainty: LintingRuleCertainty.BestEffort;
27
27
  readonly defaultConfig: () => {
28
28
  checkDescriptionFile: true;
@@ -35,8 +35,8 @@ exports.SOFTWARE_HAS_LICENSE = {
35
35
  },
36
36
  info: {
37
37
  name: 'Software Has License',
38
- description: 'Checks whether the software project provides a license (via a LICENSE file or the DESCRIPTION file License field).',
39
- tags: [linter_tags_1.LintingRuleTag.Documentation, linter_tags_1.LintingRuleTag.Usability],
38
+ description: 'Finds software projects without a license (a LICENSE file or the License field of the DESCRIPTION).',
39
+ tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Documentation, linter_tags_1.LintingRuleTag.Usability],
40
40
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
41
41
  defaultConfig: () => ({
42
42
  checkDescriptionFile: true
@@ -28,8 +28,8 @@ export declare const SOFTWARE_HAS_TESTS: {
28
28
  };
29
29
  readonly info: {
30
30
  readonly name: "Software Has Tests";
31
- readonly description: "Checks whether the software project has tests (test files in a test directory or test function calls in R code).";
32
- readonly tags: readonly [LintingRuleTag.Usability, LintingRuleTag.Reproducibility];
31
+ readonly description: "Finds software projects without tests (test files in a test directory or test function calls in R code).";
32
+ readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.Usability, LintingRuleTag.Reproducibility];
33
33
  readonly certainty: LintingRuleCertainty.BestEffort;
34
34
  readonly defaultConfig: () => {
35
35
  additionalTestFunctions: never[];
@@ -37,8 +37,8 @@ exports.SOFTWARE_HAS_TESTS = {
37
37
  },
38
38
  info: {
39
39
  name: 'Software Has Tests',
40
- description: 'Checks whether the software project has tests (test files in a test directory or test function calls in R code).',
41
- tags: [linter_tags_1.LintingRuleTag.Usability, linter_tags_1.LintingRuleTag.Reproducibility],
40
+ description: 'Finds software projects without tests (test files in a test directory or test function calls in R code).',
41
+ tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Usability, linter_tags_1.LintingRuleTag.Reproducibility],
42
42
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
43
43
  defaultConfig: () => ({
44
44
  additionalTestFunctions: []
@@ -20,10 +20,10 @@ export declare const STOP_WITH_CALL_ARG: {
20
20
  readonly full: (result: LintingResult) => string;
21
21
  };
22
22
  readonly info: {
23
- readonly name: "Stop without call.=False argument";
24
- readonly tags: readonly [LintingRuleTag.Smell];
23
+ readonly name: "Stop Without Call";
24
+ readonly tags: readonly [LintingRuleTag.Smell, LintingRuleTag.QuickFix];
25
25
  readonly certainty: LintingRuleCertainty.BestEffort;
26
- readonly description: "Checks whether stop calls without call. argument set to FALSE are used.";
26
+ readonly description: "Finds `stop()` calls that do not set `call.` to `FALSE`.";
27
27
  readonly defaultConfig: () => {};
28
28
  };
29
29
  };
@@ -15,6 +15,7 @@ const df_helper_1 = require("../../dataflow/graph/df-helper");
15
15
  const model_1 = require("../../r-bridge/lang-4.x/ast/model/model");
16
16
  const r_function_definition_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-definition");
17
17
  const r_function_call_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-call");
18
+ const r_logical_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-logical");
18
19
  const identifier_1 = require("../../dataflow/environments/identifier");
19
20
  const ConditionConstructors = new Set(['simpleCondition', 'simpleError', 'simpleWarning', 'simpleMessage', 'errorCondition', 'warningCondition']);
20
21
  /** whether the call builds a condition object, for which `stop` ignores `call.`: a constructor, or a class naming `condition` */
@@ -26,6 +27,21 @@ function isConditionObject(signaled, graph, data) {
26
27
  const classes = vertex_1.DfgVertex.isFunctionCall(vertex) ? (0, resolve_argument_1.getArgumentStringValue)(data.flowrConfig.solver.variables, graph, vertex, undefined, 'class', true, data.inspectContext()) : undefined;
27
28
  return classes?.values().some(c => c.has('condition')) ?? false;
28
29
  }
30
+ /** `call. = FALSE` added before the closing parenthesis, or a literal `call. = TRUE` turned into it */
31
+ function callFalseFix(call) {
32
+ const args = call.arguments.filter(a => a !== r_function_call_1.EmptyArgument);
33
+ const given = args.find(a => a.name !== undefined && identifier_1.Identifier.getName(a.name.content) === 'call.');
34
+ if (given !== undefined) {
35
+ const loc = range_1.SourceLocation.fromNode(given.value);
36
+ return loc !== undefined && r_logical_1.RLogical.is(given.value) ? [{ type: 'replace', loc, description: 'Set `call.` to `FALSE`', replacement: 'FALSE' }] : undefined;
37
+ }
38
+ const loc = range_1.SourceLocation.fromNode(call);
39
+ if (loc === undefined) {
40
+ return undefined;
41
+ }
42
+ const [, , endLine, endColumn] = range_1.SourceLocation.getRange(loc);
43
+ return [{ type: 'replace', loc: range_1.SourceLocation.from([endLine, endColumn, endLine, endColumn - 1], range_1.SourceLocation.getFile(loc)), description: 'Add `call. = FALSE`', replacement: args.length === 0 ? 'call. = FALSE' : ', call. = FALSE' }];
44
+ }
29
45
  exports.STOP_WITH_CALL_ARG = {
30
46
  createSearch: () => flowr_search_builder_1.Q.all().filter(vertex_1.VertexType.FunctionCall),
31
47
  processSearchResult: async (elements, _config, data) => {
@@ -68,7 +84,8 @@ exports.STOP_WITH_CALL_ARG = {
68
84
  .map(element => ({
69
85
  certainty: linter_format_1.LintingResultCertainty.Uncertain,
70
86
  involvedId: element.node.info.id,
71
- loc: range_1.SourceLocation.fromNode(element.node)
87
+ loc: range_1.SourceLocation.fromNode(element.node),
88
+ quickFix: callFalseFix(element.node)
72
89
  }))
73
90
  .filter(element => (0, assert_1.isNotUndefined)(element.loc)),
74
91
  '.meta': meta
@@ -79,10 +96,10 @@ exports.STOP_WITH_CALL_ARG = {
79
96
  [linter_format_1.LintingPrettyPrintContext.Full]: result => `\`stop()\` at ${range_1.SourceLocation.format(result.loc)} is called without \`call. = FALSE\`; the originating call is then appended to the error message, which is usually not intended - pass \`call. = FALSE\` to suppress it`,
80
97
  },
81
98
  info: {
82
- name: 'Stop without call.=False argument',
83
- tags: [linter_tags_1.LintingRuleTag.Smell],
99
+ name: 'Stop Without Call',
100
+ tags: [linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.QuickFix],
84
101
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
85
- description: 'Checks whether stop calls without call. argument set to FALSE are used.',
102
+ description: 'Finds `stop()` calls that do not set `call.` to `FALSE`.',
86
103
  defaultConfig: () => ({})
87
104
  }
88
105
  };
@@ -57,7 +57,7 @@ export declare const SYNTACTICALLY_VALID: {
57
57
  };
58
58
  readonly info: {
59
59
  readonly name: "Syntactically Valid";
60
- 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.";
60
+ readonly description: "Finds syntax errors with the configured (error-tolerant) parser. Offers extensible quick fixes to repair them.";
61
61
  readonly tags: readonly [LintingRuleTag.Bug, LintingRuleTag.Robustness, LintingRuleTag.QuickFix];
62
62
  readonly certainty: LintingRuleCertainty.BestEffort;
63
63
  readonly activeByDefault: false;
@@ -259,7 +259,7 @@ exports.SYNTACTICALLY_VALID = {
259
259
  },
260
260
  info: {
261
261
  name: 'Syntactically Valid',
262
- description: 'Checks whether the code is free of syntax errors, using the configured (error-tolerant) parser, and offers extensible quick-fixes to repair them.',
262
+ description: 'Finds syntax errors with the configured (error-tolerant) parser. Offers extensible quick fixes to repair them.',
263
263
  tags: [linter_tags_1.LintingRuleTag.Bug, linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.QuickFix],
264
264
  // tree-sitter reports real syntax errors precisely, but a strict parse may collapse a region into fewer findings
265
265
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
@@ -33,9 +33,9 @@ export declare const UNCLOSED_CONNECTION: {
33
33
  };
34
34
  readonly info: {
35
35
  readonly name: "Unclosed Connection";
36
- readonly tags: readonly [LintingRuleTag.Robustness, LintingRuleTag.Smell];
36
+ readonly tags: readonly [LintingRuleTag.Robustness, LintingRuleTag.Smell, LintingRuleTag.QuickFix];
37
37
  readonly certainty: LintingRuleCertainty.BestEffort;
38
- readonly description: "Flags connections that are opened but not closed on every path opening them.";
38
+ readonly description: "Finds connections that are opened but not closed on every path opening them.";
39
39
  readonly defaultConfig: () => {
40
40
  openFns: never[];
41
41
  closeFns: never[];
@@ -204,10 +204,10 @@ exports.UNCLOSED_CONNECTION = {
204
204
  },
205
205
  info: {
206
206
  name: 'Unclosed Connection',
207
- tags: [linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.Smell],
207
+ tags: [linter_tags_1.LintingRuleTag.Robustness, linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.QuickFix],
208
208
  /* a connection handed to code flowR cannot resolve, as in `lapply(cons, close)`, is reported although it is closed */
209
209
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
210
- description: 'Flags connections that are opened but not closed on every path opening them.',
210
+ description: 'Finds connections that are opened but not closed on every path opening them.',
211
211
  defaultConfig: () => ({
212
212
  openFns: [],
213
213
  closeFns: []
@@ -69,7 +69,7 @@ export declare const UNDEFINED_SYMBOL: {
69
69
  readonly info: {
70
70
  readonly name: "Undefined Symbol";
71
71
  readonly certainty: LintingRuleCertainty.OverApproximative;
72
- readonly description: "Flags functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.";
72
+ readonly description: "Finds functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.";
73
73
  readonly tags: readonly [LintingRuleTag.Bug, LintingRuleTag.Experimental];
74
74
  readonly defaultConfig: () => {
75
75
  checkFunctions: true;
@@ -209,7 +209,7 @@ exports.UNDEFINED_SYMBOL = {
209
209
  info: {
210
210
  name: 'Undefined Symbol',
211
211
  certainty: linter_format_1.LintingRuleCertainty.OverApproximative,
212
- description: 'Flags functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.',
212
+ description: 'Finds functions and variables that are neither defined locally, a base R builtin, nor exported by a loaded package.',
213
213
  tags: [linter_tags_1.LintingRuleTag.Bug, linter_tags_1.LintingRuleTag.Experimental],
214
214
  defaultConfig: () => ({
215
215
  checkFunctions: true,
@@ -115,7 +115,7 @@ export declare const UNESCAPED_ARGUMENTS: {
115
115
  readonly name: "Unescaped Arguments";
116
116
  readonly tags: readonly [LintingRuleTag.Security, LintingRuleTag.Smell, LintingRuleTag.Shiny, LintingRuleTag.QuickFix];
117
117
  readonly certainty: LintingRuleCertainty.BestEffort;
118
- readonly description: "Detects arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.";
118
+ readonly description: "Finds arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.";
119
119
  readonly defaultConfig: () => {
120
120
  categories: {
121
121
  system: {
@@ -329,7 +329,7 @@ exports.UNESCAPED_ARGUMENTS = {
329
329
  name: 'Unescaped Arguments',
330
330
  tags: [linter_tags_1.LintingRuleTag.Security, linter_tags_1.LintingRuleTag.Smell, linter_tags_1.LintingRuleTag.Shiny, linter_tags_1.LintingRuleTag.QuickFix],
331
331
  certainty: linter_format_1.LintingRuleCertainty.BestEffort,
332
- description: 'Detects arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.',
332
+ description: 'Finds arguments of critical system, evaluation, database, and HTML/JavaScript calls that are not properly escaped.',
333
333
  defaultConfig: () => ({
334
334
  categories: {
335
335
  [UnescapedArgumentCategory.System]: {
@@ -38,7 +38,7 @@ export declare const UNUSED_DEFINITION: {
38
38
  };
39
39
  readonly info: {
40
40
  readonly name: "Unused Definitions";
41
- readonly description: "Checks for unused definitions.";
41
+ readonly description: "Finds definitions that are never used.";
42
42
  readonly tags: readonly [LintingRuleTag.Readability, LintingRuleTag.Smell, LintingRuleTag.QuickFix];
43
43
  readonly certainty: LintingRuleCertainty.BestEffort;
44
44
  readonly defaultConfig: () => {