Skip to content

Commit

Permalink
line length
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi committed May 31, 2024
1 parent 8db8afe commit c28745c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repos:

# CPP hooks
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.4
rev: v18.1.5
hooks:
- id: clang-format
args: ["-fallback-style=none", "-i"]
Expand Down Expand Up @@ -125,15 +125,15 @@ repos:
# Spellcheck in comments and docs
# skipping of *.svg files is not working...
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: ["--write-changes", "--uri-ignore-words-list=ist", "-L manuel"]
exclude: CHANGELOG\.rst|\.(svg|pyc|drawio)$

# Json lint
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.2
rev: 0.28.4
hooks:
- id: check-github-workflows
args: ["--verbose"]
Expand All @@ -152,12 +152,3 @@ repos:
language: system
types: [text]
files: \.(xacro|urdf|sdf|xml|launch)$

- repo: local
hooks:
- id: check-line-length-under-100
name: Check line length
description: Ensure no line is longer than 100 characters.
entry: bash -c 'if (( $(awk "{ if (length > 100) print }" $1 | wc -l) > 0 )); then echo "Line too long in file $1"; exit 1; fi'
language: system
files: .

0 comments on commit c28745c

Please sign in to comment.