~samwhited/xmpp

e83c5c0fef88717afaf1583872fa55bdb5645f83 — Sam Whited 1 year, 7 months ago b86d742
.builds: run gosec during linting phase
4 files changed, 16 insertions(+), 2 deletions(-)

M .builds/freebsd.yml
A .builds/go.mod
A .builds/go.sum
A .builds/tools.go
M .builds/freebsd.yml => .builds/freebsd.yml +3 -2
@@ 22,5 22,6 @@ tasks:
      go vet ./...
      gofmt -s -l . && [ -z "$(gofmt -s -l .)" ]

      # This will modify go.mod, so do it last.
      go run golang.org/x/lint/golint ./...
      cd .builds/
      go run -tags tools golang.org/x/lint/golint ../...
      go run -tags tools github.com/securego/gosec/cmd/gosec -quiet ../...

A .builds/go.mod => .builds/go.mod +5 -0
@@ 0,0 1,5 @@
module tools

go 1.11

replace mellium.im/xmpp => ../

A .builds/go.sum => .builds/go.sum +0 -0
A .builds/tools.go => .builds/tools.go +8 -0
@@ 0,0 1,8 @@
//+build tools

package main

import (
	_ "github.com/securego/gosec/cmd/gosec"
	_ "golang.org/x/lint/golint"
)