Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

gustaveWPM/ts-prune-with-false-positives-handling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 - _

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published