Skip to content

Commit

Permalink
Update arguments of API for linters in README.md (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtAndreev authored Feb 14, 2024
1 parent 966ab3d commit 889dc0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ Instead of declaring the linter as a table, you can also declare it as a
function which returns the linter table in case you want to dynamically
generate some of the properties.

`your_parse_function` can be a function which takes two arguments:
`your_parse_function` can be a function which takes three arguments:

- `output`
- `bufnr`
- `linter_cwd`


The `output` is the output generated by the linter command.
Expand All @@ -246,7 +247,7 @@ using the function in the `lint.parser` module:
parser = require('lint.parser').from_errorformat(errorformat)
```

The function takes a single argument which is the `errorformat`.
The function takes two arguments: `errorformat` and `skeleton` (optional).


### from_pattern
Expand Down

0 comments on commit 889dc0a

Please sign in to comment.