Skip to content

[Linting Rule] Dataframe Access Validation

github-actions[bot] edited this page Nov 8, 2026 · 1 revision

Generated from 'wiki-linter.ts' on 2026-10-27, 10:46:55 UTC (v2.16.6), do not edit directly.

Dataframe Access Validation [overview]

bug reproducibility usability

This rule is a best-effort rule.

Finds accesses to columns and rows a data frame does not have.
This linting rule is implemented in src/linter/rules/dataframe-access-validation.ts.

Configuration

Linting rules can be configured by passing a configuration object to the linter query as shown in the example below. The dataframe-access-validation rule accepts the following configuration options:

  • readLoadedData
    Whether data frame shapes should be extracted from loaded external data files, such as CSV files (defaults to the option in the flowR config if undefined)

Examples

df <- data.frame(id = 1:5, name = 6:10)
df[6, "value"]

The linting query can be used to run this rule on the above example:

[ { "type": "linter",   "rules": [ { "name": "dataframe-access-validation",     "config": {} } ] } ]

Results (prettified and summarized):

Query: linter (4 ms)
   ╰ Dataframe Access Validation (dataframe-access-validation):
       ╰ certain:
           ╰ Access of row 6 of df at 3.1-14
           ╰ Access of column "value" of df at 3.1-14

More examples are the test cases in test/functionality/linter/lint-dataframe-access-validation.test.ts.

Clone this wiki locally

⌂ 换网址