Skip to content

Commit

Permalink
chore: minor comments and docs phrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 21, 2023
1 parent 43f0f1c commit 6a2364c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Most LSPs provide code actions for to do that – this plugin adds commands for
- Requires diagnostics provided by a source that supports neovim's builtin diagnostics system (`vim.diagnostic`). nvim's builtin LSP client and [nvim-lint](https://github.com/mfussenegger/nvim-lint) are such sources.

## Supported Linters for adding ignore-comments
<!-- AUTO-GENERATED – DO NOT CHANGE -->
<!-- TODO: AUTO-GENERATED this list -->
<!-- supported-linters start -->
- selene
- shellcheck
Expand Down Expand Up @@ -69,8 +69,8 @@ defaultConfig = {
comment = "-- selene: allow(%s)",
location = "prevLine",
},
-- full list of builtin-linters found in README
yourLinter = {
-- full list of builtin linters found in README
yourCustomSource = {
-- %s will be replaced with rule-id
-- if location is "encloseLine", needs to be a list of two strings
comment = "// disabling-comment %s",
Expand Down
4 changes: 2 additions & 2 deletions lua/rule-breaker/ignoreRuleData.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---@class ruleIgnoreConfig
---@field comment string|string[] with %s for the rule id
---@field comment string|string[] "%s" will be replaced with the rule id
---@field location "sameLine"|"prevLine"|"encloseLine"
---@field docs? string url to documentation elaborating how ignore comments work for the linter
---@field docs? string only needed for auto-generated docs

-- INFO "encloseLine" is a list with two strings, one to be inserted before and
-- one to be inserted after. (prevLine or sameLine comments are obviously
Expand Down

0 comments on commit 6a2364c

Please sign in to comment.