Skip to content

Commit fb93fbf

Browse files
authored
fixes #116 add pre-commit hook and apply it (#117)
1 parent e244970 commit fb93fbf

File tree

4 files changed

+21
-8
lines changed

4 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: v3.2.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: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ GraphQL framework based on light-4j
1414

1515
### graphql-common
1616
This module controls the configuration for GraphQL service and share some static variables
17-
with other modules to make the dependencies much simpler.
17+
with other modules to make the dependencies much simpler.
1818

1919
### graphql-router
2020
This module provides RouteHandler and SchemaProvider interfaces and implement both GET and
21-
POST handlers for GraphQL.
21+
POST handlers for GraphQL.
2222

2323
## Middleware Handlers:
2424

@@ -42,16 +42,15 @@ light-codegen without using GraphQL IDL.
4242

4343
This is a similar example as Hello World with IDL to trigger the generation. It is utilize the
4444
star wars GraphQL IDL downloaded from the Internet.
45-
45+
4646
### [Mutation](https://doc.networknt.com/tutorial/graphql/mutation/)
4747

4848
This example shows you how to create a full blown GraphQL service with both query and mutation.
4949

5050
### [Mutation IDL](https://doc.networknt.com/tutorial/graphql/mutation-idl/)
5151

52-
This is the same example like the mutation but is generated from a schema.
52+
This is the same example like the mutation but is generated from a schema.
5353

5454
### [Relay Todo](https://doc.networknt.com/tutorial/graphql/relay-todo/)
5555

56-
This is to show you how to build a GraphQL service that is working with Relayjs.
57-
56+
This is to show you how to build a GraphQL service that is working with Relayjs.

graphql-router/src/main/resources/config/graphiql-subscriptions-fetcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13502,4 +13502,4 @@ var GraphiQLSubscriptionsFetcher =
1350213502
}
1350313503

1350413504
/***/ })
13505-
/******/ ]);
13505+
/******/ ]);

graphql-router/src/test/java/com/networknt/graphql/router/GraphqlEndpointSourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public void testPetstoreEndpoints() {
3434
);
3535
}
3636

37-
}
37+
}

0 commit comments

Comments
 (0)