/connector-edge

Connector to use edge diagnostics adapter

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Edge connector

A connector to use edge diagnostics adapter in sonarwhal.

Installation

First, you need to install sonarwhal:

npm install sonarwhal

Then, install the new connector:

npm install @sonarwhal/connector-edge

Known issues

  • This connector needs run as Administrator.
  • onLoadingFailed event is not dispatched.
  • Security is not implemented.
  • Edge has to open a URL by default so, before navigate, you can get some events for that URL. To avoid that, you should enable the property useTabUrl to true and then set the property tabUrl with an url to an empty html in the connector options. You can use the url https://empty.sonarwhal.com/.

Usage

Configure the connector name in your .sonarwhalrc configuration file:

{
    "connector": {
        "name": "connector-edge"
    }
}

Configure the adapter to use an empty HTML opening a new browser or tab:

{
    "connector": {
        "name": "connector-edge",
        "options": {
            "useTabUrl": true,
            "tabUrl": "https://empty.sonarwhal.com/"
        }
    }
}

Code of Conduct

This project adheres to the JS Foundation's code of conduct.

By participating in this project you agree to abide by its terms.

License

The code is available under the Apache 2.0 license.