Skip to main content
Sign in
Snippets Groups Projects
Commit 31ce8e9a authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Run the linter as part of tests.

Fix lint warnings.
parent c074b869
Branches
Tags
No related merge requests found
......@@ -8,9 +8,13 @@ go:
- 1.6.2
- tip
before_install:
- go get -v github.com/golang/lint/golint
sudo: false
script:
- go build -v ./...
- go list ./... |grep -v vendor/ |xargs go test
- gofmt -d $(find -type f -name '*.go' -not -path './vendor/*')
- go list ./... |grep -v vendor/ |xargs go vet
- go list ./... |grep -v vendor/ |xargs -L1 golint
......@@ -67,9 +67,9 @@ func (c *Config) Valid(token *oauth2.Token) bool {
return member
}
// GitHub doesn't seem to allow token revocation - tokens are indefinite and
// there are no refresh options etc. Returns nil to satisfy the Provider
// interface.
// Revoke is a no-op revoke method. GitHub doesn't seem to allow token
// revocation - tokens are indefinite and there are no refresh options etc.
// Returns nil to satisfy the Provider interface.
func (c *Config) Revoke(token *oauth2.Token) error {
return nil
}
......
......
......@@ -19,6 +19,7 @@ import (
"github.com/nsheridan/cashier/server/config"
)
// Register the /s3/ filesystem as a well-known filesystem.
func Register(config *config.AWS) {
ac := &aws.Config{}
// If region is unset the SDK will attempt to read the region from the environment.
......
......
package templates
// Token is the page users see when authenticated.
const Token = `<html>
<head>
<title>YOUR TOKEN!</title>
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment