Skip to content

Commit 970745e

Browse files
committed
LINTING. astyle integrated in pre-commit.
1 parent 36a6ffd commit 970745e

File tree

6 files changed

+772
-851
lines changed

6 files changed

+772
-851
lines changed

.clang-format

Lines changed: 0 additions & 134 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ repos:
55
hooks:
66
- id: yapf
77
additional_dependencies: [toml]
8-
- repo: https://github.com/pre-commit/mirrors-clang-format.git
9-
rev: v13.0.0
10-
hooks:
11-
- id: clang-format
8+
#- repo: https://github.com/pre-commit/mirrors-clang-format.git
9+
# rev: v13.0.0
10+
# hooks:
11+
# - id: clang-format
1212
- repo: https://github.com/pre-commit/pre-commit-hooks.git
13-
rev: v4.1.0
13+
rev: v4.3.0
1414
hooks:
1515
- id: trailing-whitespace
1616
exclude: \.fits
@@ -22,6 +22,15 @@ repos:
2222
- id: check-added-large-files
2323
- id: check-ast
2424
- id: check-merge-conflict
25+
- repo: local
26+
hooks:
27+
- id: astyle
28+
name: astyle custom script lints C/C++
29+
entry: /usr/bin/astyle
30+
args: ['-A1', '-s4', '-U', '-p', '-j', '-xC80', '-xG', '-S', '-k3', '-q', '-n']
31+
language: script
32+
files: '\.(cpp|c|h|hpp)'
33+
stages: [commit, push]
2534
#- repo: git://github.com/detailyang/pre-commit-shell
2635
# rev: v1.0.6
2736
# hooks:

0 commit comments

Comments
 (0)