-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from master-of-servers/bsides
This pull request has the code for MOSE v2. This includes support for Salt and a complete rewrite of the UI.
- Loading branch information
Showing
64 changed files
with
4,021 additions
and
1,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,24 @@ | ||
build: | ||
go get -u github.com/gobuffalo/packr/v2/packr2 | ||
export GO111MODULE=on | ||
packr2 build | ||
go get | ||
go get github.com/markbates/pkger/cmd/pkger | ||
go get -u -v | ||
go build | ||
mkdir -p payloads | ||
|
||
clean: | ||
packr2 clean | ||
|
||
setup-linter: ## Install all the build and lint dependencies | ||
gometalinter --install | ||
|
||
fmt: ## gofmt and goimports all go files | ||
fmt: | ||
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done | ||
|
||
lint: ## Run all the linters | ||
golangci-lint run \ | ||
--no-config \ | ||
--issues-exit-code=0 \ | ||
--timeout=30m \ | ||
--disable-all \ | ||
--enable=deadcode \ | ||
--enable=gocyclo \ | ||
--enable=golint \ | ||
--enable=varcheck \ | ||
--enable=structcheck \ | ||
--enable=maligned \ | ||
--enable=errcheck \ | ||
--enable=dupl \ | ||
--enable=ineffassign \ | ||
--enable=interfacer \ | ||
--enable=unconvert \ | ||
--enable=goconst \ | ||
--enable=gosec \ | ||
--enable=megacheck | ||
markdownfmt -w README.md | ||
lint: | ||
gometalinter --exclude=vendor --exclude=repos --disable-all --enable=golint --enable=vet --enable=gofmt ./... | ||
find . -name '*.go' | xargs gofmt -w -s | ||
|
||
test: | ||
go test -count=1 -v -race ./... ; \ | ||
echo "Testing Complete." | ||
|
||
tidy: | ||
go mod tidy | ||
pushd cmd/puppet/main/; go mod tidy; popd | ||
pushd cmd/chef/main/; go mod tidy; popd | ||
pushd cmd/ansible/main/; go mod tidy; popd | ||
pushd cmd/salt/main/; go mod tidy; popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.