Skip to content

[feature request] Add --config argument for finding .editorconfig #318

Description

@Taffer

I've written a Sublime Text plugin to use GDScript-formatter as a linter (I'll submit a PR for the README as soon as it's ready). When run this way, 0.24.0 can't find your project's .editorconfig.

This feature request is to add a --config argument so you can specify the location of a .editorconfig file as a convenience so you don't have to duplicate its settings in Sublime Text's config.

Alternatively, gdscript-formatter lint could be made to 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions