Comments (3)
I've made the solution somewhat generic, so other //foo:bar
directives should be left alone too.
from gofumpt.
Thanks - there were more directives than I thought. It doesn't help that there isn't really one standard syntax for them. I'll make the rule less agressive, but probably tomorrow as I need to sleep.
from gofumpt.
:-(
from gofumpt.
Related Issues (20)
- whitespace around multiplication operator HOT 1
- gofumpt lint conflict with go-swagger comments HOT 2
- CLI argument to ignore paths HOT 13
- Support running controversial/experimental rules individually HOT 1
- How do I use "-extra" in VS Code HOT 1
- ldflags failed for gofumpt 0.4.0 release HOT 4
- gofumpt re-formats tabs to spaces (was: New release built with go 1.19?) HOT 3
- Groups with comments below single var declaration are unexpectedly formatted HOT 1
- Provide pre-commit hook configuration HOT 3
- Does gofumpt ignore folders like testdata? HOT 2
- Multiline blocks allow newline before closing brace HOT 1
- Enforce some consistency with newlines at the start and end of parameter lists HOT 3
- Unnecessary newline in arguments when putting type parameters on a separate line
- Document WHEN generated code is touched and how to mitigate it HOT 2
- gofumpt badge HOT 1
- Fails to install with Go 1.20.3 HOT 1
- Panic on formatting of multiple files
- Don't group variables when //go:embed is present. HOT 2
- No empty lines before a simple error check not working HOT 2
- gofumpt conflicts with goimports-reviser based import formatting. HOT 1
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.