Skip to content

Commit 878b254

Browse files
Comment TODOs
1 parent a38f145 commit 878b254

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/ci_todos.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# This workflow prevents TODOs in code
2-
name: Check TODOs in code
1+
# # This workflow prevents TODOs in code
2+
# name: Check TODOs in code
33

4-
on:
5-
pull_request:
6-
push:
7-
branches:
8-
- main
4+
# on:
5+
# pull_request:
6+
# push:
7+
# branches:
8+
# - main
99

10-
jobs:
11-
findTodos:
12-
runs-on: macos-13
13-
steps:
14-
- uses: actions/checkout@v3
10+
# jobs:
11+
# findTodos:
12+
# runs-on: macos-13
13+
# steps:
14+
# - uses: actions/checkout@v3
1515

16-
- name: Check TODOs in code
17-
shell: bash
18-
# TODOs may be committed as long as the same line contains a link to a Github Issue or refers to a CrypTool SIM.
19-
run: |
20-
ALL_TODO_COUNT=$( { grep -r "TODO" . --exclude-dir=./releases --exclude-dir=./TestVectors/runtimes --exclude-dir=./submodules --exclude-dir=./.git --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
21-
GOOD_TODO_COUNT=$( { grep -r "TODO.*\(github.com\/.*issues.*\/[1-9][0-9]*\|CrypTool-[1-9][0-9]*\)" . --exclude-dir=./releases --exclude-dir=./submodules --exclude-dir=./.git --exclude-dir=./TestVectors/runtimes --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
22-
if [ "$ALL_TODO_COUNT" != "$GOOD_TODO_COUNT" ]; then
23-
exit 1;
24-
fi
16+
# - name: Check TODOs in code
17+
# shell: bash
18+
# # TODOs may be committed as long as the same line contains a link to a Github Issue or refers to a CrypTool SIM.
19+
# run: |
20+
# ALL_TODO_COUNT=$( { grep -r "TODO" . --exclude-dir=./releases --exclude-dir=./TestVectors/runtimes --exclude-dir=./submodules --exclude-dir=./.git --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
21+
# GOOD_TODO_COUNT=$( { grep -r "TODO.*\(github.com\/.*issues.*\/[1-9][0-9]*\|CrypTool-[1-9][0-9]*\)" . --exclude-dir=./releases --exclude-dir=./submodules --exclude-dir=./.git --exclude-dir=./TestVectors/runtimes --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
22+
# if [ "$ALL_TODO_COUNT" != "$GOOD_TODO_COUNT" ]; then
23+
# exit 1;
24+
# fi

0 commit comments

Comments
 (0)