Skip to content

Commit ad83c4c

Browse files
committed
Add a security blurb warning about local cmd execution to readme
1 parent ca6ea12 commit ad83c4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ example on the `InsertLeave` or `TextChanged` events.
8484
If you want to customize how the diagnostics are displayed, read `:help
8585
vim.diagnostic.config`.
8686

87+
## Security
88+
89+
Some linters prioritize using an executable relative to the current working
90+
directory over the executable in `$PATH`. For example the `eslint` linter will
91+
use `./node_modules/.bin/eslint` if it exists. The executable is executed with
92+
your users permission. Because of that, you must _not_ call `try_lint()` in
93+
untrusted repositories.
8794

8895
## Available Linters
8996

0 commit comments

Comments
 (0)