Socket
Socket
Sign inDemoInstall

@willowtreeapps/wist

Package Overview
Dependencies
28
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @willowtreeapps/wist

A linter for BrightScript


Version published
Maintainers
1
Created

Readme

Source

Getting Started with Wist

Wist is a tool for identifying and reporting on patterns found in BrightScript code, with the goal of making code more consistent and avoiding bugs.

  • Wist uses ANTLR for BrightScript parsing.
  • Wist uses an AST to evaluate patterns in code.

Installation and Usage

There are two ways to install Wist: globally and locally.

Local Installation and Usage

If you want to include Wist as part of your project's build system, we recommend installing it locally. You can do so using npm:

$ npm install wist --save-dev

You should then setup a configuration file:

$ ./node_modules/.bin/wist --init

After that, you can run Wist in your project's root directory like this:

$ ./node_modules/.bin/wist yourfile.js

Global Installation and Usage

If you want to make Wist available to tools that run across all of your projects, we recommend installing Wist globally. You can do so using npm:

$ npm install -g wist

You should then setup a configuration file:

$ wist --init

After that, you can run Wist on any file or directory like this:

$ wist yourfile.js

Configuration

After running wist --init, you'll have a .wistrc.json file in your directory. In it, you'll see some rules configured like this:

{
    "rules": {
        "no-stop": ["error"],
        "no-print": ["warn"]
    }
}

The names "no-stop" and "no-print" are the names of rules in Wist. The first value is the error level of the rule and can be one of these values:

  • "off" or 0 - turn the rule off
  • "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
  • "error" or 2 - turn the rule on as an error (exit code will be 1)

The three error levels allow you fine-grained control over how Wist applies rules (for more configuration options and details, see the configuration docs).

Keywords

FAQs

Last updated on 14 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc