Coder Social home page Coder Social logo

gustavewpm / ts-prune-with-false-positives-handling Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24 KB

A fast and unobtrusive tool to extend ts-prune, giving better control over its output

License: MIT License

Python 94.88% TypeScript 5.12%
python3 typescript utility ts-prune

ts-prune-with-false-positives-handling's Introduction

ts-prune, with false positives handling

To understand this repo, you will only need to:

  1. Read the tsprune-false-positives.conf file
  2. Read the index.ts file
  3. Run the following commands:
  • $ npm run ts-prune
  • $ npm run ts-prune-verbose

Config file

Quirks

The config file can only contain:

  • Empty lines (lines containing only spaces/tabs are parsed as empty too)
  • Commented lines, starting with a #
  • Filepaths (one per line)

When you add a file path, just copy and paste the output of ts-prune which is a false positive, including the line number (which will be wildcarded during the sanitizer parsing).

Flaws

Inline comments like this are NOT supported:

src/index.ts:1 - _ # BYPASS

Instead, write this:

# BYPASS
src/index.ts:1 - _

ts-prune-with-false-positives-handling's People

Contributors

gustavewpm 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.