File tree 10 files changed +31
-11
lines changed
10 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1
- scripts /license.lic
1
+ scripts /license.lic
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/pre-commit/pre-commit-hooks
3
+ rev : v4.3.0
4
+ hooks :
5
+ - id : end-of-file-fixer
6
+ - id : trailing-whitespace
7
+ - repo : https://github.com/commitizen-tools/commitizen
8
+ rev : v2.27.1
9
+ hooks :
10
+ - id : commitizen
11
+ stages : [commit-msg]
12
+ - repo : https://github.com/tekwizely/pre-commit-golang
13
+ rev : v1.0.0-rc.1
14
+ hooks :
15
+ - id : go-fmt
16
+ - id : go-mod-tidy
17
+ - id : go-imports
18
+ # FIX ME: See https://github.com/datadrivers/go-nexus-client/issues/122
19
+ # - id: go-vet
20
+ # - id: golangci-lint-mod
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
)
13
13
14
14
const (
15
- bowerProxyAPIEndpoint = repositoryBowerAPIEndpoint + "/proxy"
15
+ bowerProxyAPIEndpoint = repositoryBowerAPIEndpoint + "/proxy"
16
16
)
17
17
18
18
type RepositoryBowerProxyService struct {
Original file line number Diff line number Diff line change 8
8
const (
9
9
repositoryBowerAPIEndpoint = common .RepositoryAPIEndpoint + "/bower"
10
10
)
11
+
11
12
type RepositoryBowerService struct {
12
13
client * client.Client
13
14
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func getTestMavenProxyRepository(name string) repository.MavenProxyRepository {
31
31
Proxy : repository.Proxy {
32
32
ContentMaxAge : 1440 ,
33
33
MetadataMaxAge : 1440 ,
34
- RemoteURL : "https://archive.ubuntu.com/ubuntu/" ,
34
+ RemoteURL : "https://archive.ubuntu.com/ubuntu/" ,
35
35
},
36
36
Storage : repository.Storage {
37
37
BlobStoreName : "default" ,
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ func TestNpmGroupRepository(t *testing.T) {
46
46
repo .Group .MemberNames = append (repo .Group .MemberNames , testProxyRepo .Name )
47
47
}
48
48
49
-
50
49
err = service .Group .Create (repo )
51
50
assert .Nil (t , err )
52
51
generatedRepo , err := service .Group .Get (repo .Name )
Original file line number Diff line number Diff line change @@ -119,4 +119,4 @@ facing addresses if this IdP is hosted behind a reverse proxy. -->
119
119
120
120
</IDPSSODescriptor >
121
121
122
- </EntityDescriptor >
122
+ </EntityDescriptor >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ type BowerProxyRepository struct {
32
32
RoutingRuleName * string `json:"routingRuleName,omitempty"`
33
33
34
34
* Cleanup `json:"cleanup,omitempty"`
35
- Bower `json:"bower"`
35
+ Bower `json:"bower"`
36
36
}
37
37
38
38
type Bower struct {
Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ type HTTPClientAuthentication struct {
54
54
55
55
// HTTPClientAuthenticationWithPreemptive ...
56
56
type HTTPClientAuthenticationWithPreemptive struct {
57
- NTLMDomain string `json:"ntlmDomain,omitempty"`
58
- NTLMHost string `json:"ntlmHost,omitempty"`
59
- Password string `json:"password,omitempty"`
57
+ NTLMDomain string `json:"ntlmDomain,omitempty"`
58
+ NTLMHost string `json:"ntlmHost,omitempty"`
59
+ Password string `json:"password,omitempty"`
60
60
Type HTTPClientAuthenticationType `json:"type"`
61
- Username string `json:"username,omitempty"`
61
+ Username string `json:"username,omitempty"`
62
62
// Whether to use pre-emptive authentication. Use with caution. Defaults to false.
63
63
Preemptive * bool `json:"preemptive,omitempty"`
64
64
}
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ if [[ -n ${gofmt_files} ]]; then
10
10
exit 1
11
11
fi
12
12
13
- exit 0
13
+ exit 0
You can’t perform that action at this time.
0 commit comments