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