Conversation
|
Kudos, SonarCloud Quality Gate passed!
|
|
|
||
| TBU | ||
| Apply this plugin with the `com.android.application` plugin or `com.android.library` plugin to your project, | ||
| then [`SpotBugsTask`](https://spotbugs-gradle-plugin.netlify.com/com/github/spotbugs/snom/spotbugstask) will be generated for each existing variant. |
There was a problem hiding this comment.
I'd just like to point out that the tasks are only created for the production code variants on the Android projects. In Java projects, both production and test source sets gets corresponding tasks. It's relatively easy to do the same thing for Android projects.
There was a problem hiding this comment.
It would be better to do it 👍, could you suggest the change making it possible?
I guess we need to use TestExtension, AppExtension#testVariants or AppExtension#unitTestVariants but not so sure.
|
@KengoTODA You moving forward on this? Its been 3 years :) |
|
Still waiting for help from community... I'm not Android dev so I can't make a progress on this topic by my own. Hope that somebody will help us at the pinned issue #90 |
|
There was a problem hiding this comment.
Pull request overview
This PR completes the Android support documentation by marking the Android project checkbox as complete and adding usage instructions for applying SpotBugs to Android projects. This follows PR #252 which introduced Android Gradle Plugin support and closes issue #90.
Changes:
- Marked the Android project support checkbox as complete in the goals list
- Added documentation section explaining how to apply the SpotBugs plugin to Android projects, including instructions for automatic task generation and manual configuration options
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| TBU | ||
| Apply this plugin with the `com.android.application` plugin or `com.android.library` plugin to your project, | ||
| then [`SpotBugsTask`](https://spotbugs-gradle-plugin.netlify.com/com/github/spotbugs/snom/spotbugstask) will be generated for each existing variant. |
There was a problem hiding this comment.
The URL for SpotBugsTask documentation has two issues:
- The base URL uses
spotbugs-gradle-plugin.netlify.comwhile other SpotBugsTask references in the file (lines 127 and 140) usespotbugs.github.io/spotbugs-gradle-plugin/spotbugs-gradle-plugin - The path uses
spotbugstask(all lowercase) while line 127 uses-spot-bugs-task(with proper kebab-case)
For consistency with the rest of the README, this should match the URL format used in line 127.



#252 introduced android plugin support, then we can check the last checkbox in
README.md.This PR also add a short description about the usage of this plugin for Android project.
close #90