Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the gutter cross to varying sizes of dot or circle based on severity. #67

Merged
merged 1 commit into from Dec 21, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions SublimeLinter.py
Expand Up @@ -31,6 +31,12 @@
(1600, (1600, 3000)),
)

MARKS = {
"violation": ("", "dot"),
"warning": ("", "dot"),
"illegal": ("", "circle"),
}


def get_delay(t, view):
delay = 0
Expand Down Expand Up @@ -103,7 +109,8 @@ def add_lint_marks(view, lines, error_underlines, violation_underlines, warning_
view.add_regions('lint-underline-illegal', error_underlines, 'invalid.illegal', sublime.DRAW_EMPTY_AS_OVERWRITE)
if lines:
fill_outlines = view.settings().get('sublimelinter_fill_outlines', False)
gutter_mark = 'cross' if view.settings().get('sublimelinter_gutter_marks', False) else ''
gutter_mark_enabled = True if view.settings().get('sublimelinter_gutter_marks', False) else False

outlines = {'warning': [], 'violation': [], 'illegal': []}

for line in lines:
Expand All @@ -120,7 +127,7 @@ def add_lint_marks(view, lines, error_underlines, violation_underlines, warning_
'lint-outlines-{0}'.format(lint_type),
outlines[lint_type],
'sublimelinter.{0}'.format(lint_type),
gutter_mark
MARKS[lint_type][gutter_mark_enabled]
]
if not fill_outlines:
args.append(sublime.DRAW_OUTLINED)
Expand Down