A comprehensive code auditing plugin for Neovim. This plugin helps security auditors and code reviewers track findings, annotate code regions, and collaborate on security assessments directly within Neovim.
- 📝 Finding Management: Create, track, and manage security findings
- 📋 Note Taking: Add contextual notes to code regions
- 🎨 Visual Indicators: Emoji indicators in the gutter for easy identification
- 🔗 Git Integration: Generate shareable permalinks to specific lines and commits
- 🔍 Search & Navigation: Telescope integration for powerful finding search and navigation
- 💾 Data Persistence: JSON-based storage with multi-user collaboration support
- 📊 Export Functionality: Export findings to Markdown or JSON formats
- 🎯 Customizable: Extensive configuration options for colors, keymaps, and behavior
Using lazy.nvim
{
"your-username/audit.nvim",
dependencies = {
"nvim-telescope/telescope.nvim", -- Optional but recommended
},
config = function()
require("audit").setup({
-- Your configuration here
})
end,
}Using packer.nvim
use {
"your-username/audit.nvim",
requires = {
"nvim-telescope/telescope.nvim", -- Optional but recommended
},
config = function()
require("audit").setup({
-- Your configuration here
})
end,
}- Add a Finding: Select code and press
<leader>afor use:AuditAddFinding - Add a Note: Select code and press
<leader>anor use:AuditAddNote - Show Details: Press
<leader>aito show finding/note details at cursor - Copy Permalink: Press
<leader>acto copy a git permalink to clipboard - Search Findings: Press
<leader>asto search all findings with Telescope - List Findings: Press
<leader>alto see a summary of all findings
-- Minimal configuration (most settings have good defaults)
require("audit").setup({
-- Customize key mappings if desired
mappings = {
add_finding = "<leader>af",
add_note = "<leader>an",
show_here = "<leader>ai",
copy_permalink = "<leader>ac",
},
-- Change storage location if needed
storage_dir = ".audit",
})
-- Or just use defaults
require("audit").setup()For detailed documentation including commands, API reference, and advanced features, see :help audit or doc/audit.txt.
- Add SARIF (Static Analysis Results Interchange Format) export support
- Add coverage report integration and support
- Better support for visual mode and multiline findings/notes for adding and removing
- Improve editing issue details and metadata
- Test collaboration feature
MIT License - see LICENSE for details.
Inspired by Trail of Bits' weAudit VSCode extension.