Skip to content

Commit

Permalink
fixes #105 add pre-commit hook and apply it
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Feb 8, 2024
1 parent 44a3cf5 commit 4a6cb11
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dist/
hs_err_pid*
!rest.zip

**/.DS_Store
**/.DS_Store
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/networknt/pre-commit-hook-keyword
rev: f17c4de14fc24420f6768c19cad06ba03af06d86
hooks:
- id: keywordscan
args: ["--keywords=c3VubGlmZQ==,Y2liYw==,c3VuIGxpZmU="]
types: ["text"]
1 change: 0 additions & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ public void handleRequest(final HttpServerExchange exchange) throws Exception {

}
}
}
}

0 comments on commit 4a6cb11

Please sign in to comment.