Skip to content

Setup & Installation

Vis Kirubakaran edited this page Apr 14, 2023 · 1 revision

Setup

Prerequisites

Make sure that the following prerequisites are successfully installed on your machine:

Environment Variable & PATH Setup

Ensure the relevant environment variables are set properly:

  • JAVA_HOME
  • MAVEN_HOME
  • joern

dot, joern, maven, java and python must also be part of your system PATH variable to use this program.

Fig. 1 Example Environment Variable Setup on Windows

Fig. 2 Example PATH Environment Variable Setup on Windows

Repository Setup

  1. Clone this repository to your local machine using the following command:
git clone https://github.com/vikiru/CodeSmell.git
  1. Move to the root directory of the repository and run the following command to install the required dependencies (this will additionally run the tests that are created within the repo, which will begin invoking Joern - may take some time on older hardware):
mvn install

However, Joern invocation can be skipped using this variation of the above command:

mvn -Dskip=true install 
  1. Install any missing Python dependencies by using the following command:
pip install -U -r requirements.txt

Clone Repository and Install Maven Dependencies

Setup

Install Required Python Packages

PythonSetup