-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from SublimeLinter/sl4-cleanup
cleanup for SL4
- Loading branch information
Showing
6 changed files
with
20 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
language: python | ||
python: | ||
- "3.3" | ||
# command to install dependencies | ||
- "3.6" | ||
install: | ||
- pip install flake8 | ||
- pip install pydocstyle | ||
# command to run tests | ||
script: | ||
- flake8 . --max-line-length=120 | ||
- pydocstyle . --add-ignore=D202 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,15 @@ | ||
# | ||
# linter.py | ||
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3 | ||
# | ||
# Written by Dmitry Tsoy | ||
# Copyright (c) 2013 Dmitry Tsoy | ||
# | ||
# License: MIT | ||
# | ||
|
||
"""This module exports the Phpmd plugin class.""" | ||
|
||
from SublimeLinter.lint import Linter, WARNING | ||
|
||
|
||
class Phpmd(Linter): | ||
"""Provides an interface to phpmd.""" | ||
|
||
syntax = ('php', 'html', 'html 5') | ||
cmd = ('phpmd', '@', 'text') | ||
cmd = ('phpmd', '${file}', 'text') | ||
regex = ( | ||
r'(?P<filename>.+):(?P<line>\d+)' | ||
r'\s*(?P<message>.+)$' | ||
) | ||
default_type = WARNING | ||
tempfile_suffix = 'php' | ||
defaults = { | ||
'selector': 'source.php, text.html.basic', | ||
'@rulesets:,': 'cleancode,codesize,controversial,design,naming,unusedcode' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"install": "messages/install.txt", | ||
"1.1.0": "messages/1.1.0.txt" | ||
"install": "messages/install.txt" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters