Comments (4)
@josharian could you expand a bit on "short"? For example, case lists that fit in a single line of less than 40 or 60 characters?
Also, do you know of any other cases where gofmt collapses many lines into one? I can't think of one off the top of my head.
from gofumpt.
could you expand a bit on "short"?
What does "long" mean in #2?
gofumpt is still an experimental tool. I say we pick something, conservative if you prefer, and then iterate on it when we find false negatives and/or false positives.
Also, do you know of any other cases where gofmt collapses many lines into one?
Nope.
from gofumpt.
I say we pick something, conservative if you prefer, and then iterate on it when we find false negatives and/or false positives.
Agreed; that's been my approach so far in #2. I was only asking in case you had a better idea in mind :)
from gofumpt.
yay, thanks!
from gofumpt.
Related Issues (20)
- different output for stdin vs passing in filename HOT 1
- Feature: Handling of closing parenthesis on function calls HOT 2
- make breaking long lines manually easier by reading off of trailing commas
- Tracking issue: go release tag fails semver version check HOT 2
- Members of struct after Pass-through type inside struct's formatting is ignored HOT 2
- install as a CLI HOT 2
- Remove empty lines in if and for similar to functions HOT 13
- Proposal: Clothe naked returns HOT 10
- panic while handling some //line directives HOT 2
- Breaks import comment HOT 1
- feature: Enforce line breaks between multiline function calls with func() argument HOT 1
- add simplifications for Go 1.22 HOT 1
- panic: invalid semver string: "v1.22rc2" HOT 1
- Making every added formatting rule Optional HOT 3
- missing binary release at latest version-v0.6.0 HOT 1
- Single import should not be grouped with parentheses
- Generated file not ignored HOT 2
- prevent indentation confusion
- Gofumpt removing newlines before comments HOT 7
- gofumpt is very slow when `go` is behind an asdf shim HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gofumpt.