Code Monkey home page Code Monkey logo

Comments (4)

danvk avatar danvk commented on June 21, 2024 1

Did you try creating a custom reporter that is vscode problemMatchers friendly ?

That's what this issue is proposing :) I haven't taken a crack at it myself yet.

from knip.

webpro avatar webpro commented on June 21, 2024

The output format of knip isn't the best for parsing.

Did you see the JSON reporter? https://knip.dev/features/reporters#json

This works pretty well:

Nice! Great to see Knip used like this.

there aren't line numbers for the unused devDependencies

That's a good RFC.

So call this a feature request for a new reporter that's compatible with one of VS Code's built-in problem matchers, for example "tsc" or "eslint".

What would be the best way to go about this? Use the JSON reporter as a basis, or implement a new reporter for VS Code? Either way, I'll try to read up on the topic a bit more when I can, I'm not familiar with this part of VS Code at all.

Anybody reading this, definitely feel free to pick this up, might be a fun task.

from knip.

danvk avatar danvk commented on June 21, 2024

The output format of knip isn't the best for parsing.

Did you see the JSON reporter? https://knip.dev/features/reporters#json

Yes! You'd think JSON output would be perfect for consuming from another tool, but so far as I can tell VS Code problemMatchers really want line-based output.

This works pretty well:

Nice! Great to see Knip used like this.

there aren't line numbers for the unused devDependencies

That's a good RFC.

Want me to file an issue for this?

So call this a feature request for a new reporter that's compatible with one of VS Code's built-in problem matchers, for example "tsc" or "eslint".

What would be the best way to go about this? Use the JSON reporter as a basis, or implement a new reporter for VS Code? Either way, I'll try to read up on the topic a bit more when I can, I'm not familiar with this part of VS Code at all.

Anybody reading this, definitely feel free to pick this up, might be a fun task.

I'd suggest implementing a new reporter that outputs in the exact same format as eslint, tsc or some other tool that VS Code has a built-in matcher for.

from knip.

beaussan avatar beaussan commented on June 21, 2024

Yes! You'd think JSON output would be perfect for consuming from another tool, but so far as I can tell VS Code problemMatchers really want line-based output.

Did you try creating a custom reporter that is vscode problemMatchers friendly ?

from knip.

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.