Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
C
cashier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
cashier
Commits
31ce8e9a
Commit
31ce8e9a
authored
Jun 13, 2016
by
Niall Sheridan
Browse files
Options
Downloads
Patches
Plain Diff
Run the linter as part of tests.
Fix lint warnings.
parent
c074b869
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+4
-0
4 additions, 0 deletions
.travis.yml
server/auth/github/github.go
+3
-3
3 additions, 3 deletions
server/auth/github/github.go
server/fs/s3.go
+1
-0
1 addition, 0 deletions
server/fs/s3.go
templates/token.go
+1
-0
1 addition, 0 deletions
templates/token.go
with
9 additions
and
3 deletions
.travis.yml
+
4
−
0
View file @
31ce8e9a
...
...
@@ -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
This diff is collapsed.
Click to expand it.
server/auth/github/github.go
+
3
−
3
View file @
31ce8e9a
...
...
@@ -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
}
...
...
...
...
This diff is collapsed.
Click to expand it.
server/fs/s3.go
+
1
−
0
View file @
31ce8e9a
...
...
@@ -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.
...
...
...
...
This diff is collapsed.
Click to expand it.
templates/token.go
+
1
−
0
View file @
31ce8e9a
package
templates
// Token is the page users see when authenticated.
const
Token
=
`<html>
<head>
<title>YOUR TOKEN!</title>
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment