trivy icon indicating copy to clipboard operation
trivy copied to clipboard

ci(deps): enable and fix whitespace linter

Open mmorel-35 opened this issue 1 year ago • 3 comments

Description

enable and fix whitespace linter

mmorel-35 avatar May 19 '24 08:05 mmorel-35

Some people prefer having a whitespace at the beginning of functions.

knqyf263 avatar May 20 '24 03:05 knqyf263

I don't see any option for that on whitespace (https://golangci-lint.run/usage/linters/#whitespace) Would gofmt or gofumpt be able to ensure that ?

mmorel-35 avatar May 20 '24 05:05 mmorel-35

This option seems to make sense to me. In other cases, whitespace is not necessary.

    # Enforces newlines (or comments) after every multi-line function signature.
    # Default: false
    multi-func: true

knqyf263 avatar May 20 '24 07:05 knqyf263