Giter Site home page Giter Site logo

Comments (7)

originx avatar originx commented on May 20, 2024

should we do it in this PR or a new one?
@leinardi what does the change affect?

#32
@Tapchicoma

from ktlint-gradle.

leinardi avatar leinardi commented on May 20, 2024

@originx I think a new one is better. The changes are not in the method touched by #32.
But before creating one I'd like to hear from @Tapchicoma or @JLLeitschuh if they are interested in this.

from ktlint-gradle.

JLLeitschuh avatar JLLeitschuh commented on May 20, 2024

I don't personally use the output report.

I'd say that we should make the output configurable on the task but keep the default a sane configuration.

from ktlint-gradle.

Tapchicoma avatar Tapchicoma commented on May 20, 2024

It is a good idea, though checkstyle, for example, doesn't do this. It just aggregates everything in one file. Also this is more Android specific, though Gradle start to introduce SoftwareModel that will allow to have flavors on the plain Kotlin projects.

Also this feature should be configurable and disabled by default.

from ktlint-gradle.

leinardi avatar leinardi commented on May 20, 2024

With the current implementation if you run different tasks the output will be always the same file, and this file will be overwritten every time and not merged automatically. So, currently, you loose the report of all the tasks but the last executed.

I don't see what is the benefit of having it disabled by default. It will be useful if you execute different tasks and nothing will change if you only have one beside the name of the file itself.

The file is generate only for the tasks that you are actually executing and not for every variant you have.

In my example I have dozens of variants but I only run two tasks: ktlintNonpayItalyCompatDebugCheck and ktlintNonpayMexicoCompatDebugCheck.

from ktlint-gradle.

leinardi avatar leinardi commented on May 20, 2024

OK, I fear I've been misunderstood: I don't want to enable anything new related to the report output, I just want to generate the file name for the output in a different way. To make it more clear I have opened a pull request with my changes. This should have zero impact on non Android builds beside changing the name from reports/ktlint/ktlint.xml to reports/ktlint-reports-main.xml.

@Tapchicoma, @JLLeitschuh please have a look and if you have questions just let me know.

from ktlint-gradle.

Tapchicoma avatar Tapchicoma commented on May 20, 2024

Closed via #22

from ktlint-gradle.

Related Issues (20)

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.