Giter Club home page Giter Club logo

Comments (15)

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024 1

Sounds good y'all. A while back I refactored a bunch of stuff to make plugins (or I guess config) possible. But never actually did step 2 of making the plugin setup (or config file).

At this point im mostly a maintainer rather than actively developing this. Triaging and reviewing. So if yall go for it absolutely go for it :-)

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

Part of 'solving' this issue is that diff-quality needs a plugin system rather than just embedding each tool

from diff_cover.

radowit avatar radowit commented on July 22, 2024

Maybe a config file would be enough?
Tool configuration consists only of three strings after all (in most cases).

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

@dreamwalker is is true for many tools. But pylint, for example, needs more than that. Other tools may do all sort of wild things.

from diff_cover.

radowit avatar radowit commented on July 22, 2024

So, maybe two solutions? Plugins for complex cases, config for simplier?
We could then move the current configs to example config files.
Also - as I can see, pylint needs additional code because of multi-line violations. Maybe we could move it to the main class to support other checkers with this kind of logs?
And by we I mean I also can do it :) (e.g. during this weekend).

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

Perhaps! I have not moved forward on this because I have not needed any additional checkers. If you got the drive to whip something up ill absolutely look at it and consider merging it in.

I suspect we may have to leave the existing items in as is to we dont break things for existing users. But who knows!

from diff_cover.

lyndsysimon avatar lyndsysimon commented on July 22, 2024

Let me know if I can help - I have diff-cover working with Rails projects, using simplecov and simplecov-cobertura.

from diff_cover.

dcw312 avatar dcw312 commented on July 22, 2024

Does the tool work on Java code? Can we clearly call that out on the README?

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

The tool should work on Java code.

I think the readme/docs need an overhaul as a lot has been added and I think the docs could use some love

from diff_cover.

dcw312 avatar dcw312 commented on July 22, 2024

If I do try it with my Java code, I’ll submit a pr. Thanks for sharing this code!

from diff_cover.

barrywhart avatar barrywhart commented on July 22, 2024

I'm helping with the testing, documentation, and development of a SQL linter package called SQLFluff. It is implemented in Python. Would you consider merging a PR to add support for it in diff-quality?

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

from diff_cover.

barrywhart avatar barrywhart commented on July 22, 2024

Thanks! I will also look into implementing a plugin system. I have used a package called Pluggy which makes this pretty easy.

from diff_cover.

barrywhart avatar barrywhart commented on July 22, 2024

Can this ticket be closed now?

from diff_cover.

Bachmann1234 avatar Bachmann1234 commented on July 22, 2024

Closing this with https://pypi.org/project/diff-cover/2.5.0/ thanks @barrywhart

from diff_cover.

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.