From 380dcccfe575683e1981aadb7ba693039e7972d4 Mon Sep 17 00:00:00 2001 From: Artyom Andreev Date: Wed, 14 Feb 2024 17:09:36 +0300 Subject: [PATCH] Update arguments of API for custom linters in README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index be78034a..c52ec11b 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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