1
1
Fork
You've already forked ecformat
0

Support multiple target files #32

Manually merged
BaumiCoder merged 6 commits from feature/31-support-multiple-target-files into main 2026年02月19日 16:03:12 +01:00

Resolves #31

User perspective

Both commands, check and fix, now support to process multiple target files and folder. (For all given folders, recursively all files are processed. If you give a file directly and an (indirect) parent folder of it, the file is always only processed ones.)

Developer perspective

To extend also the lib crate interface, the CommandArgs struct get a second new function to create an instance with multiple targets. Furthermore, the renamed targets getter of the struct is now only visible inside the crate as there is no need to use it from the outside. (Assumption: Currently not used yet from the outside.)

Resolves #31 ### User perspective Both commands, `check` and `fix`, now support to process multiple target files and folder. (For all given folders, recursively all files are processed. If you give a file directly and an (indirect) parent folder of it, the file is always only processed ones.) ### Developer perspective To extend also the lib crate interface, the `CommandArgs` struct get a second `new` function to create an instance with multiple targets. Furthermore, the renamed `targets` getter of the struct is now only visible inside the crate as there is no need to use it from the outside. (Assumption: Currently not used yet from the outside.)
Adjust CommandArgs getter
All checks were successful
/ changes (pull_request) Successful in 53s
/ lint_reuse (pull_request) Successful in 1m11s
/ lint_codespell (pull_request) Successful in 1m5s
/ lint_ecformat (pull_request) Successful in 8m37s
/ test (pull_request) Successful in 58s
/ lint_cargo_deny (pull_request) Has been skipped
/ lint_clippy (pull_request) Has been skipped
/ lint_rustfmt (pull_request) Has been skipped
/ lint_taplo (pull_request) Has been skipped
/ lint_yamllint (pull_request) Has been skipped
/ lint_cargo_udeps (pull_request) Has been skipped
430c2aae30
Also now in plural and should not be used from outside the crate.
BaumiCoder manually merged commit 4f52763627 into main 2026年02月19日 16:03:12 +01:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
EditorConfig
0.17.2
Issues to support version 0.17.2 of the EditorConfig specification
Kind
Bug
Something is not working
Kind
Chore
Some tasks maintainig tasks
Kind
Documentation
Documentation changes
Kind
Enhancement
Improve existing functionality
Kind
Feature
New functionality
Kind
Testing
Issue or pull request related to testing
Packaging
About packaging the project for some platform
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
WIP
Work in progress (Assignee is working on this issue)
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BaumiCoder/ecformat!32
Reference in a new issue
BaumiCoder/ecformat
No description provided.
Delete branch "feature/31-support-multiple-target-files"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?