Skip to content

Commit 10bd599

Browse files
authored
fixes #23 add pre-commit config and apply it (#24)
1 parent 838db0a commit 10bd599

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
- repo: https://github.com/networknt/pre-commit-hook-keyword
10+
rev: f17c4de14fc24420f6768c19cad06ba03af06d86
11+
hooks:
12+
- id: keywordscan
13+
args: ["--keywords=c3VubGlmZQ==,Y2liYw==,c3VuIGxpZmU="]
14+
types: ["text"]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An HTTP client based on JDK 11 http-client to invoke APIs with client-side cross
55

66
The purpose of the client module is trying to help the user to handler SSL cert load and JWT token process.
77

8-
### Synchronous call
8+
### Synchronous call
99

1010
```text
1111
HttpClientRequest httpClientRequest = new HttpClientRequest();
@@ -56,7 +56,7 @@ The purpose of the client module is trying to help the user to handler SSL cert
5656

5757
### Connectionpool
5858

59-
JDK 11 http connection build connection pool internal and it will select the connection from pool base on certain logic.
59+
JDK 11 http connection build connection pool internal and it will select the connection from pool base on certain logic.
6060

6161

6262
### Connection with proxy.
@@ -115,7 +115,7 @@ Java HttpClient by default will load default JDK cacerts for https request, if t
115115
```
116116
# trust store contains certifictes that server needs. Enable if tls is used.
117117
loadTrustStore: false
118-
```
118+
```
119119

120120
If we need load self-signed trust from client truststore, set the config value to true:
121121

@@ -124,4 +124,4 @@ If we need load self-signed trust from client truststore, set the config value t
124124
loadTrustStore: true
125125
```
126126

127-
System will load the client truststore and default certs together for SSL context
127+
System will load the client truststore and default certs together for SSL context

src/main/java/com/networknt/client/oauth/SignKeyRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* The configuration is coming from the sign/key section in the client.yml file. This request is used
2828
* to get the key for sign verification. The proxy configuration is defined in the sign section as it
29-
* is not possible the same service using two different proxy servers.
29+
* is not possible the same service using two different proxy servers.
3030
*
3131
* @author Steve Hu
3232
*/

src/main/java/com/networknt/http/client/ssl/TLSConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* This class holds configuration values related to server identify check.
21-
*
21+
*
2222
* @author Daniel Zhao
2323
*
2424
*/
@@ -34,5 +34,5 @@ private TLSConfig(boolean checkServerIdentify) {
3434
public boolean getCheckServerIdentity() {
3535
return checkServerIdentify;
3636
}
37-
37+
3838
}

src/main/java/org/apache/hc/client5/http/ssl/copied/DistinguishedNameParser.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,3 @@ public void copyUnquotedContent(
128128
}
129129

130130
}
131-

0 commit comments

Comments
 (0)