Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.7 KB

README.md

File metadata and controls

64 lines (43 loc) · 1.7 KB

auditor

Installation for development

Installation for usage

Install the extension

  • cd extension
  • yarn install
  • vsce package
    • This will create a .vsix
  • Go to the extension section of VSCode and install thee .vsix file

Run the server

  • cd service
  • REPO_PATH=<path-to-the-repo-you-want-to-audit> DB_PATH=<path-to-parent-directory-to-store-db> cargo run --bin auditor -- --port 3000
    • Use cargo watch -- cargo run ... during development for hot reloading

Run the web view

Usage

Customize the extension colors

Modify the settings.json (either at user or workspace level) file and add the following:

  "workbench.colorCustomizations": {
    "auditor.reviewedBackground":"#FFF00055",
    "auditor.modifiedBackground": "#FF000055",
    "auditor.ignoredBackground": "#D3D3D3F0"
  },
  "auditor.auditingFiletypes": ["c", "cpp", "go"],
  "auditor.commenterName": "my name"

Mark lines

Open the command pallet (cmd+shift+P) and search for the following. You can also assign your own shortcuts to these commands.

  • Mark liens as modified
  • Mark liens as reviewed
  • Mark liens as cleared
  • Mark liens as ignored

Click on the + sign that appears on the line number gutter to leave a comment