Giter Club home page Giter Club logo

Comments (4)

cortinico avatar cortinico commented on May 20, 2024 1

It's only possible way to clean baseline: do it manually or set maxIssues = 0 and set issues weight to 0, then run baseline.

In general for baseline, you want to just re-generate them. What's the point of adding yet another task for us to maintain when you can already achieve the same result?

from detekt.

3flex avatar 3flex commented on May 20, 2024 1

This is too specific so I agree that we shouldn't add this feature.

The idea with the baseline is to generate then regenerate as issues are fixed - and that new issues are not introduced to the baseline once it's been established.

from detekt.

dzmpr avatar dzmpr commented on May 20, 2024

What's the point of adding yet another task for us to maintain when you can already achieve the same result?

If there are new issues that weight set 0 – they would appear in regenerated baseline.
As I said it might be just a flag, which excludes new issues from baseline, not a new task.

from detekt.

BraisGabin avatar BraisGabin commented on May 20, 2024

I also agree that we don't want this by default.

Some extra thoughts:

  • the weight concept is not going to exist on 2.0. We introduced the severity that should fulfill the same use cases.
  • if you really want this feature you can implement it yourself. The Detekt api is extensible and this should be easily doable. Even the default baseline is implemented using this extensible api.

from detekt.

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.