Skip to content

feat: Validate directories, do not recurse into schema-declared opaque dirs#180

Merged
rwblair merged 14 commits intomainfrom
enh/implement_directory_rules
Mar 24, 2025
Merged

feat: Validate directories, do not recurse into schema-declared opaque dirs#180
rwblair merged 14 commits intomainfrom
enh/implement_directory_rules

Conversation

@rwblair
Copy link
Member

@rwblair rwblair commented Mar 10, 2025

@rwblair rwblair marked this pull request as draft March 10, 2025 20:18
rwblair and others added 4 commits March 13, 2025 15:27
@rwblair rwblair marked this pull request as ready for review March 13, 2025 20:39
@rwblair
Copy link
Member Author

rwblair commented Mar 13, 2025

Previous commit made me realize we don't generate an error for non / path sperators.

@effigies effigies changed the title Enh/implement directory rules feat: Validate directories, do not recurse into schema-declared opaque dirs Mar 14, 2025
Copy link
Contributor

@effigies effigies left a comment

Choose a reason for hiding this comment

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

I've reviewed the walking code and it makes sense. Still need to wrap my head around findDirRuleMatches.

Copy link
Contributor

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Part of me thinks we should be able to optimize this further, but in general there will be an order of magnitude fewer directories than files, so I don't want to go too hard unless this turns out to be a noticeable bottleneck.

Some smallish optimizations to short-circuit loops and avoid repeated recursive lookups.

rwblair and others added 7 commits March 19, 2025 16:53
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Copy link
Contributor

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Small optimization

Copy link
Contributor

@effigies effigies left a comment

Choose a reason for hiding this comment

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

LGTM. @rwblair merge if you're all set.

@rwblair rwblair merged commit fd597c7 into main Mar 24, 2025
25 checks passed
@effigies effigies deleted the enh/implement_directory_rules branch March 24, 2025 14:57
rwblair added a commit that referenced this pull request Mar 24, 2025
effigies added a commit that referenced this pull request Mar 25, 2025
Add scrive for #180 and workflow to check for changes in changelog.d
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

Comments