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

Create android-lib:pmd sub-generator that sends reports to Codacy #5

Open
gregswindle opened this issue Apr 27, 2017 · 0 comments
Open

Comments

@gregswindle
Copy link
Owner

gregswindle commented Apr 27, 2017

User story

As an engineer,
I need to assess the quality of my Android library with PMD
In order to address potential problems as soon as possible.

Acceptance criteria

  1. Provide the option to include PMD static code analysis.
  2. Add the gradle PMD plugin to quality-gates.gradle.
  3. Apply/add PMD Android rules.
  4. Send PMD reports to Codacy.

Expected Behavior

CodeClimate reports on:

  • Possible bugs - empty try/catch/finally/switch statements
  • Dead code - unused local variables, parameters and private methods
  • Suboptimal code - wasteful String/StringBuffer usage
  • Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
  • Duplicate code - copied/pasted code means copied/pasted bugs

Current Behavior

Possible Solution

Context

PMD reports on CodeClimate would be a feature of generator-android-lib.

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:
@gregswindle gregswindle self-assigned this Apr 27, 2017
@gregswindle gregswindle changed the title Create android-lib:pmd sub-generator that sends reports to CodeClimate Create android-lib:pmd sub-generator that sends reports to Codacy Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant