Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
prepare v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyoichiro Yamada committed Jul 30, 2017
1 parent 395a069 commit 8456e0d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
project_name: scopelint
release:
github:
owner: kyoh86
name: scopelint
brew:
install: bin.install "scopelint"
github:
owner: kyoh86
name: homebrew-tap
folder: Formula
homepage: https://github.com/kyoh86/scopelint
description: Checks for unpinned variables in go programs.
builds:
- goos:
- linux
- darwin
goarch:
- amd64
- "386"
goarm:
- "6"
main: .
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
binary: scopelint
archive:
format: tar.gz
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
.Arm }}{{ end }}'
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ var params struct {

var problems int

var version = "snapshot"

func main() {
app := kingpin.New("scopelint", "Checks for unpinned variables in go programs")
app.Author("kyoh86").Version("0.1.0")
app.Author("kyoh86").Version(version)
app.VersionFlag.Short('v')

app.Flag("set-exit-status", "Set exit status to 1 if any problem variables are found").Default("true").BoolVar(&params.setExitStatus)
Expand Down

0 comments on commit 8456e0d

Please sign in to comment.