Skip to content

Migrate from Ruby Danger to danger-kotlin - #329

Merged
ggrell merged 5 commits into
mainfrom
claude/migrate-danger-kotlin-9ncWB
Mar 30, 2026
Merged

Migrate from Ruby Danger to danger-kotlin#329
ggrell merged 5 commits into
mainfrom
claude/migrate-danger-kotlin-9ncWB

Conversation

@ggrell

@ggrell ggrell commented Mar 30, 2026

Copy link
Copy Markdown
Owner
  • Replace MeilCli/danger-action (Ruby) with danger/kotlin@1.3.4
  • Add Dangerfile.df.kts with plugins for detekt, Android lint, JUnit,
    and Kotlin compiler warning parsing from build log
  • Add basePath to detekt config for inline PR comments to work
  • Enable xmlReport on all 4 Android modules so lint reports are generated
  • Capture build output via tee build.log for Kotlin warning extraction
  • Remove ruby/setup-ruby step and BUNDLE_GEMFILE env var
  • Add pull-requests: write permission for built-in GITHUB_TOKEN
  • Delete old .github/Dangerfile and .github/Gemfile

https://claude.ai/code/session_01Si4u1D3ooHG7PxctV5ZRf9

@ggrell
ggrell force-pushed the claude/migrate-danger-kotlin-9ncWB branch 3 times, most recently from 5ff9c3d to 38d41dd Compare March 30, 2026 11:40
claude added 3 commits March 30, 2026 11:04
- Replace MeilCli/danger-action (Ruby) with danger/kotlin@1.3.4
- Add Dangerfile.df.kts with plugins for detekt, Android lint, JUnit,
  and Kotlin compiler warning parsing from build log
- Add basePath to detekt config for inline PR comments to work
- Enable xmlReport on all 4 Android modules so lint reports are generated
- Capture build output via tee build.log for Kotlin warning extraction
- Remove ruby/setup-ruby step and BUNDLE_GEMFILE env var
- Add pull-requests: write permission for built-in GITHUB_TOKEN
- Delete old .github/Dangerfile and .github/Gemfile

https://claude.ai/code/session_01Si4u1D3ooHG7PxctV5ZRf9
- Fix detekt.yml: remove deprecated ignoreOverridden properties,
  rename MandatoryBracesIfStatements→BracesOnIfStatements and
  OptionalWhenBraces→BracesOnWhenStatements, update ForbiddenComment
  to new comments format, enable warningsAsErrors
- Fix Kotlin shadow-variable warnings in Reactor.kt across all three
  rxreactor modules (rename lambda params to avoid shadowing)
- Fix ReactorWithEffects: use effect.asIterable() for Observable.from()
- Fix LoginActivity: use typed getParcelable() API, remove redundant qualifier
- Add monochrome icon to adaptive-icon XMLs (MonochromeLauncherIcon lint)
- Update kotlin-warning-matcher.json for K2 compiler warning format
  (w: file:line:col msg instead of w: file: (line, col): msg)
- Update Dangerfile.df.kts regex to match K2 warning format
- Update CLAUDE.md: replace obsolete Ruby Danger note with danger-kotlin docs

https://claude.ai/code/session_01Si4u1D3ooHG7PxctV5ZRf9
- Move register plugin calls outside danger(args) block (required by
  danger-kotlin API)
- Fix DetektConfig import: io.github.ackeecz.danger.lint.detekt.DetektConfig
- Fix JUnitConfig import: io.github.ackeecz.danger.testing.junit.JUnitConfig
- Remove non-existent BuildFoldersMatcher and DetektConfig.Discovery
  (these classes don't exist in the library; DetektConfig() default is sufficient)

https://claude.ai/code/session_01Si4u1D3ooHG7PxctV5ZRf9
@ggrell
ggrell force-pushed the claude/migrate-danger-kotlin-9ncWB branch from 38d41dd to b5d5d05 Compare March 30, 2026 15:04
@github-actions

github-actions Bot commented Mar 30, 2026

Copy link
Copy Markdown
Messages
📖 JUnit: 27 tests, 0 failures/errors, 0 skipped.
📖 Static analysis summary: Detekt 0, Android Lint 0.

Generated by 🚫 Danger Kotlin against 65e56f6

@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.11%. Comparing base (e48c425) to head (65e56f6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #329   +/-   ##
=========================================
  Coverage     88.11%   88.11%           
  Complexity       50       50           
=========================================
  Files             9        9           
  Lines           101      101           
=========================================
  Hits             89       89           
  Misses           12       12           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e48c425...65e56f6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ggrell
ggrell merged commit 5436087 into main Mar 30, 2026
3 checks passed
@ggrell
ggrell deleted the claude/migrate-danger-kotlin-9ncWB branch March 30, 2026 18:56
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