Skip to content

Commit eab7421

Browse files
committed
fix golangci-lint
Signed-off-by: Ritish Srivastava <121374890+Ritish134@users.noreply.github.com>
1 parent d1f27b1 commit eab7421

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

pkg/programkind/programkind.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ func makeFileType(path string, ext string, mime string) *FileType {
229229
}
230230

231231
// File detects what kind of program this file might be.
232-
//
233-
//nolint:cyclop // ignore complexity of 38
234232
func File(path string) (*FileType, error) {
235233
// Follow symlinks and return cleanly if the target does not exist
236234
_, err := filepath.EvalSymlinks(path)

pkg/report/report.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ func fileMatchesRule(meta []yarax.Metadata, ext string) bool {
377377
return true
378378
}
379379

380-
//nolint:cyclop // ignore complexity of 64
381380
func Generate(ctx context.Context, path string, mrs *yarax.ScanResults, c malcontent.Config, expath string, _ *clog.Logger, fc []byte, kind *programkind.FileType) (*malcontent.FileReport, error) {
382381
if ctx.Err() != nil {
383382
return &malcontent.FileReport{}, ctx.Err()

0 commit comments

Comments
 (0)