You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single line functions are flagged as having an erroneous newline at the start and end as of revive 1.2.2.
main.go:
package main
funcmain() { println("foo") }
config.toml:
[rule.empty-lines]
@m4x3r:~/foo
$ go install github.com/mgechev/[email protected]
[19:54:35]
@m4x3r:~/foo
$ revive -config config.toml ./...
[19:54:39]
@m4x3r:~/foo
$ go install github.com/mgechev/[email protected]
[19:54:41]
@m4x3r:~/foo
$ revive -config config.toml ./...
main.go:3:13: extra empty line at the start of a block
main.go:3:13: extra empty line at the end of a block
[19:54:43]
@m4x3r:~/foo
$ go install github.com/mgechev/[email protected]
[19:54:46]
@m4x3r:~/foo
$ revive -config config.toml ./...
main.go:3:13: extra empty line at the start of a block
main.go:3:13: extra empty line at the end of a block
The text was updated successfully, but these errors were encountered:
Single line functions are flagged as having an erroneous newline at the start and end as of revive 1.2.2.
main.go:
config.toml:
The text was updated successfully, but these errors were encountered: