GithubHelp home page GithubHelp logo

Comments (5)

lourenci avatar lourenci commented on July 30, 2024 5

I'm all for it.

I'll use this plugin as soon as it gets support for eslint. :)

from nvim-lint.

mfussenegger avatar mfussenegger commented on July 30, 2024 2

Yeah I actually reviewed my config and I don't really use this anymore

😀
In any case, it shouldn't be too difficult to support running multiple linters per filetype.

re: which linters to add, I was wondering if we could have something similar to efm/diagnosticls where the linter can be configured (along with some pattern to parse lines. not sure if that would work perfectly. Could also have a lower level API where the parser can be specified as a function, but I imagine most people would be ok with specifying a regexp/pattern?

Yes I had something like that in mind. The low-level API will operate on chunks and have a done method but there will be some factory functions to help generate a parser. A linter definition would then look somehow like this.

linter = {
  cmd = 'some_linter_cmd',
  args = {},
  parser = require('lint.parser').from_pattern('...')
}

Not sure yet how exactly this will look like but that's the general idea.

from nvim-lint.

mfussenegger avatar mfussenegger commented on July 30, 2024 1

With 0b99d4d running multiple linters should now work. (Though given that it turned out that I don't really like the languagetool results and there's otherwise now only vale available I didn't test it much)

Having a from_pattern factory for parsers is still on the TODO because vale also supports json output and that seemed easier to use.

from nvim-lint.

mfussenegger avatar mfussenegger commented on July 30, 2024

Good that you bring it up, I was actually wondering if that is something that should be supported :)

Do you have a concrete case in mind where you'd use multiple linters?
I also wonder which linters I should add first.

from nvim-lint.

fsouza avatar fsouza commented on July 30, 2024

Yeah I actually reviewed my config and I don't really use this anymore 🙈 I used to use mypy & flake8 for Python in the past though (mypy and any other typecheckers can be more difficult though, because they'll publish diagnostics for other files too, not just the one being "linted").

re: which linters to add, I was wondering if we could have something similar to efm/diagnosticls where the linter can be configured (along with some pattern to parse lines. not sure if that would work perfectly. Could also have a lower level API where the parser can be specified as a function, but I imagine most people would be ok with specifying a regexp/pattern?

from nvim-lint.

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.