Comments (15)
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.
Part of 'solving' this issue is that diff-quality needs a plugin system rather than just embedding each tool
from diff_cover.
Maybe a config file would be enough?
Tool configuration consists only of three strings after all (in most cases).
from diff_cover.
@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.
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.
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.
Let me know if I can help - I have diff-cover
working with Rails projects, using simplecov
and simplecov-cobertura
.
from diff_cover.
Does the tool work on Java code? Can we clearly call that out on the README?
from diff_cover.
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.
If I do try it with my Java code, I’ll submit a pr. Thanks for sharing this code!
from diff_cover.
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.
from diff_cover.
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.
Can this ticket be closed now?
from diff_cover.
Closing this with https://pypi.org/project/diff-cover/2.5.0/ thanks @barrywhart
from diff_cover.
Related Issues (20)
- In cpp file,The coverage of changed lines is not being counted HOT 2
- any ways to get all measured lines' numbers from json report HOT 2
- Feature request — Invert output to find flaky tests and help determine test failures HOT 1
- does this tool support C++ opencppcoverage? cppcoverage has html, cobertura reports. HOT 1
- urgent!! work environment!!No lines with coverage information in this diff. HOT 2
- new Github action for diff-cover HOT 1
- There is a folder code that cannot be counted. It has been analyzed for a long time, please help HOT 1
- 5 tests fail HOT 2
- Package has classifier "License :: Other/Proprietary License" - raising licensing flags for Sonatype HOT 3
- Enhancing Report Visualization in 'diff-cover' Project for Improved Code Analysis HOT 2
- 7.7.0: pytest is failing in `tests/test_violations_reporter.py::TestFlake8QualityReporterTest::test_file_does_not_exist` unit HOT 33
- Support ruff for quality checking HOT 1
- diff everything on removal HOT 11
- Diff between two coverage files instead of coverage file from branch HOT 2
- Running diff-quality with a tool which is not installed gives FIleNotFoundError rather than helpful "<tool> is not installed" error message HOT 2
- Add support for Pyright as a quality-checking tool HOT 2
- A little suggest about supporting Windows system commands
- How to show the covered line in the diff coverage html report? HOT 1
- 2 tests fail HOT 1
- No lines with coverage information in this diff. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diff_cover.