fix: #898 Awesome workflow (1 files are not in one and only one directory) (#900)

* perf: faster implementation of the TwoSum problem

* doc: fixed typos on comments

* updating DIRECTORY.md

* fix: comments on includes. Doxygen file. static test function

* fix: #898 awesome-workflow: 1 files are not in one and only one directory

* fix: revert 1.c changes

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
straight-into-the-wall 2021-10-25 21:27:09 +02:00 committed by GitHub
parent 88a82991f2
commit 779e2f073e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -137,13 +137,15 @@ jobs:
print("\n".join(space_files) + "\n")
nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file]
if nodir_files:
nodir_file_bad_files = len(nodir_files) - 1
if nodir_file_bad_files:
print(f"{len(nodir_files)} files are not in one and only one directory:")
print("\n".join(nodir_files) + "\n")
bad_files = len(upper_files + space_files + nodir_files)
bad_files = nodir_file_bad_files + len(upper_files + space_files)
if bad_files:
sys.exit(bad_files)
- name: Commit and push changes
run: |
git commit -am "clang-format and clang-tidy fixes for ${GITHUB_SHA::8}" || true

View File

@ -94,7 +94,9 @@
* [List](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/list.c)
* [List](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/list.h)
* [Main](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/main.c)
* [Queue](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue.c)
* Queue
* [Include](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue/include.h)
* [Queue](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue/queue.c)
* [Stack](https://github.com/TheAlgorithms/C/blob/master/data_structures/stack.c)
* Stack
* [Main](https://github.com/TheAlgorithms/C/blob/master/data_structures/stack/main.c)