1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-12 10:04:29 +02:00
opentelemetry-go/metric
Tyler Yahn 1f5b159161
Use already enabled revive linter and add depguard (#2883)
* Refactor golangci-lint conf

Order settings alphabetically.

* Add revive settings to golangci conf

* Check blank imports

* Check bool-literal-in-expr

* Check constant-logical-expr

* Check context-as-argument

* Check context-key-type

* Check deep-exit

* Check defer

* Check dot-imports

* Check duplicated-imports

* Check early-return

* Check empty-block

* Check empty-lines

* Check error-naming

* Check error-return

* Check error-strings

* Check errorf

* Stop ignoring context first arg in tests

* Check exported comments

* Check flag-parameter

* Check identical branches

* Check if-return

* Check increment-decrement

* Check indent-error-flow

* Check deny list of go imports

* Check import shadowing

* Check package comments

* Check range

* Check range val in closure

* Check range val address

* Check redefines builtin id

* Check string-format

* Check struct tag

* Check superfluous else

* Check time equal

* Check var naming

* Check var declaration

* Check unconditional recursion

* Check unexported return

* Check unhandled errors

* Check unnecessary stmt

* Check unnecessary break

* Check waitgroup by value

* Exclude deep-exit check in example*_test.go files
2022-05-19 15:15:07 -05:00
..
global Add godot linter to golangci (#2845) 2022-04-25 13:22:49 -07:00
instrument Use already enabled revive linter and add depguard (#2883) 2022-05-19 15:15:07 -05:00
internal/global Use already enabled revive linter and add depguard (#2883) 2022-05-19 15:15:07 -05:00
unit Use already enabled revive linter and add depguard (#2883) 2022-05-19 15:15:07 -05:00
config.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
doc.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
example_test.go Use already enabled revive linter and add depguard (#2883) 2022-05-19 15:15:07 -05:00
go.mod Integrate go-build-tools crosslink (#2886) 2022-05-06 07:40:59 -07:00
go.sum Bump github.com/google/go-cmp from 0.5.7 to 0.5.8 (#2875) 2022-05-02 08:19:09 -07:00
meter.go [API EPIC 4/4] Fix tests and examples (#2587) 2022-03-02 09:50:29 -06:00
noop_test.go Move metric no-op implementation to metric package (#2866) 2022-04-28 12:52:10 -07:00
noop.go Move metric no-op implementation to metric package (#2866) 2022-04-28 12:52:10 -07:00