Skip to content

False positive for yoda_test_linter finding STR_CONST in $ expressions #1067

@MichaelChirico

Description

@MichaelChirico

A pattern seen several times in IOHanalyzer:

https://github.com/IOHprofiler/IOHanalyzer/blob/93fdf6400f64c63c26c956086469d7a27c31ab05/tests/testthat/test_DataSetList.R#L42

expect_equal(get_FV_sample(dsl[1],12)$"run.5",13)

Here, the STR_CONST for "run.5" is at the same parse level that we check for constants in the first expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    false-positivecode that shouldn't lint, but does

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions