Skip to content

Improve rules/filters/validator/bestpractices organization#528

Merged
irees merged 1 commit intomainfrom
organize-rules
Dec 4, 2025
Merged

Improve rules/filters/validator/bestpractices organization#528
irees merged 1 commit intomainfrom
organize-rules

Conversation

@irees
Copy link
Copy Markdown
Contributor

@irees irees commented Dec 4, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 4, 2025 01:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reorganizes the codebase structure for better organization of validation rules, filters, and related functionality. The main architectural change moves validation and transformation logic into dedicated extension packages under the ext/ directory hierarchy.

Key Changes:

  • Best practice validation rules moved from rules package to ext/bestpractices package
  • Filter implementations moved from filters package to ext/filters package
  • Unimplemented TODO rules consolidated into new ext/todo package
  • Multiple new filter implementations added for GTFS data transformation

Reviewed changes

Copilot reviewed 42 out of 54 changed files in this pull request and generated no comments.

Show a summary per file
File Description
validator/validator.go Updated imports to reference best practices from ext/bestpractices package
server/rest/feed_version_exporter.go Updated import path for filters package
copier/copier.go Updated import path for filters package
cmds/extract_cmd.go Updated import path for filters package
cmd/transitland/main.go Updated import path for filters package
rules/invalid_*.go Removed stub files (moved to ext/todo)
rules/flex_validation_test.go Removed test (moved to ext/bestpractices)
ext/todo/*.go New package for unimplemented validation rules with updated package declarations
ext/bestpractices/*.go Renamed from rules package with updated package declarations and new package documentation
ext/filters/*.go New package containing filter implementations with registration in init()
ext/filters/basic_route_type_fliter.go New basic route type conversion filter (filename contains typo)
ext/filters/prefix_filter.go New prefix filter with bugs in FareRule field access
ext/filters/redate_filter.go New calendar redate filter with parameter naming inconsistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@irees irees merged commit b1594e2 into main Dec 4, 2025
14 checks passed
@irees irees deleted the organize-rules branch December 4, 2025 02:00
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