Releases: bombsimon/wsl
Releases · bombsimon/wsl
v1.2.4
- Add option to allow whitespace in the end of case blocks. Default: false. Example:
switch {
case 1:
fmt.Println("one")
case 2:
fmt.Println("two")
case 3:
fmt.Println("three")
}
- Add option to allow cuddle
var
declarations. Default: false. Example:
var foo bool
var err error
- Support best practices for closing body after HTTP request. (#31). Always true. Example:
resp, err := client.Do(req)
if err != nil {
return err
}
defer resp.Body.Close()
v1.2.3
v1.2.2
v1.2.1
v1.2.0
- Allow multiline assignments to be cuddled (default, may still be turned off)
err := SomeFunc(
"spanning over",
"multiple lines",
)
if err != nil {
panic("these belong together")
}
If AllowMultiLineAssignmentCuddled
(-allow-multi-line-assignment
) is set to false
, this will yield an error.
v1.1.0
- Functions on one line should not be considered
- Fix better token.Pos() for whitespaces
- Fix variable names
- Add stringer
- Support configuration (not yet exposed properly in cmd)
- Support to whitelist any RHS
- Support to whitelist any calls one line above
- Support to cuddle any assignment and call if any of the RHS/LHS is used
Version 1.0.1
- Fix bug for leading comments