Skip to content

[bug] "lint" mode doesn't work with stdin #318

Description

@Taffer

[Modified into a bug report from the previous feature request; I don't think we actually need a --config argument to specify the location of a .editorconfig.]

gdscript-formatter lint doesn't work in stdin mode; I couldn't tell if this was intentional or not:

# Guessed from the docs/--help output:

$ cat dice.gd | gdscript-formatter lint
Error: No GDScript files found in the arguments provided. Please provide at least one .gd file or directory containing .gd files.

# Another CLI convention:

$ cat dice.gd | gdscript-formatter lint -
Error: No GDScript files found in the arguments provided. Please provide at least one .gd file or directory containing .gd files.

Maybe a --stdin argument to force this? I couldn't tell from the code, I can't Rust yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions