diff --git a/internal/golangorgx/staticcheck.conf b/internal/golangorgx/staticcheck.conf new file mode 100644 index 00000000000..4eab0d922f5 --- /dev/null +++ b/internal/golangorgx/staticcheck.conf @@ -0,0 +1,3 @@ +# ./internal/golangorgx/... is vendored from intenral golang.org/x/... code +# so we don't maintain nor lint that code, at least not for now. +checks = ["-all"] diff --git a/staticcheck.conf b/staticcheck.conf new file mode 100644 index 00000000000..77dd1bf4419 --- /dev/null +++ b/staticcheck.conf @@ -0,0 +1,13 @@ +# Run the default check list, minus some that don't pass just yet. +# TODO: fix most of the issues below and re-enable their checks. +checks = [ + "inherit", + "-SA1019", # use of deprecated APIs + "-SA4000", # identical expressions in && or || logic + "-SA4004", # loop broken unconditionally + "-SA4006", # value never used + "-S1008", # simplify if/else to bool expression + "-S1011", # simplify loop with append + "-ST1006", # non-generic receiver names + "-U1000", # unused code +]