Skip to content

Commit

Permalink
chore: add info on case-sensitivity of sources
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 22, 2023
1 parent c406c3e commit a1d8245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ You easily add a custom source via the [plugin configuration](#configuration). T
<!-- INFO use `make update_readme` to automatically update this section -->
<!-- auto-generated: start -->
### Rule Lookup
- `Lua Diagnostics`
- `eslint`
- `shellcheck`
- `biome`
- `selene`
- `pylint`
- `yamllint`
- `stylelint`
- `Lua Diagnostics`

### Add Ignore Comments
- [eslint](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1)
Expand Down
2 changes: 2 additions & 0 deletions lua/rulebook/rule-data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local M = {}
-- one to be inserted after. (prevLine or sameLine comments are obviously
-- preferred, but some linters to do support that.)

---INFO the key must be named exactly like diagnostic.source (case-sensitive!)
---@type table<string, ruleIgnoreConfig>
M.ignoreComments = {
shellcheck = {
Expand Down Expand Up @@ -71,6 +72,7 @@ M.ignoreComments = {

--------------------------------------------------------------------------------

---INFO the key must be named exactly like diagnostic.source (case-sensitive!)
-- "%s" will be replaced with the rule id
---@type table<string, string>
M.ruleDocs = {
Expand Down

0 comments on commit a1d8245

Please sign in to comment.