Git Product home page Git Product logo

drakklord / gradle-android-metric-plugin Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 156 KB

Plugin for Android Studio that can collect and show code metric infromation from Gradle plugins, such as PMD, Checkstyle

Home Page: https://plugins.jetbrains.com/plugin/9196-android-gradle-metrics

License: Apache License 2.0

Batchfile 0.03% Java 99.97%
android android-studio checkstyle codemetrics gradle inspection intellij-plugin plugin pmd staticanalysis

gradle-android-metric-plugin's People

Contributors

drakklord avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

gradle-android-metric-plugin's Issues

Checkstyle executes and generate the report but the plugin fails to collect the data

I have the following configuration on my build.gradle:

apply plugin: 'com.android.application'
apply plugin: 'android-checkstyle'

checkstyle {
    toolVersion = '7.6'
}

tasks.withType(Checkstyle) {
    ignoreFailures = true
    showViolations = false
    source 'src/main', 'src/release', 'src/debug'
    include '**/*.java'
    exclude '**/gen/**'
    exclude '**/R.java'
    exclude '**/BuildConfig.java'
    reports {
        xml.enabled true
        xml {
            destination "${project.buildDir.absolutePath}/reports/checkstyle/checkstyle-report.xml" // this is okay
        }
        html.enabled true
        html {
            destination "${project.buildDir.absolutePath}/reports/checkstyle/checkstyle-report.html"
        }
    }
    classpath = files()
    configFile = file("config/checkstyle/checkstyle.xml")

    configProperties.lineWidth = 120
}

If I manually run the checkstyle task, it generates the report as expected.

If I call the Analyze->Get code metrics report, I get the following:


5:53 PM	Gradle build finished in 7s 43ms

5:53 PM	Gradle code metrics: collection error >> file element is not part of the project in checkstyle report : /Volumes/Workspace/HelixTrails/src/HelixAndroid/app/build/reports/checkstyle/checkstyle-report.xml

5:53 PM	Android-Gradle metric plugin: report collection failed : Checkstyle

5:53 PM	Android-Gradle metric plugin: result collection failed```

I'm using AndroidStudio 3.0.1
Gradle v4.6
AndroidGradlePlugin v3.0.0

I also tried to change:

```apply plugin: 'android-checkstyle'```

to:

```apply plugin: 'checkstyle'```

And it gets even worst. The checkstyle tasks are not even created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.