fix: #898 another fix for Awesome workflow nodir_files problem (#901)

* 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 revert the nodir_files check version prior 2c86fbb

* fix: revert 1.c changes

* Apply suggestions from code review

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
straight-into-the-wall 2021-10-26 09:50:55 +02:00 committed by GitHub
parent 779e2f073e
commit b8e3c3833b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -136,13 +136,12 @@ jobs:
print(f"{len(space_files)} files contain space or dash characters:")
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]
nodir_file_bad_files = len(nodir_files) - 1
if nodir_file_bad_files:
nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "leetcode" not in file and "data_structure" not in file]
if nodir_files:
print(f"{len(nodir_files)} files are not in one and only one directory:")
print("\n".join(nodir_files) + "\n")
bad_files = nodir_file_bad_files + len(upper_files + space_files)
bad_files = len(upper_files + space_files + nodir_files)
if bad_files:
sys.exit(bad_files)