File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,25 +92,24 @@ impl GoPackage {
9292 } ;
9393
9494 // 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+ }
114113
115114 // We can't import packages that are declared as `main`
116115 if file. pkg_name . name == "main" {
You can’t perform that action at this time.
0 commit comments