GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#5)
by
unknown
01:39
created

credentials/bearer_token_credential.go   A

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 16
dl 0
loc 36
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A credentials.newBearerTokenCredential 0 3 1
A credentials.*BearerTokenCredential.GetAccessSecret 0 2 1
A credentials.*BearerTokenCredential.GetSecurityToken 0 2 1
A credentials.*BearerTokenCredential.GetType 0 2 1
A credentials.*BearerTokenCredential.GetAccessKeyID 0 2 1
A credentials.*BearerTokenCredential.GetBearerToken 0 2 1
1
package credentials
2
3
type BearerTokenCredential struct {
0 ignored issues
show
introduced by
exported type BearerTokenCredential should have comment or be unexported
Loading history...
4
	BearerToken string
5
}
6
7
// newBearerTokenCredential return a BearerTokenCredential object
8
func newBearerTokenCredential(token string) *BearerTokenCredential {
9
	return &BearerTokenCredential{
10
		BearerToken: token,
11
	}
12
}
13
14
// GetAccessKeyID is useless for BearerTokenCredential
15
func (b *BearerTokenCredential) GetAccessKeyID() (string, error) {
16
	return "", nil
17
}
18
19
// GetAccessSecret is useless for BearerTokenCredential
20
func (b *BearerTokenCredential) GetAccessSecret() (string, error) {
21
	return "", nil
22
}
23
24
// GetSecurityToken is useless for BearerTokenCredential
25
func (b *BearerTokenCredential) GetSecurityToken() (string, error) {
26
	return "", nil
27
}
28
29
// GetBearerToken reutrns  BearerTokenCredential's BearerToken
30
func (b *BearerTokenCredential) GetBearerToken() string {
31
	return b.BearerToken
32
}
33
34
// GetType reutrns  BearerTokenCredential's type
35
func (b *BearerTokenCredential) GetType() string {
36
	return "bearer"
37
}
38