Comments (3)
I don't think it's possible to enforce cuddling every time something is related, the main purpose is to get people to add newlines. However since it's idiomatic to cuddle the error checking it was implemented in #65 (after #66 was created).
The feature is not merged to golangci-lint
but if you build your own version or use wsl
with --enforce-err-cuddling
you can enforce what you're asking about regarding error checking.
from wsl.
That's true. I understand. I should use wsl on master.
from wsl.
For now that's the best idea! I (or someone) will update the version in golangci-lint
with a new release in the future. I've been lagging behind because I really want to find the time to implement a fixer before the next merge to golangci-lint
. Sadly it seems like it will take longer than I thought so I might need to update golangci-lint
anyway.
To build it locally is the only option right now I'm afraid.
from wsl.
Related Issues (20)
- go routine support wait group on previous line HOT 6
- Treat short declarations as declarations, not assignments (enhancement) HOT 11
- AllowSeparatedLeadingComment doesn't allow one comment + WS before first statement HOT 2
- False-negative cuddled assignment line above HOT 3
- Require new lines after multiline function signature HOT 1
- Drop overlapping support for v4 HOT 4
- allow go statements invoke inline function HOT 4
- Read closing bracket(s) as empty lines HOT 4
- [Docs] `force-err-cuddling` is referenced as `enforce-err-cuddling` in the documentation HOT 2
- Comment in default block should not be seen as trailing comment HOT 1
- Incorrect check of assignment usage in loop and if statements HOT 1
- `++`/`--` should be treated as an assignment HOT 1
- Group `DeclStmt` instead of splitting with empty lines
- Error installing: does not contain packages matching github.com/bombsimon/wsl/v4/cmd/... HOT 5
- `else`/`else if` blocks are not processed
- Install instructions don't work (for me) HOT 1
- `--fix` ? HOT 2
- Label at the end of a block is not a whitespace (nor comment) HOT 7
- Consider `i++` as an assignment used in the iteration HOT 5
- Passed literal anonymous function to function is not checked. HOT 2
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 wsl.