Skip to content

Commit

Permalink
gofmt and go vet in travis (GeoNet#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Clitheroe authored and ozym committed Jan 15, 2018
1 parent 3f8904f commit 1719546
Show file tree
Hide file tree
Showing 30 changed files with 287 additions and 287 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ services:
language: go

go:
- 1.7
- 1.9

install: true


script:
- test -z "$(gofmt -s -l `find . -name "*.go" | egrep -v vendor` | tee /dev/stderr)"
- go vet ./...
- ./test.sh
- ./build.sh

Expand Down Expand Up @@ -53,4 +55,4 @@ deploy:
after_script:
- ./tools/sit/sit_build.sh

# vim: set ts=2 sw=2 tw=0 et:
# vim: set ts=2 sw=2 tw=0 et:
2 changes: 1 addition & 1 deletion internal/metadb/channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (m *MetaDB) Channels(sta string) ([]Channel, error) {
}

lookup := response.Channels(stream.Axial)
for pin, _ := range response.Components {
for pin := range response.Components {
if !(pin < len(lookup)) {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion resp/generate/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type filterMap map[string][]ResponseStage

func (f filterMap) Keys() []string {
var keys []string
for k, _ := range f {
for k := range f {
keys = append(keys, k)
}
sort.Strings(keys)
Expand Down
2 changes: 1 addition & 1 deletion resp/generate/fir.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type firMap map[string]FIR

func (f firMap) Keys() []string {
var keys []string
for k, _ := range f {
for k := range f {
keys = append(keys, k)
}
sort.Strings(keys)
Expand Down
2 changes: 1 addition & 1 deletion resp/generate/paz.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type pazMap map[string]PAZ

func (p pazMap) Keys() []string {
var keys []string
for k, _ := range p {
for k := range p {
keys = append(keys, k)
}
sort.Strings(keys)
Expand Down
2 changes: 1 addition & 1 deletion resp/generate/polynomial.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type polynomialMap map[string]Polynomial

func (p polynomialMap) Keys() []string {
var keys []string
for k, _ := range p {
for k := range p {
keys = append(keys, k)
}
sort.Strings(keys)
Expand Down
2 changes: 1 addition & 1 deletion resp/generate/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type responseMap map[string]Response

func (r responseMap) Keys() []string {
var keys []string
for k, _ := range r {
for k := range r {
keys = append(keys, k)
}
sort.Strings(keys)
Expand Down
Loading

0 comments on commit 1719546

Please sign in to comment.