Giter VIP home page Giter VIP logo

coverity-bash-completions's Introduction

Bash Completions For Coverity

Suggests arguments and options for various Coverity commands.

Installation

In all cases, you simply need to install the appropriate bash completion package (if not already installed) and then copy the coverity completion script from this repository into the right directory. For example:

sudo apt-get install bash-completion
curl -sL https://raw.githubusercontent.com/coverity/coverity-bash-completions/master/coverity > /etc/bash_completion.d/coverity
bash -l; # To start new shell

In some cases, you may need to explicitly load the completion framework into your shell. This is usually done by adding something like source /etc/bash_completion to your ~\.bashrc file.

Usage

For these completions to work, the bin directory for the Coverity Platform and/or Coverity Analysis Tools must be in your $PATH. At this time, completions are available only for some commands. Here are some of my favorites:

$> cov-admin-db [TAB][TAB]

backup          optimize        reset-admin-db  restore
$> cov-configure --delete-compiler-config temp[TAB][TAB]

template-apt-config-0             template-gcc-config-3
template-g++-config-0             template-gcc-config-4
template-g++-config-1             template-gcc-config-5
template-g++-config-2             template-javac-config-0
template-g++-config-3             template-java-config-0
$> cov-configure --comptype iar[TAB][TAB]

iar:430        iar:hcs12      iar:sam8       iar_cxx:avr32  iar_cxx:rh850
iar:8051       iar:m16c       iar:sh         iar_cxx:cr16c  iar_cxx:rl78
iar:arm        iar:m32c       iar:v850       iar_cxx:h8     iar_cxx:sh
iar:avr        iar:maxq       iar_cxx:430    iar_cxx:hcs12  iar_cxx:v850
$> cov-analyze --enable BAD[TAB][TAB]

BAD_ALLOC_ARITHMETIC    BAD_COMPARE             BAD_LOCK_OBJECT
BAD_ALLOC_STRLEN        BAD_EQ                  BAD_OVERRIDE
BAD_CERT_VERIFICATION   BAD_EQ_TYPES            BAD_SHIFT
BAD_CHECK_OF_WAIT_COND  BAD_FREE                BAD_SIZEOF

Author

Jeffrey Ryan Thalhammer [email protected]

Copyright

2017 (C) Synopsys, Inc.

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.