Skip to content

JSON config > + direction_headsign_ignore_trip_headsign... #lio#74

Merged
mmathieum merged 2 commits into
masterfrom
mm/parser_imprv_for_lio
Jul 2, 2026
Merged

JSON config > + direction_headsign_ignore_trip_headsign... #lio#74
mmathieum merged 2 commits into
masterfrom
mm/parser_imprv_for_lio

Conversation

@mmathieum

Copy link
Copy Markdown
Member

No description provided.

@mmathieum mmathieum self-assigned this Jul 2, 2026
@mmathieum mmathieum changed the title JSON config > + direction_headsign_ignore_trip_headsign.. #lio JSON config > + direction_headsign_ignore_trip_headsign... #lio Jul 2, 2026
@mmathieum mmathieum marked this pull request as ready for review July 2, 2026 23:14

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new configuration option directionHeadsignIgnoreTripHeadsign and updates the cleanDirectionHeadsign method signature to accept a fromTripHeadSign boolean flag, allowing the parser to ignore trip headsigns when cleaning direction headsigns. The feedback highlights a consistent typo in the newly introduced variable and parameter name fromTripHeaSign (missing 'd') across DefaultAgencyTools.java and GAgencyTools.java, suggesting it be renamed to fromTripHeadSign.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/main/java/org/mtransit/parser/DefaultAgencyTools.java Outdated
Comment thread src/main/java/org/mtransit/parser/DefaultAgencyTools.java Outdated
Comment thread src/main/java/org/mtransit/parser/DefaultAgencyTools.java Outdated
Comment thread src/main/java/org/mtransit/parser/gtfs/GAgencyTools.java Outdated
@mmathieum

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new configuration option direction_headsign_ignore_trip_headsign to ignore trip headsigns when cleaning direction headsigns, updating the cleanDirectionHeadsign method signature and its usages across the codebase. The feedback suggests improving the Java implementation of cleanDirectionHeadsign by using a guard clause to avoid parameter reassignment and unnecessary processing. Additionally, the feedback recommends reverting several Kotlin functions in RouteConfig.kt back to expression bodies to adhere to the Kotlin Style Guide and maintain consistency.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/main/java/org/mtransit/parser/DefaultAgencyTools.java
Comment thread src/main/java/org/mtransit/parser/config/gtfs/data/RouteConfig.kt
Comment thread src/main/java/org/mtransit/parser/config/gtfs/data/RouteConfig.kt
@mmathieum mmathieum merged commit 8ff0031 into master Jul 2, 2026
4 checks passed
@mmathieum mmathieum deleted the mm/parser_imprv_for_lio branch July 2, 2026 23:28
montransit added a commit to mtransitapps/mtransit-for-android that referenced this pull request Jul 2, 2026
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.

1 participant