From 171c323b1aa855f3f58bebc56d5346d32115b39c Mon Sep 17 00:00:00 2001 From: Ben Turner Date: Tue, 11 Feb 2025 15:20:21 +0100 Subject: [PATCH] addition of pre-commit rules --- .gitignore | 1 + .pre-commit-config.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index 8e99583..c98b361 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target gpsd4java.iml .idea +.cache diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..48d069e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +--- +repos: + - repo: https://github.com/0x08/google-style-precommit-hook + rev: 503fa7c491becee130be17a10b03b275ce6f2330 + hooks: + - id: google-style-java + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.0.0-alpha.0 + hooks: + - id: prettier + - repo: "https://github.com/adrienverge/yamllint" + rev: v1.27.1 + hooks: + - id: "yamllint" + args: [--strict]