The Teamscale command line interface is used to enable integration into text editors such as VIM, Emacs or Sublime, by providing findings in a standard error format that can be interpreted like compile time errors.
- Install
jq: https://stedolan.github.io/jq/download/ - Clone this repository:
$ git clone https://github.com/cqse/teamscale-cli.git- Copy the
.teamscale-cli.configto your user directory:
$ cp .teamscale-cli.config ~ Now edit it and insert all the necessary data.
-
Put the
teamscale-clishell script anywhere that is on your local $PATH, so that it can easily be executed. -
In your editor you can run this as a compile command, but be sure to provide the absolute path to the file in the current editor as the first argument:
$ teamscale-cli /home/user/project/src/foo/AssumptionViolatedException.java
AssumptionViolatedException.java:30:0: error: Avoid leaving deprecated classes / methods / fields
AssumptionViolatedException.java:21:0: error: Avoid leaving deprecated classes / methods / fields