Skip to content

A user-extensible lint for POSIX shell

Notifications You must be signed in to change notification settings

colis-anr/lintshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lintshell, a user-extensible lint for POSIX shell

Description

lintshell analyzes the syntax trees produced by the morbig parser to look for potential programming errors.

lintshell is user-extensible: anyone can program an analysis and integrate it into the tool.

Installation

Via OPAM

After the first release, there will be an OPAM package and opam install lintshell will be sufficient.

One can install the latest development version with:

opam pin lintshell.dev https://github.com/colis-anr/lintshell.git

Or manually by:

  1. cloning this repository and cd-ing to it;
  2. installing the dependencies: opam install . --deps-only
  3. make sure OPAM's environment is in sync: eval $(opam env)
  4. building lintshell: make
  5. playing with it: bin/lintshell [...]
  6. installing it: make install

Requirements

  • ocaml (≥ 4.03.0)
  • morbig (≥ 0.10.3)

Usage

  • lintshell list displays the list of installed analyzers.
  • lintshell check script analyzes POSIX shell script.
  • lintshell show analyzer displays a description of analyzer.

Want to write your own analyzer?

Please read this file?