-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (30 loc) · 1.09 KB
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^.+\/DESCRIPTION_.+$
- repo: https://github.com/ejba/pre-commit-maven
rev: v0.3.4
hooks:
- id: maven-spotless-apply
name: Spotless Java Formatter
- id: maven-spotless-check
name: Spotless Java Linter
- id: maven
name: License Check
args: ['com.mycila:license-maven-plugin:check']
- repo: local
hooks:
- id: check-run-containers-true
name: RUN_CONTAINERS should be set to true
always_run: true
language: script
entry: /bin/sh -c 'grep -Fxq " private static final boolean RUN_CONTAINERS = true;" rdepot-app/src/test/java/eu/openanalytics/rdepot/integrationtest/manager/v2/IntegrationTest.java'
- id: check-description-ggally-trailing-space
name: "DESCRIPTION_ggally file should contain 'Description: '"
always_run: true
language: script
entry: "/bin/sh -c 'grep -Fxq \"Description: \" rdepot-r-module/src/test/resources/unit/test_files/properties_files/DESCRIPTION_ggally'"