Skip to content

Commit 1ca72df

Browse files
authored
Merge pull request #13 from SublimeLinter/sl4-cleanup
cleanup for SL4
2 parents 099bad8 + e7c27af commit 1ca72df

6 files changed

Lines changed: 14 additions & 41 deletions

File tree

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
language: python
22
python:
3-
- "3.3"
4-
# command to install dependencies
3+
- "3.6"
54
install:
65
- pip install flake8
7-
- pip install pydocstyle
8-
# command to run tests
96
script:
107
- flake8 . --max-line-length=120
11-
- pydocstyle . --add-ignore=D202

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ SublimeLinter-cpplint
33

44
[![Build Status](https://travis-ci.org/SublimeLinter/SublimeLinter-cpplint.svg?branch=master)](https://travis-ci.org/SublimeLinter/SublimeLinter-cpplint)
55

6-
This linter plugin for SublimeLinter provides an interface to [cpplint](https://pypi.python.org/pypi/cpplint). It will be used with files that have the "C" or “C++” syntax.
6+
This linter plugin for SublimeLinter provides an interface to [cpplint](https://pypi.python.org/pypi/cpplint).
7+
It will be used with files that have the "C" or "C++" syntax.
78

89
## Installation
10+
911
SublimeLinter must be installed in order to use this plugin.
1012

1113
Please use [Package Control](https://packagecontrol.io) to install the linter plugin.
1214

13-
Before using this plugin, you must ensure that `cpplint` is installed on your system. To install `cpplint`, do the following:
15+
Before using this plugin, ensure that `cpplint` is installed on your system.
16+
To install `cpplint`, do the following:
1417

1518
1. Install [Python](http://python.org/download/) and [pip](http://www.pip-installer.org/en/latest/installing.html).
1619

@@ -19,12 +22,14 @@ Before using this plugin, you must ensure that `cpplint` is installed on your sy
1922
[sudo] pip install cpplint
2023
```
2124

22-
In order for `cpplint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](http://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#finding-a-linter-executable).
25+
Please make sure that the path to `cpplint` is available to SublimeLinter.
26+
The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable).
2327

2428

2529
## Settings
26-
- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html
27-
- Linter settings: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html
30+
31+
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
32+
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html
2833

2934
Additional settings for SublimeLinter-cpplint
3035

linter.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,16 @@
1-
#
2-
# linter.py
3-
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
4-
#
5-
# Written by NotSqrt
6-
# Copyright (c) 2013 NotSqrt
7-
#
8-
# License: MIT
9-
#
10-
11-
"""This module exports the Cpplint plugin class."""
12-
131
from SublimeLinter.lint import Linter, util
142

153

164
class Cpplint(Linter):
17-
"""Provides an interface to cpplint."""
18-
19-
syntax = ('c++', 'c')
20-
cmd = ('cpplint', '*', '@')
5+
cmd = ('cpplint', '${args}', '${file}')
216
regex = r'^.+:(?P<line>\d+):\s+(?P<message>.+)'
227
tempfile_suffix = '-'
238
error_stream = util.STREAM_BOTH # errors are on stderr
249
defaults = {
10+
'selector': 'source.c, source.c++',
2511
'--filter=,': '',
2612
'--linelength=,': '',
2713
}
28-
comment_re = r'\s*/[/*]'
29-
inline_settings = None
30-
inline_overrides = ['filter', 'linelength']
3114

3215
def split_match(self, match):
3316
"""

messages.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"install": "messages/install.txt",
3-
"1.0.8": "messages/1.0.8.txt",
4-
"1.0.9": "messages/1.0.9.txt"
2+
"install": "messages/install.txt"
53
}

messages/1.0.8.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

messages/1.0.9.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)