Collect Audit Notes is a Visual Studio Code extension that scans through your project files to collect comments and notes marked with @note
, @audit-info
, @audit
, and TODO
. The extension generates an organized list of all audit notes and TODOs, presenting them in both a markdown file (audit-notes.md
) and an interactive webview inside VSCode.
- Scans through files in your workspace for special comments:
@note
,@audit-info
,@audit
for audit-related notes.TODO
for tasks to be done.
- Collects all matching notes and generates a markdown file (
audit-notes.md
) containing:- A list of files where these comments were found.
- Each comment listed with its file and line number.
- Checkboxes for all notes that can be checked off.
- Displays the notes in an easy-to-navigate webview within VSCode.
- Provides a custom view in the Activity Bar for quick access to extension features.
- Allows customization of file extensions to scan.
- Clickable links in both the markdown file and the webview to open files directly at the relevant line.
- Persistent checkbox states across sessions for all types of notes.
- Clear collected notes with a single click.
- Open Visual Studio Code.
- Go to the Extensions view (Ctrl+Shift+X).
- Search for Collect Audit Notes.
- Click Install.
Alternatively, you can install this extension from the source code:
- Clone the repository:
git clone https://github.com/joswha/noteour.git
- Open the folder in VSCode:
code collect-audit-notes
- Press
F5
to launch the extension in a new VSCode window for testing.
- Open your workspace in VSCode.
- Click on the Audit Notes icon in the Activity Bar to open the custom view.
- Use the "Collect Notes" button to scan your workspace and collect notes.
- Use the "Open Audit Notes" button to view the collected notes in a webview.
- Set custom file extensions to scan using the "File Extensions" item in the custom view.
- Click the "Clear Notes" button in the custom view to delete all collected audit notes.
The extension provides a custom view in the Activity Bar with the following features:
- File Extensions: Displays current file extensions being scanned. Click to modify.
- Status: Shows the current status of note collection.
- Collect Notes: Button to start the note collection process.
- Open Audit Notes: Button to open the collected notes in a webview.
- Clear Notes: Button to delete all collected audit notes.
- All notes (including
@note
,@audit-info
,@audit
, andTODO
) appear as checkboxes in theaudit-notes.md
file and in the webview. - You can check off items in the webview, and the state will be saved in the markdown file.
- Checked items will have a strikethrough style in the webview.
- Checked states persist across sessions.
The extension allows you to customize which file extensions to scan. By default, it scans:
.js
,.ts
,.jsx
,.tsx
, and.sol
files.- It ignores files in the
node_modules/
folder.
To change the file extensions:
- Click on the "File Extensions" item in the custom view.
- Enter the desired file extensions when prompted (comma-separated).
To contribute or customize the extension:
- Clone this repository.
- Run
npm install
to install dependencies. - Run
npm run compile
to build the project. - Press
F5
to open a new VSCode window with the extension loaded for testing.
Contributions are welcome! To contribute:
- Fork this repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-name
). - Create a pull request.
# Audit Notes
## File: [src/index.js](vscode://file/path/to/src/index.js)
- [ ] [Line 12](vscode://file/path/to/src/index.js:12): @note Add detailed documentation for this function.
- [ ] [Line 24](vscode://file/path/to/src/index.js:24): @audit Check the security implementation here.
## File: [src/utils.js](vscode://file/path/to/src/utils.js)
- [ ] [Line 5](vscode://file/path/to/src/utils.js:5): TODO: Refactor this utility function.