 
     return if @violationViews.length == 0
 
-    for violationView in @violationViews
+    for violationView in @getValidViolationViews()
       line = violationView.getCurrentBufferStartPosition().row
       klass = "lint-#{violationView.violation.severity}"
       @gutterView.addClassToLine(line, klass)

    while view = @violationViews.shift()
      view.remove()

  updateGutterMarkers: ->
    return unless @gutterView.isVisible()


    currentCursorPosition = @editor.getCursor().getScreenPosition()

    # OPTIMIZE: Consider using binary search.
    neighborViolationView = _[enumerationMethod] @getValidViolationViews(), (violationView) ->
      violationPosition = violationView.screenStartPosition
      violationPosition[comparingMethod](currentCursorPosition)

