mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-25 22:51:41 +00:00
15 lines
339 B
Python
15 lines
339 B
Python
from lint import Linter
|
|
|
|
class Java(Linter):
|
|
language = 'java'
|
|
cmd = ('javac', '-Xlint')
|
|
regex = r'^[^:]+:(?P<line>\d+): (?P<error>.*)$'
|
|
|
|
# this linter doesn't work very well with projects/imports
|
|
defaults = {
|
|
'disable': True,
|
|
}
|
|
|
|
def run(self, *args):
|
|
return self.tmpfile(*args, suffix='.java')
|