Skip to content

An open source VSCode plugin for Electron applications

License

Notifications You must be signed in to change notification settings

ksdmitrieva/electrolint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electrolint

Electrolint is an open source VS Code plugin for Electron applications.

Functionality

Electrolint scans Electron applications for security defects using Electronegativity, highlights the findings in the code, and suggests contextual remediation.

Electrolint is developed as part of my PhD research at George Washington University.

Structure

The plugin uses the VS Code Language Server Protocol (LSP) and is built on top of lsp-sample.

.
├── client // Language Client
│   ├── src
│   │   └── extension.ts // Language Client entry point
├── package.json // The extension manifest.
└── server // Language Server
    └── src
        ├── remediation-advice.json // Collection of remediation advice items
        └── server.ts // Language Server entry point

Installing Electrolint

Installing through VS Code UI

  1. Download the electrolint-[version].vsix from this repository.
  2. Open the Extensions panel on the left hand side.
  3. Click on the three dots in the top right corner of the panel and select "Install from VSIX".
  4. Select the downloaded file and click "Install"

Installing from Command Line

  1. Download the electrolint-[version].vsix from this repository.
  2. Open command propmpt where the downloaded extension is located and run the following command:
    code --install-extension electrolint-[version].vsix
    
  3. Restart VS Code.

Building Electrolint

  • Run npm install in this folder. This installs all necessary npm modules in both the client and server folder
  • Open VS Code on this folder.
  • Press Ctrl+Shift+B to compile the client and server.
  • Switch to the Debug viewlet.
  • Select Launch Client from the drop down.
  • Run the launch config.
  • If you want to debug the server as well use the launch configuration Attach to Server after launching the client.
  • In the [Extension Development Host] instance of VS Code, open an Electron document (JavaScript or TypeScript).
    • Make a change in the document.
    • Save file.
    • The extension is plugin is triggered on saving a file.

About

An open source VSCode plugin for Electron applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published