mirror of
https://github.com/securego/gosec.git
synced 2025-11-25 22:22:17 +02:00
Assert that sample code compiles
This commit is contained in:
committed by
Cosmin Cojocar
parent
bcfb27955e
commit
e100f6b862
@@ -39,6 +39,7 @@ var _ = Describe("gosec rules", func() {
|
||||
}
|
||||
err := pkg.Build()
|
||||
Expect(err).ShouldNot(HaveOccurred())
|
||||
Expect(pkg.PrintErrors()).Should(BeZero())
|
||||
err = analyzer.Process(buildTags, pkg.Path)
|
||||
Expect(err).ShouldNot(HaveOccurred())
|
||||
issues, _, _ := analyzer.Report()
|
||||
|
||||
Reference in New Issue
Block a user