Skip to content

Releases: bombsimon/wsl

v1.2.3

10 Oct 13:19
Compare
Choose a tag to compare
  • Fix bug creating false-positives for multiline case statements.

v1.2.2

09 Oct 11:58
Compare
Choose a tag to compare

Fix false-positives for slice- and index xpressions.

  • Fix bug where you couldn't cuddle SliceExpr (e.g. aSlice[start:end])
  • Fix bug where you couldn't cuddle IndexExpr (e.g. aMap[key] or aSlice[idx])

v1.2.1

07 Oct 16:51
e183f83
Compare
Choose a tag to compare

Changed name for Configuration (and flags)

  • CheckAppend -> StrictAppend
  • AllowAssignAndCallsCuddle -> AllowAssignAndCallCuddle
  • AllowMultiLineAssignmentCuddled -> AllowMultiLineAssignCuddle

v1.2.0

07 Oct 12:28
Compare
Choose a tag to compare
  • 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

06 Oct 20:14
9dc3d97
Compare
Choose a tag to compare
  • 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

04 Oct 15:02
32d6ac1
Compare
Choose a tag to compare
  • Fix bug for leading comments

v1.0.0

02 Oct 13:50
Compare
Choose a tag to compare

First release.