Skip to content

False positive for selector when using YAML flow style #2339

@MarDiehl

Description

@MarDiehl

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I get the warning

For recipe/meta.yaml:

    ❌ Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [20]

when using YAML flow style.

The change I did was from

force_use_keys:
  - mpi
force_use_keys: [mpi]

i.e. from YAML block style to flow style.

Installed packages

when building online during a pull request

Environment info

when building online during a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions