GithubHelp home page GithubHelp logo

shivamashtikar / purescript-psa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from natefaubion/purescript-psa

0.0 1.0 0.0 89 KB

Error/Warning reporting frontend for the PureScript compiler

License: MIT License

JavaScript 2.21% PureScript 97.79%

purescript-psa's Introduction

psa

A pretty, flexible error/warning reporting frontend for the PureScript compiler (psc).

  • Colors!
  • Original source spans in errors
  • Fine-grained warning filtering
  • Warning persistence

Install

npm install -g purescript-psa

Sample Usage

Censor all warnings:

psa --censor-warnings <psc-options>

Censor library warnings:

psa --censor-lib <psc-options>

Censor source warnings:

psa --censor-src <psc-options>

Censor specific warning codes:

psa --censor-codes=ShadowedName,ImplicitImport,MissingTypeDeclaration <psc-options>

Only show specific warning codes:

psa --filter-codes=DeprecatedOperatorDecl,DeprecatedClassExport <psc-options>

Turn source warnings into errors:

psa --strict <psc-options>

Note: It's assumed psc is in your path. If you'd like to use a custom binary location you can set the --psc=/foo/bar/psc flag.

Persisting Warnings

psc does not persist warnings between compilations, but psa can do it with the --stash flag. This serializes the set of warnings to disk and merges it with the new set on each compilation.

psa --stash <psc-options>

If you are compiling multiple projects from the same root, you can specify which stash file should be used:

psa --stash=.foo-stash <psc-options>

Usage with pulp

Pulp supports building with psa: it will be used by default if it is installed, and options will be passed through, eg:

pulp build -- --stash --censor-lib <psc-options>

purescript-psa's People

Contributors

benjmhart avatar bfleischhacker avatar d0liver avatar garyb avatar hdgarrood avatar joneshf avatar kritzcreek avatar natefaubion avatar nwolverson avatar passy avatar rufflewind avatar safareli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.