Skip to content

Commit

Permalink
chore: improv annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 21, 2023
1 parent b491b1d commit 972da2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/rulebook/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ end
---checks whether rule has id and source, as prescribed in nvim diagnostic structure
---@param diag diagnostic
---@return boolean whether rule is valid
---@nodiscard
local function validDiagObj(diag)
local issuePlea = "\nPlease open an issue at the plugin that provides the diagnostics."
if not diag.code then
Expand All @@ -49,6 +50,7 @@ end

---@param lnum number
---@param operationIsIgnore boolean
---@nodiscard
local function getDiagsInCurLine(lnum, operationIsIgnore)
local diags = vim.diagnostic.get(0, { lnum = lnum })
-- INFO for rule search, there is no need to filter the diagnostics, since there
Expand Down

0 comments on commit 972da2e

Please sign in to comment.