Can --reorder-code can be put as a flag in the .editorconfig ?

Open
#348 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
tooling

Research direction

Start by examining the formatter's configuration handling and how the --reorder-code option is parsed. Then inspect any existing .editorconfig support and related tests. Done means the option can be set with gdscript_formatter_reorder_code in .editorconfig and works without passing the command-line flag.

Written by the indexing model from the issue text.

Description

I'd like to be able to run gdscript-formatter without having it to pass options everytime I use the tool. This allow to only write settings once (e.g. in .editorconfig) without worrying about the option we use and to avoid duplication.

This could be nice to have if possible :

root = true

[*]
charset = utf-8

[*.gd]
max_line_length = 120
gdscript_formatter_reorder_code = true

[addons/**/*.gd]
gdscript_formatter_exclude = true
Dominant language
Rust
Stars
458
Forks
40
Avg merge
1d 15h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GDQuest/GDScript-formatter

All issues in GDQuest/GDScript-formatter

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.