Skip to content

Static code analysis for powershell code through PSScript Analyzer

Notifications You must be signed in to change notification settings

cridin1/pwsh-static-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwsh-static-analyzer

syntax-analysis

Static code analysis for PowerShell code. Make sure you have installed PSScript Analyzer.

PS > python analyzer.py -h                                                                 

     __        __           __           ___                                     __  ___  __
    |__) |  | /__` |__| __ /__` \ / |\ |  |   /\  \_/ __  /\  |\ |  /\  |    \ /  / |__  |__)
    |    |/\| .__/ |  |    .__/  |  | \|  |  /~~\ / \    /~~\ | \| /~~\ |___  |  /_ |___ |  \


usage: analyzer.py [-h] [-v [V]] [OUT_FILE] ANSWER_PATH [GROUND_TRUTH] [FROM_ESCAPE]

Python NLP wrapper for PowerShell syntax analysis through PSScript Analyzer

positional arguments:
  OUT_FILE      Output CSV file
  ANSWER_PATH   Answers text file path from the model
  GROUND_TRUTH  Ground truth text file path
  FROM_ESCAPE   Output files from ESCAPE

options:
  -h, --help    show this help message and exit
  -v [V]        Verbose

In utils\analysis_classes.py, the analysis is extended to different error types.

Releases

No releases published

Packages

No packages published