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

Last edited by Yogesh Hegde Nov 01, 2020
Page history
This is an old version of this page. You can view the most recent version or browse the history.

code style container

Code style check container.

The guide will help you to check your code's coding style and find issues with the code that generally compiler does not show.

  1. Download ready made docker-containers for the module - https://gitlab.iotiot.in/newbies/pre-office-office/docker-containers/-/archive/master/docker-containers-master.zip

  2. Unzip the docker-containers-master.zip remote-containers

  3. Open Up VScode.

  4. Press Ctrl + Shift + p in VScode. A bar will open up at the top.

  5. Search for Remote-Containers remote-containers

  6. Click on "Remote-Containers: Open Folder in Containers".

  7. In the pop up Window, Navigate to Downloads --> docker-containers-master --> code-style-container. open-folder

  8. Vscode will take some time to start up the container, once done the window will look like this below vscode-container

  9. To open up terminal you can Press Ctrl + j. vscode-terminal

  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

  11. Check for vulnerabilities using flawfinder, run command 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

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