-
Notifications
You must be signed in to change notification settings - Fork 6
pkg/analysis/importalias: add tests #8
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8 +/- ##
=========================================
+ Coverage 0 83.95% +83.95%
=========================================
Files 0 1 +1
Lines 0 81 +81
=========================================
+ Hits 0 68 +68
- Misses 0 8 +8
- Partials 0 5 +5
Continue to review full report at Codecov.
|
package a | ||
|
||
import ( | ||
// envoy_api_v2_auth "github.com/envoyproxy/go-control-plane/envoy/api/v2/auth" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The readme suggests that is a valid import but it doesn't work.
https://github.com/projectcontour/lint/blob/main/README.md#linters
Signed-off-by: Fernandez Ludovic <[email protected]>
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" // want `alias "v1" uses words that are not in path "io/apimachinery/pkg/apis/meta/v1"` | ||
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" // want `version "v1" not specified in alias "meta" for import path "k8s/io/apimachinery/pkg/apis/meta/v1"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the suggestions can produce some duplicates
Because tests are good 😸