Skip to content

Commit

Permalink
ci: fix readme auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Nov 17, 2024
1 parent ade184b commit 11bdac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ missing.
- [Ruff](https://docs.astral.sh/ruff/linter/#error-suppression)
- [alex](https://github.com/get-alex/alex#control)
- [basedpyright](https://microsoft.github.io/pyright/#/comments)
- [biome](https://biomejs.dev/linter/#ignoring-code)
- [biome](https://biomejs.dev/linter/#ignore-code)
- [clang-tidy](https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics)
- [codespell](https://github.com/codespell-project/codespell/issues/1212#issuecomment-1721152455)
- [editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker#excluding-lines)
Expand Down
8 changes: 4 additions & 4 deletions lua/rulebook/_update-readme.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- INFO has to be run from lua subdirectory when called via `nvim -l`
-- `cd lua && nvim -l rulebook/update-readme.lua`
-- `cd lua && nvim -l rulebook/_update-readme.lua`
-- (it is not indented to be used for other purposes)
--------------------------------------------------------------------------------

Expand Down Expand Up @@ -49,7 +49,7 @@ for source, _ in pairs(ruleDocs) do
end
table.sort(ruleDocsSources)

local ignoreComments = require("rulebook.data.add-ignore-comment")
local ignoreComments = require("rulebook.data.add-ignore-rule-comment")
for source, data in pairs(ignoreComments) do
local newLine = ("- [%s](%s)"):format(source, data.docs)
table.insert(ignoreCommentSources, newLine)
Expand All @@ -59,10 +59,10 @@ table.sort(ignoreCommentSources)
-- write new file
local newContent = table.concat(beforePart, "\n")
.. "\n"
.. "### Rule Lookup\n"
.. "### Rule lookup\n"
.. table.concat(ruleDocsSources, "\n")
.. "\n\n"
.. "### Add Ignore Comment\n"
.. "### Add ignore comment\n"
.. table.concat(ignoreCommentSources, "\n")
.. "\n"
.. table.concat(afterPart, "\n")
Expand Down

0 comments on commit 11bdac4

Please sign in to comment.