Skip to content

Commit 1e3d71b

Browse files
authored
Merge pull request #37 from George-Ogden/spacing
Improve Output Format
2 parents 79fd36d + 680b0c0 commit 1e3d71b

26 files changed

+99
-68
lines changed

.github/workflows/lint.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
lint:
13+
uses: George-Ogden/actions/.github/workflows/[email protected]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ default_stages: ["pre-commit", "commit-msg", "pre-push"]
5959

6060
repos:
6161
- repo: https://github.com/pre-commit/pre-commit-hooks
62-
rev: v5.0.0
62+
rev: v6.0.0
6363
hooks:
6464
- id: end-of-file-fixer
6565
- id: mixed-line-ending
6666
- id: trailing-whitespace
6767

6868
- repo: https://github.com/George-Ogden/pre-commit-hooks/
69-
rev: v1.2.4
69+
rev: v1.2.5
7070
hooks:
7171
- id: dbg-check
7272
exclude: ^test/

tests/dbg-check/test_both_issues.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/both_issues.cuh | tee $LOG && exit 1
9-
grep -F both_issues.cuh:1 $LOG
10-
grep -F both_issues.cuh:4 $LOG
9+
grep -F 'both_issues.cuh:1: #include <dbg.h>' $LOG
10+
grep -F 'both_issues.cuh:4: dbg(10);' $LOG

tests/dbg-check/test_expression.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/debug_expression.cu | tee $LOG && exit 1
9-
grep -F debug_expression.cu:2 $LOG
9+
grep -F 'debug_expression.cu:2: return dbg(-1);' $LOG

tests/dbg-check/test_header_brackets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/debug_header_brackets.hpp | tee $LOG && exit 1
9-
grep -F debug_header_brackets.hpp:3 $LOG
9+
grep -F 'debug_header_brackets.hpp:3: #include <dbg.h>' $LOG

tests/dbg-check/test_header_quotes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/debug_header_quotes.hxx | tee $LOG && exit 1
9-
grep -F debug_header_quotes.hxx:1 $LOG
9+
grep -F 'debug_header_quotes.hxx:1: #include "dbg.h"' $LOG

tests/dbg-check/test_import.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/debug_import.py | tee $LOG && exit 1
9-
grep -F debug_import.py:1 $LOG
9+
grep -F 'debug_import.py:1: from debug import dbg' $LOG

tests/dbg-check/test_macro.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/debug_macro.rs | tee $LOG && exit 1
9-
grep -F debug_macro.rs:2 $LOG
9+
grep -F 'debug_macro.rs:2: return dbg!(-1);' $LOG

tests/dbg-check/test_multiple_invalid_files.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/{debug_header_brackets.hpp,debug_statements.cpp,debug_header_quotes.hxx} | tee $LOG && exit 1
9-
grep -F debug_header_brackets.hpp:3 $LOG
10-
grep -F debug_statements.cpp:2 $LOG
11-
grep -F debug_statements.cpp:3 $LOG
12-
grep -F debug_header_quotes.hxx:1 $LOG
9+
grep -F 'debug_header_brackets.hpp:3: #include <dbg.h>' $LOG
10+
grep -F 'debug_statements.cpp:2: dbg(10);' $LOG
11+
grep -F 'debug_statements.cpp:3: int y = dbg(4);' $LOG
12+
grep -F 'debug_header_quotes.hxx:1: #include "dbg.h"' $LOG

tests/dbg-check/test_statements.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ DIRECTORY=$(dirname $0)
66
LOG=`mktemp`
77

88
pre-commit try-repo . dbg-check -v --files $DIRECTORY/test_data/debug_statements.cpp | tee $LOG && exit 1
9-
grep -F debug_statements.cpp:2 $LOG
10-
grep -F debug_statements.cpp:3 $LOG
9+
grep -F 'debug_statements.cpp:2: dbg(10);' $LOG
10+
grep -F 'debug_statements.cpp:3: int y = dbg(4);' $LOG

0 commit comments

Comments
 (0)