bazel-contrib / bazel-contrib/buildtools
Buildifier should reflow single-item lists
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 471
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 13
Description
Right now buildifier leaves single-item lists alone. That is, if it sees something like:
```
srcs = [
"foo",
],
```
or like:
```
srcs = ["foo"],
```
it will leave them both as-is. But I would like to force it to always use one or the other for consistency (in my case, I would like to force single-item lists onto one line). Is this already possible and I just can't figure out how?
Thanks!
Contributor guide
Research direction
Start by checking buildifier's existing formatting options and how it handles the two single-item list forms shown in the issue. Determine whether a setting can consistently select the one-line form, and verify that the chosen behavior is covered for both examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100