Add detekt - #193
Conversation
|
Warning Review limit reached
Next review available in: 45 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
Comment |
PR Summary by QodoIntroduce detekt baseline and clean up initial rule violations
AI Description
Diagram
High-Level Assessment
Files changed (8)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTo customize comments, go to the Qodo configuration screen, or learn more in the docs. |
There was a problem hiding this comment.
Pull request overview
This PR appears intended to introduce Detekt into the commons-android codebase (per the PR title and linked issue), while also applying formatting changes (mostly line wrapping) to Kotlin sources and tests.
Changes:
- Adds a
detekt-baseline.xmlfile containing the current Detekt findings baseline. - Wraps long strings and method calls in several test and main Kotlin files.
- Adds a local
@Suppress("MaxLineLength")to allow an intentionally long projection-map builder chain.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/test/java/org/mtransit/android/commons/provider/GTFSRealTimeProviderTest.kt | Wraps a long KDoc line. |
| src/test/java/org/mtransit/android/commons/provider/gbfs/data/api/v3/GBFSv30ApiTests.kt | Wraps long JSON/test strings across multiple concatenations. |
| src/test/java/org/mtransit/android/commons/HtmlUtilsTest.kt | Wraps long HTML/base64 test strings. |
| src/main/java/org/mtransit/android/commons/provider/vehiclelocations/VehicleLocationProvider.kt | Adds @Suppress("MaxLineLength") for a long fluent builder chain. |
| src/main/java/org/mtransit/android/commons/provider/status/GTFSRealTimeTripUpdatesProvider.kt | Wraps a long log message string. |
| src/main/java/org/mtransit/android/commons/provider/poi/POIProviderContract.kt | Wraps long exception message construction lines. |
| src/main/java/org/mtransit/android/commons/provider/gtfs/GTFSProviderDBHelperUtils.kt | Wraps a long initDbTable(...) call (but still keeps args on one long line). |
| detekt-baseline.xml | Adds a Detekt baseline file. |
…parser': - commons: Add `detekt` mtransitapps/commons#836 - commons-android: Add `detekt` mtransitapps/commons-android#193 - commons-java: Add `detekt` mtransitapps/commons-java#46 - parser: Add `detekt` mtransitapps/parser#84
…parser': - commons: `download()` > remove `Accept: application/zip` for ZIP files (revert #834) - commons: Add `detekt` mtransitapps/commons#836 - commons: `mt-download.yml` > omit `--ref` on default branch to avoid `mt-sync-code-data.yml` starting with the wrong hash mtransitapps/commons#835 - commons: `download()` > `Accept: application/zip` for ZIP files mtransitapps/commons#834 - commons-android: GTFS-RT > Trip Updates > never ignore CANCELLED trips because too much into the future mtransitapps/commons-android#194 - commons-android: `Schedule` > + `hasRealTimeOrCancelled` - commons-android: Add `detekt` mtransitapps/commons-android#193 - commons-android: GTFS-RT > ignore trip updates too much into the future... mtransitapps/commons-android#192 - commons-java: Add `detekt` mtransitapps/commons-java#46 - parser: Add `detekt` mtransitapps/parser#84
…parser': - commons: `download()` > remove `Accept: application/zip` for ZIP files (revert #834) - commons: Add `detekt` mtransitapps/commons#836 - commons: `mt-download.yml` > omit `--ref` on default branch to avoid `mt-sync-code-data.yml` starting with the wrong hash mtransitapps/commons#835 - commons-android: GTFS-RT > Trip Updates > never ignore CANCELLED trips because too much into the future mtransitapps/commons-android#194 - commons-android: `Schedule` > + `hasRealTimeOrCancelled` - commons-android: Add `detekt` mtransitapps/commons-android#193 - commons-android: GTFS-RT > ignore trip updates too much into the future... mtransitapps/commons-android#192 - commons-java: Add `detekt` mtransitapps/commons-java#46 - parser: Add `detekt` mtransitapps/parser#84
…parser': - commons: `download()` > remove `Accept: application/zip` for ZIP files (revert #834) - commons: Add `detekt` mtransitapps/commons#836 - commons: `mt-download.yml` > omit `--ref` on default branch to avoid `mt-sync-code-data.yml` starting with the wrong hash mtransitapps/commons#835 - commons: `download()` > `Accept: application/zip` for ZIP files mtransitapps/commons#834 - commons-android: GTFS-RT > Trip Updates > never ignore CANCELLED trips because too much into the future mtransitapps/commons-android#194 - commons-android: `Schedule` > + `hasRealTimeOrCancelled` - commons-android: Add `detekt` mtransitapps/commons-android#193 - commons-android: GTFS-RT > ignore trip updates too much into the future... mtransitapps/commons-android#192 - commons-java: Add `detekt` mtransitapps/commons-java#46 - parser: Add `detekt` mtransitapps/parser#84
…parser': - commons: `download()` > remove `Accept: application/zip` for ZIP files (revert #834) - commons: Add `detekt` mtransitapps/commons#836 - commons: `mt-download.yml` > omit `--ref` on default branch to avoid `mt-sync-code-data.yml` starting with the wrong hash mtransitapps/commons#835 - commons: `download()` > `Accept: application/zip` for ZIP files mtransitapps/commons#834 - commons-android: GTFS-RT > Trip Updates > never ignore CANCELLED trips because too much into the future mtransitapps/commons-android#194 - commons-android: `Schedule` > + `hasRealTimeOrCancelled` - commons-android: Add `detekt` mtransitapps/commons-android#193 - commons-android: GTFS-RT > ignore trip updates too much into the future... mtransitapps/commons-android#192 - commons-java: Add `detekt` mtransitapps/commons-java#46 - parser: Add `detekt` mtransitapps/parser#84
…parser': - commons: `download()` > remove `Accept: application/zip` for ZIP files (revert #834) - commons: Add `detekt` mtransitapps/commons#836 - commons: `mt-download.yml` > omit `--ref` on default branch to avoid `mt-sync-code-data.yml` starting with the wrong hash mtransitapps/commons#835 - commons: `download()` > `Accept: application/zip` for ZIP files mtransitapps/commons#834 - commons-android: GTFS-RT > Trip Updates > never ignore CANCELLED trips because too much into the future mtransitapps/commons-android#194 - commons-android: `Schedule` > + `hasRealTimeOrCancelled` - commons-android: Add `detekt` mtransitapps/commons-android#193 - commons-android: GTFS-RT > ignore trip updates too much into the future... mtransitapps/commons-android#192 - commons-java: Add `detekt` mtransitapps/commons-java#46 - parser: Add `detekt` mtransitapps/parser#84
detektto validate Kotlin code. mtransit-for-android#226