Skip to content

Commit

Permalink
Skip old .md files from linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Jul 10, 2024
1 parent 5e20a04 commit 4575594
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linter/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,16 @@ def run(self):

# walk and lint all the gtfobins
for name in sorted(os.listdir(root)):
if name.startswith('.'):
# skip old version files
if name.endswith('.md'):
continue

# lint and report errors
path = os.path.join(root, name)
for problem in self._lint_file(path):
success = False
print(problem)

return success


Expand Down

0 comments on commit 4575594

Please sign in to comment.