Skip to content

Releases: bombsimon/wsl

v3.1.0

17 Apr 08:40
Compare
Choose a tag to compare
  • Only enforce err cuddling if the statement above was an assignment (#78)

v3.0.0

04 Mar 20:43
320b4e5
Compare
Choose a tag to compare

Change name of public accessible configuration fields.

v2.2.0

04 Mar 09:23
Compare
Choose a tag to compare

Add flag to support leading comments separated by newline. (#73)

v2.1.0

12 Feb 18:51
32d188c
Compare
Choose a tag to compare
  • Add support to enforce cuddle error check

v2.0.0

14 Nov 10:38
2d130b7
Compare
Choose a tag to compare
  • Removed field AllowCaseTrailingWhitespace - By default we always allow trailing comments in case blocks
  • Added CaseForceTrailingWhitespaceLimit - Support to enforce adding a whitespace at the end of case blocks

v1.2.8

14 Nov 08:08
db4ec6c
Compare
Choose a tag to compare

Addresses the issue in #60 due to me failing following semver properly and making breaking changes. This (and v1.2.7) should be seen as bad releases and properly bumped releases will be available soon.

Please use the existing issue for related discussions.

v1.2.7

10 Nov 13:36
Compare
Choose a tag to compare
  • Always support trailing comments in case blocks
  • Support to mix trailing newlines in case blocks
  • Support to configure a limit for when to force trailing newlines in case blocks

v1.2.6

06 Nov 07:50
Compare
Choose a tag to compare
  • Support for increase or decrease statements as regular statements (++ and --) (#57)
  • Better support to find all kind of blocks (#52)

v1.2.5

14 Oct 15:53
Compare
Choose a tag to compare
  • Allow trailing comments/whitespaces in Example-funcs (#38)

v1.2.4

13 Oct 12:06
Compare
Choose a tag to compare
  • 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()