... | ... | @@ -18,23 +18,23 @@ The guide will help you to check your code's coding style and find issues with t |
|
|
9. To open up terminal you can Press `Ctrl` + `j`.
|
|
|
![vscode-terminal](upload/19.png)
|
|
|
10. Clone the project repository
|
|
|
```sh
|
|
|
git clone {your-project-repo}
|
|
|
cd {your-project-name}
|
|
|
```
|
|
|
For example: Lets say your project repository is `https://gitlab.iotiot.in/newbies/pre-office-office/devops-trial.git` then the steps are
|
|
|
```sh
|
|
|
git clone https://gitlab.iotiot.in/newbies/pre-office-office/devops-trial.git
|
|
|
cd devops-trial
|
|
|
```
|
|
|
```sh
|
|
|
git clone {your-project-repo}
|
|
|
cd {your-project-name}
|
|
|
```
|
|
|
For example: Lets say your project repository is `https://gitlab.iotiot.in/newbies/pre-office-office/devops-trial.git` then the steps are
|
|
|
```sh
|
|
|
git clone https://gitlab.iotiot.in/newbies/pre-office-office/devops-trial.git
|
|
|
cd devops-trial
|
|
|
```
|
|
|
|
|
|
11. Check for vulnerabilities using **flawfinder**, run command
|
|
|
```sh
|
|
|
flawfinder {folder-which-contains-your-code}
|
|
|
```
|
|
|
```sh
|
|
|
flawfinder {folder-which-contains-your-code}
|
|
|
```
|
|
|
|
|
|
12. Check for MISRA C/CPP violations, run commands
|
|
|
```sh
|
|
|
cppcheck cppcheck --dump --quiet {folder-which-contains-your-code}/*
|
|
|
python3 /usr/share/cppcheck/addons/misra.py {folder-which-contains-your-code}/*.dump
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```sh
|
|
|
cppcheck cppcheck --dump --quiet {folder-which-contains-your-code}/*
|
|
|
python3 /usr/share/cppcheck/addons/misra.py {folder-which-contains-your-code}/*.dump
|
|
|
``` |
|
|
\ No newline at end of file |