Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: introduce how to use SpotBugs in the Android project #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KengoTODA
Copy link
Member

#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

@KengoTODA KengoTODA self-assigned this Jun 6, 2020
@sonarcloud
Copy link

sonarcloud bot commented Jun 6, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@@ -73,7 +73,10 @@ If you want to create and configure `SpotBugsTask` by own, apply the base plugin

### Apply to Android project

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

@hazendaz
Copy link
Member

@KengoTODA You moving forward on this? Its been 3 years :)

@KengoTODA
Copy link
Member Author

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

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.

Unable to use Spotbugs in Android application
3 participants