Code Monkey home page Code Monkey logo

okcheck's Issues

求助:配置不对吗?

image
配置入上图;
插件版本
classpath 'com.liulishuo.okcheck:gradle:0.2.0'

错误信息:
image


去掉

exclude = ['**/proto/*.java']
destination = project.rootProject.buildDir

错误信息:
image

我是不是哪儿用的不对?

.okcheck folder dir is not create

static String okcheckHomePath(Project project) {
File firstCandidate = new File(project.rootProject.absoluteProjectPath("/.okcheck")) //:.okcheck
if (firstCandidate.exists()) return firstCandidate.absolutePath

    return "${System.getProperty("user.home")}/.okcheck"  
}

//here is false forever
private static boolean isFirstBlood(Project project) {//okcheck is exist
String projectHomePath = "${ChangeFile.okcheckHomePath(project)}/${project.rootProject.name}"
// not exist means first time to invoke okcheck(maybe just clean time).
return !new File(projectHomePath).exists()
}

incrementalLint invalidate for def inputFiles = Util.getAllInputs(project)

def inputFiles = Util.getAllInputs(project) //where change file?

    project.task(getTaskName(flavor, buildType), type: OkLint) {
        dependsOn getOriginTaskName(flavor, buildType)
        inputs.files(inputFiles)
        outputs.file(outputFile)

        setGroup("verification")
        if (flavor.length() <= 0 && buildType.length() <= 0) {
            setDescription("Run lint incremental for all variants")
        } else {
            setDescription("Run lint incremental for $flavor$buildType build.")
        }
    }

    String originTaskName = getOriginTaskName(flavor, buildType)//lint
    Set<Task> originTasks = project.getTasksByName(originTaskName, false)
    Task originTask = null
    if (originTasks != null && originTasks.size() > 0) originTask = originTasks[0]
    if (originTask == null) {
        project.tasks.whenTaskAdded { task ->
            if (task.name == originTaskName) {
                if (incrementalLint) addIncrementalAndReport(project, task, inputFiles, outputFile)
            }
        }
    } else {
        if (incrementalLint) addIncrementalAndReport(project, originTask, inputFiles, outputFile) //where change file?
    }

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.