Skip to content

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

@gregswindle

Description

@gregswindle

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:

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions