Code Monkey home page Code Monkey logo

cpplint-extension's Introduction

cpplint README

This extension utilizes the cpplint checker to provide C and C++ code style checker within Visual Studio Code.

Build Status

Features

  • check coding style of cpp and c, when open and save source file

feature

Requirements

Install cpplint

Install from source

https://github.com/cpplint/cpplint

Mac & Linux

sudo pip install cpplint

Windows

pip install cpplint

Check the install result

Linux
ls -l /usr/local/bin/cpplint
-rwxr-xr-x 1 root root 381 May  3 08:19 /usr/local/bin/cpplint
Mac
ls -l /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/cpplint
-rwxr-xr-x  1 root  wheel  468 Apr 30 22:57 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/cpplint

or

ls -l /opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin/cpplint
-rwxr-xr-x  1 root  wheel  267 Apr 30 22:03 /opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin/cpplint
Windows
dir c:\ProgramData\Anaconda2\Scripts\cpplint.exe

Extension Settings

  • cpplint.cpplintPath: set cpplint executable path, path on windows should like c:\\ProgramData\\Anaconda2\\Scripts\\cpplint.exe
  • cpplint.lintMode: set cpplint mode, avialable value are single and workspace
  • cpplint.lineLength: set line length strict, default is 80 characters
  • cpplint.excludes: set exclude rules, which is related path and shell globbing is preforming, abosluted path is supported right now
  • cpplint.filters: set filters, only error messages whose category names pass the filters will be printed
  • cpplint.root: set the root directory used for deriving header guard CPP variables
  • cpplint.repository: set top level directory of the repository, used to derive the header guard CPP variable
  • cpplint.extensions: set the allowed file extensions that cpplint will check
  • cpplint.languages: set the allowed vscode language identifiers that cpplint will check (Currently only on single file mode)
  • cpplint.headers: set the allowed header extensions that cpplint will consider to be header files
  • cpplint.verbose: verbose level, errors with lower verbosity levels have lower confidence and are more likely to be false positives

Known Issues

Any issues please contact: cpplint

cpplint-extension's People

Contributors

secularbird avatar tmstn avatar

Watchers

Gabriel Arjones avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.