Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
D docker-containers
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Public
  • docker-containers
  • Wiki
  • code style container

code style container · Changes

Page history
Update code style container authored Nov 01, 2020 by Yogesh Hegde's avatar Yogesh Hegde
Hide whitespace changes
Inline Side-by-side
Showing with 16 additions and 16 deletions
+16 -16
  • code-style-container.md code-style-container.md +16 -16
  • No files found.
code-style-container.md
View page @ ef5f50f4
...@@ -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
Clone repository
  • Installing tools
  • Readme doc format
  • code refactoring
  • code style container
  • day0
  • devops practical
  • docusaurus
  • Home
  • install on mac
  • install tools ubuntu 16.04
  • install tools windows