Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sc-12505 add exclude-dirs option for directory walking command #10

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

mattwwarren
Copy link
Collaborator

No description provided.

Copy link

This pull request has been linked to Shortcut Story #12505: Add --exclude-dirs to directory walking command.

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.77%. Comparing base (61aaf6f) to head (32b4ce5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   87.66%   87.77%   +0.10%     
==========================================
  Files          11       11              
  Lines         681      687       +6     
==========================================
+ Hits          597      603       +6     
  Misses         84       84              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -251,6 +256,13 @@ def walk_directories(config_dir, file_types, output_dir):
if dir in dirs:
dirs.remove(dir)

# skip over user-specified non-config directories
for dir in exclude_dirs:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still exclude your default list too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left that loop above the new code. But you've given me a better idea of how to concatenate the two lists.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, nevermind. The logic for finding referenced directories is too different from the existing logic. It will end up getting refactored later.

@mattwwarren mattwwarren merged commit b73e4e9 into main Mar 12, 2024
3 checks passed
@mattwwarren mattwwarren deleted the sc-12505/add-exclude-dirs branch March 12, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants