DevWeave logoDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
commons-app/apps-android-commons #7502openKotlinOpen-Source Beginners

Detekt: shorten long methods in WikidataFeedback, ReviewImageFragment and PlaceAdapterDelegate (3 findings)

Opened by @nicolas-raoul · Assignees: @Medhansh-741

View on GitHub
good first issuecode-quality

Solve & Merge Reward: Up to +271 XP & +60 Coins

+30 XP on PR open · +180 XP & +60 coins on merge · +61 star XP (1,221 stars)

1,221 GitHub Stars

Claim Status & GitHub Signal

Assigned on GitHub (@Medhansh-741). Check recent comments before starting duplicate work.

AI Issue Assessment · Grounded Analyzer
2.8 / 10 · 3–4 · Beginner

Estimated from issue labels (good first issue, code-quality), Kotlin context, and discussion depth. There are 3 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.

What It's About

Detekt: shorten long methods in WikidataFeedback, ReviewImageFragment and PlaceAdapterDelegate (3 findings). Part of the Detekt static analysis clean-up, split out of 7062. Difficulty: Starter. Three set-up methods that are only a little over the limit. Good for a first contribution. Findings to fix - [PlaceAdapterDelegate.placeAdapterDelegate](https://github.com/com

Why It Matters

Resolving #7502 improves reliability and developer experience in commons-app/apps-android-commons.

Expected Outcome

A focused pull request addressing #7502 with relevant checks or tests verified locally.

Skill Match Breakdown

Log in to compare this issue's requirements against your profile skills. Required concepts: HTTP & REST APIs.

Progressive AI Hints

Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted

No Boot.dev course directly matches your missing Kotlin gaps (HTTP & REST APIs, Kotlin), so DevWeave won't pad with an unrelated language course.

Browse Boot.dev Catalog
Hands-On CodeCrafters Practice
Skill-Gap Challenge
Build your own HTTP Server
Python

Handle raw TCP connections, HTTP parsing, headers, and concurrent routes.

Practice skill gap: HTTP & REST APIs

Build your own Redis
Python

Create a TCP event loop, RESP protocol parser, and TTL key-value cache.

Practice skill gap: HTTP & REST APIs

Issue Description

Part of the Detekt static analysis clean-up, split out of #7062.

Difficulty: Starter. Three set-up methods that are only a little over the limit. Good for a first contribution.

Findings to fix

  • PlaceAdapterDelegate.placeAdapterDelegate: LongMethod: 73 lines (maximum 60)
  • ReviewImageFragment.onCreateView: LongMethod: 82 lines (maximum 60)
  • WikidataFeedback.onCreate: LongMethod: 84 lines (maximum 60)

Steps

  1. Delete the matching <ID>...</ID> lines from app/detekt-baseline.xml (only the ones listed above).
  2. Run ./gradlew :app:detekt to see the exact locations.
  3. Fix the findings in code, without changing behaviour. Add or extend unit tests covering the refactored methods.
  4. Do not add @Suppress or new baseline entries. If keeping a method as it is really makes more sense, say why in the pull request.
  5. Run ./gradlew :app:ktlintCheck :app:detekt testBetaDebugUnitTest and check that everything passes.
  6. Test the affected screens on a device and describe what you tested.
  7. Open a pull request with Fixes #<this issue> in its description.

Part of #7062. Please ask to be assigned here before starting.

Linked Pull Requests (0)

No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.

GitHub Comments (3)

@Medhansh-741CONTRIBUTOR
View comment →

@nicolas-raoul i'd like to take this

@github-actions[bot]
View comment →

Hi @Medhansh-741! You have been assigned to this issue. ✨

@Medhansh-741CONTRIBUTOR
View comment →

@nicolas-raoul opened #7521 for this.

Peer Help Forum · commons-app/apps-android-commons #7502

Issue Troubleshooting Threads (0)

Ask Peers for Help

No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.

PR Verification & Rewards

Sign in and link GitHub to verify your PR against this issue and earn XP + coins.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

.editorconfig
[dir] .github
[dir] .github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE/bug-report.yml
.github/ISSUE_TEMPLATE/feature-request.yml
.github/ISSUE_TEMPLATE/feedback.yml
.github/ISSUE_TEMPLATE/need-help.yml
.github/PR_SCOPE_CHECK.md
.github/PULL_REQUEST_TEMPLATE.md
[dir] .github/agents
.github/agents/pr-agent.md
[dir] .github/scripts
.github/scripts/ai-scope-check.sh
[dir] .github/workflows
.github/workflows/android.yml
.github/workflows/auto_assign.yml
.github/workflows/build-beta.yml
.github/workflows/comment_artifacts_on_PR.yml
.github/workflows/guide_new_contributors.yml
.github/workflows/inactivity-manager.yml
.github/workflows/pull_request_unrelated_changes.yml
.github/workflows/suggest_duplicate_bug.yml
.github/workflows/welcome_new_contributors.yml
.gitignore

CONTRIBUTING.md Excerpt

Thanks for considering to contribute to this project! A few guidelines for people who want to contribute their code to this software are documented in this project's Wiki. If you're not sure where to start head on to this wiki page.

Here's a gist of the guidelines,

  1. Make separate commits for logically separate changes

  2. Describe your changes well in the commit message

The first line of the commit message should be a short description of what has changed. It is also good to prefix the first line with "area: " where the "area" is a filename or identifier for the general area of the code being modified. The body should provide a meaningful commit message.

  1. Write Javadocs

    We require contributors to include Javadocs for all new methods and classes submitted via PRs (after 1 May 2018). This is aimed at making it easier for new contributors to dive into our codebase, especially those who are new to Android development. A few things to note:

    • This should not replace the need for code that is easily-readable in and of itself
    • Please make sure that your Javadocs are reasonably descriptive, not just a copy of the method name
    • Please do not use @author tags - we aim for collective code ownership, and if needed, Git allows us to see who wrote something without needing to add these tags (git blame)
  2. Write tests for your code (if possible)

  3. Make sure the Wiki pages don't become stale by updating them (if needed)

  4. Document every new string for translators

    When you add a string to app/src/main/res/values/strings.xml or values/error.xml, add a non-empty entry with the same name to the file of the same name in app/src/main/res/values-qq/. That folder is not a language: translatewiki.net shows it to translators next to the English text, and they usually translate without seeing the app. If you change what a string means, or add or remove a placeholder, update its qq entry too. If you remove a string, remove its qq entry. Strings with translatable="false" don't need one. CI checks all of this.

    A good qq entry says:

    • where the text shows up and what it is (screen title, button, dialog,

... (truncated)

Advisory PR Assistant

Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.