File tree Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -92,25 +92,24 @@ impl GoPackage {
92
92
} ;
93
93
94
94
// We don't support files with benchmarks that also contains github.com/frankban/quicktest
95
- // if file
96
- // .imports
97
- // .iter()
98
- // .any(|import| import.path.value.contains("github.com/frankban/quicktest"))
99
- // {
100
- // warn!("Skipping file with quicktest import: {file_path:?}");
101
- // continue;
102
- // }
103
-
104
- // // We don't support testify yet
105
- // // FIXME: We shouldn't skip packages where benchmarks and tests are separated -> opentelemetry-go
106
- // if file
107
- // .imports
108
- // .iter()
109
- // .any(|import| import.path.value.contains("github.com/stretchr/testify"))
110
- // {
111
- // warn!("Skipping file with testify import: {file_path:?}");
112
- // continue;
113
- // }
95
+ if file
96
+ . imports
97
+ . iter ( )
98
+ . any ( |import| import. path . value . contains ( "github.com/frankban/quicktest" ) )
99
+ {
100
+ warn ! ( "Skipping file with quicktest import: {file_path:?}" ) ;
101
+ continue ;
102
+ }
103
+
104
+ // We don't support testify yet
105
+ if file
106
+ . imports
107
+ . iter ( )
108
+ . any ( |import| import. path . value . contains ( "github.com/stretchr/testify" ) )
109
+ {
110
+ warn ! ( "Skipping file with testify import: {file_path:?}" ) ;
111
+ continue ;
112
+ }
114
113
115
114
// We can't import packages that are declared as `main`
116
115
if file. pkg_name . name == "main" {
You can’t perform that action at this time.
0 commit comments