Comments (5)
I'm all for it.
I'll use this plugin as soon as it gets support for eslint. :)
from nvim-lint.
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.
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.
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.
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)
- Linting & stdin -- workaround
- Bug and touch-ups for trivy v0.51.2 (with a proposed fix) HOT 2
- Actionlint lints all YAML files HOT 2
- Linter with name `markdownlint-cli2` not available HOT 1
- Can't make oxlint work HOT 1
- flake8 config not recognized HOT 2
- Configuration for `selene` HOT 5
- ktlint: Parser failed. <...> Expected value but found invalid token at character 1
- `ansible-lint` not available HOT 1
- Provide Mechanism to Disable Linter in Neo-Tree Buffer HOT 1
- eslint_d unable to recognize the 9.x version of the configuration file HOT 5
- HELP: Looking for a way to toggle a specific linter HOT 2
- nvim-lint can't find Mason installed pylint HOT 1
- (eslint) Question: How to hide names of rules? HOT 1
- QUESTION: how are linters found? HOT 2
- HELP: is ansible-lint working? HOT 1
- mypy not running in the context of nvim-lint with pyproject.toml settings. HOT 1
- nvim-lint to identify traceback errors and show inlayed hints using mypy HOT 1
- PHPInsights parse error
- feature request: from_patterns 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 nvim-lint.