wsl icon indicating copy to clipboard operation
wsl copied to clipboard

␊ Whitespace Linter - Forces you to use empty lines!

Results 20 wsl issues
Sort by recently updated
recently updated
newest added

Hello! For example, I have a huge project with thousands lines of source and now I'd like to automate application of the strict spacing rules provided by wsl, instead of...

This is a tracking pull request for the implementation of a fixer. This PR aims to solve #4 - [x] Add newline when linter says to cuddled - [x] Add...

I enabled this tool for my pipeline but now I'm seeing more spaces than needed like: ```go a := 1 if a == 1 { ... } ```

Support to create a fixed version like `go fmt` to resolve the reported issues.

Right now you have to use the variable, type or field in the first statement in a block if you want to use it like this: ```go variable := "assigned"...

enhancement
configurable

Hi! Thanks for the linter, it's really great. One thing that can be improved imo is cuddling of deferred statements. It's not uncommon to do something like this: ```golang func...

Currently the fixer does not do any rewrite other than adding or removing empty lines. Usually this is the only thing we can do but there are cases where we...

enhancement

This is a tracking PR for #121 to improve the fixer regarding `DeclStmt`

Support a flag to allow reading from stdin then applying fixes and output to sysout. Sometimes I'm not concerned about the messages from `wsl` and just want it to pass...