11# flycheck-google-cpplint.el
22
3+ [ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPL%20v3-green.svg )] ( https://www.gnu.org/licenses/gpl-3.0 )
4+
35Add Google C++ Style checker for [ Flycheck] ( https://github.com/flycheck/flycheck ) .
46
57If you're want to write code according to the
6- [ Google C++ Style Guide] ( http ://google-styleguide.googlecode.com/svn/trunk/ cppguide.xml )
8+ [ Google C++ Style Guide] ( https ://google.github.io/styleguide/ cppguide.html )
79, this will help a great deal.
810
911I recommend that the package
10- [ google-c-style] ( http ://melpa.milkbox.net /#/google-c-style)
12+ [ google-c-style] ( https ://melpa.org /#/google-c-style)
1113also installed with.
1214
1315## Installation
1416
15- As usual, from [ MELPA] ( http ://melpa.milkbox.net ) .
17+ As usual, from [ MELPA] ( https ://melpa.org/#/ ) .
1618
1719In your [ Cask] ( http://cask.github.io ) file:
1820
@@ -25,7 +27,7 @@ In your [Cask](http://cask.github.io) file:
2527
2628In your ` init.el ` :
2729
28- ```
30+ ``` el
2931(eval-after-load 'flycheck
3032 '(progn
3133 (require 'flycheck-google-cpplint)
@@ -37,38 +39,24 @@ In your `init.el`:
3739
3840If you not use ` cppcheck ` . You have need to change ` flycheck-add-next-checker ` .
3941
40- ```
42+ ``` el
4143(flycheck-add-next-checker 'c/c++-clang
4244 '(warning . c/c++-googlelint))
4345```
4446
4547## Usage
4648
47- ### Install cpplint.py
48-
49- ```
50- $ wget http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
51- $ sudo mv cpplint.py /usr/local/bin/cpplint.py
52- $ sudo chmod 755 /usr/local/bin/cpplint.py
53- ```
54-
55- You should be able to run the ` cpplint.py ` command in Emacs.
56- If above location,
49+ ### Install ` cpplint ` through ` pip `
5750
5851```
59- (executable-find "cpplint.py") ; => "/usr/local/bin/ cpplint.py"
52+ $ pip install cpplint
6053```
6154
62- or
63-
64- ```
65- (custom-set-variables
66- '(flycheck-c/c++-googlelint-executable "/usr/local/bin/cpplint.py"))
67- ```
55+ * P.S. Make sure cpplint is in your environment path settings*
6856
6957### Configure for cpplint.py
7058
71- ```
59+ ``` el
7260(custom-set-variables
7361 '(flycheck-googlelint-verbose "3")
7462 '(flycheck-googlelint-filter "-whitespace,+whitespace/braces")
@@ -88,7 +76,7 @@ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8876PARTICULAR PURPOSE. See the GNU General Public License for more details.
8977
9078You should have received a copy of the GNU General Public License along with
91- this program. If not, see http ://www.gnu.org/licenses/ .
79+ this program. If not, see https ://www.gnu.org/licenses/ .
9280
9381See
9482[ COPYING] ( https://github.com/flycheck/flycheck-google-cpplint/blob/master/COPYING )
0 commit comments