Staticcheck 2019.2.2 contains the following user-visible fixes:
- S1008 now skips if/else statements where both branches return the same value.
- SA4006 now considers a value read when a switch statement reads it, even if the switch statement has no branches.
- 2019.2 introduced a bug that made it impossible to enable non-default checks via configuration files. This is now possible again.
- 2019.2 introduced a bug that made the
-tags
command line argument ineffective, making it impossible to pass in build tags. This is now possible again. - From this release onward, we will use pseudo versions of the form
v0.0.1-<year>.<minor>
instead ofv0.0.0-<year>.<minor>
. This fixes an issue wherego get
would prefer an older commit over a newer released version due to the way versions sort.