Skip to content

Commit 7f2c8e8

Browse files
committed
Updated readme to document resharper support
1 parent 6f2e6a5 commit 7f2c8e8

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ git clone \
3333
- If using [vim-plug][3]: `Plug 'mfussenegger/nvim-lint'`
3434
- If using [packer.nvim][4]: `use 'mfussenegger/nvim-lint'`
3535

36-
3736
## Usage
3837

3938
Configure the linters you want to run per file type. For example:
@@ -52,7 +51,6 @@ will be picked up in that buffer. This is useful for linters like
5251
[actionlint][actionlint] in combination with `vim.filetype` patterns like
5352
`[".*/.github/workflows/.*%.yml"] = "yaml.ghaction",`
5453

55-
5654
Then setup a `autocmd` to trigger linting. For example:
5755

5856
```vimL
@@ -80,11 +78,9 @@ Some linters require a file to be saved to disk, others support linting `stdin`
8078
input. For such linters you could also define a more aggressive `autocmd`, for
8179
example on the `InsertLeave` or `TextChanged` events.
8280

83-
8481
If you want to customize how the diagnostics are displayed, read `:help
8582
vim.diagnostic.config`.
8683

87-
8884
## Available Linters
8985

9086
There is a generic linter called `compiler` that uses the `makeprg` and
@@ -195,6 +191,7 @@ Other dedicated linters that are built-in are:
195191
| [quick-lint-js][quick-lint-js] | `quick-lint-js` |
196192
| [redocly][redocly] | `redolcy` |
197193
| [regal][regal] | `regal` |
194+
| [resharper][resharper] | `resharper` |
198195
| [Revive][14] | `revive` |
199196
| [rflint][rflint] | `rflint` |
200197
| [robocop][robocop] | `robocop` |
@@ -249,7 +246,6 @@ Other dedicated linters that are built-in are:
249246
You can register custom linters by adding them to the `linters` table, but
250247
please consider contributing a linter if it is missing.
251248

252-
253249
```lua
254250
require('lint').linters.your_linter_name = {
255251
cmd = 'linter_cmd',
@@ -273,7 +269,6 @@ generate some of the properties.
273269
- `bufnr`
274270
- `linter_cwd`
275271

276-
277272
The `output` is the output generated by the linter command.
278273
The function must return a list of diagnostics as specified in `:help
279274
diagnostic-structure`.
@@ -300,7 +295,6 @@ parser = require('lint.parser').from_errorformat(errorformat)
300295

301296
The function takes two arguments: `errorformat` and `skeleton` (optional).
302297

303-
304298
### from_pattern
305299

306300
Creates a parser function from a pattern.
@@ -319,7 +313,6 @@ The function allows to parse the linter's output using a pattern which can be ei
319313
from the linter output and must return a string array with the matches. The
320314
array should be empty if there was no match.
321315

322-
323316
### groups
324317

325318
The groups specify the result format of the pattern.
@@ -348,7 +341,7 @@ The captures in the pattern correspond to the group at the same position.
348341

349342
A mapping from severity codes to diagnostic codes
350343

351-
``` lua
344+
```lua
352345
default_severity = {
353346
['error'] = vim.diagnostic.severity.ERROR,
354347
['warning'] = vim.diagnostic.severity.WARN,
@@ -374,7 +367,6 @@ Additional options
374367
- `end_col_offset`: offset added to `end_col`. Defaults to `-1`, assuming
375368
that the end-column position is exclusive.
376369

377-
378370
## Customize built-in linters
379371

380372
You can import a linter and modify its properties. An example:
@@ -400,7 +392,6 @@ lint.linters.cspell = require("lint.util").wrap(lint.linters.cspell, function(di
400392
end)
401393
```
402394

403-
404395
## Display configuration
405396

406397
See `:help vim.diagnostic.config`.
@@ -413,7 +404,6 @@ local ns = require("lint").get_namespace("my_linter_name")
413404
vim.diagnostic.config({ virtual_text = true }, ns)
414405
```
415406

416-
417407
## Get the current running linters for your buffer
418408

419409
You can see which linters are running with `require("lint").get_running()`.
@@ -429,17 +419,14 @@ local lint_progress = function()
429419
end
430420
```
431421

432-
433422
## Alternatives
434423

435424
- [Ale][1]
436425
- [efm-langserver][6]
437426
- [diagnostic-languageserver][7]
438427

439-
440428
## Development ☢️
441429

442-
443430
### Run tests
444431

445432
Running tests requires [busted][busted].
@@ -607,3 +594,4 @@ busted tests/
607594
[twig-cs-fixer]: https://github.com/VincentLanglet/Twig-CS-Fixer
608595
[fortitude]: https://github.com/PlasmaFAIR/fortitude
609596
[redocly]: https://redocly.com/docs/cli/commands/lint
597+
[resharper]: https://www.jetbrains.com/help/resharper/ReSharper_Command_Line_Tools.html

0 commit comments

Comments
 (0)