 
 class LinterViews
   constructor: (@linter) ->
-    @_showPanel = true # Altered by config observer in linter-plus
-    @_showBubble = true # Altered by the config observer in linter-plus
-    @_underlineIssues = true # Altered by config observer in linter-plus
-
-    @_messages = new Set
-    @_markers = []
-    @_statusTiles = []
-
-    @_tabs = new Map
-    @_tabs.set 'line', new BottomTab()
-    @_tabs.set 'file', new BottomTab()
-    @_tabs.set 'project', new BottomTab()
-
-    @_panel = document.createElement 'div'
-    @_bubble = null
-    @_bottomStatus = new BottomStatus()
-
-    @_tabs.get('line').initialize 'Line', => @_changeTab('line')
-    @_tabs.get('file').initialize 'File', => @_changeTab('file')
-    @_tabs.get('project').initialize 'Project', => @_changeTab('project')
-
-    @_bottomStatus.initialize()
-    @_bottomStatus.addEventListener 'click', ->
+    @showPanel = true # Altered by config observer in linter-plus
+    @showBubble = true # Altered by the config observer in linter-plus
+    @underlineIssues = true # Altered by config observer in linter-plus
+
+    @messages = new Set
+    @markers = []
+    @statusTiles = []
+
+    @tabs = new Map
+    @tabs.set 'line', new BottomTab()
+    @tabs.set 'file', new BottomTab()
+    @tabs.set 'project', new BottomTab()
+
+    @panel = document.createElement 'div'
+    @bubble = null
+    @bottomStatus = new BottomStatus()
+
+    @tabs.get('line').initialize 'Line', => @changeTab('line')
+    @tabs.get('file').initialize 'File', => @changeTab('file')
+    @tabs.get('project').initialize 'Project', => @changeTab('project')
+
+    @bottomStatus.initialize()
+    @bottomStatus.addEventListener 'click', ->
       atom.commands.dispatch atom.views.getView(atom.workspace), 'linter:next-error'
-    @_panelWorkspace = atom.workspace.addBottomPanel item: @_panel, visible: false
+    @panelWorkspace = atom.workspace.addBottomPanel item: @panel, visible: false
 
     # Set default tab
-    visibleTabs = @_getVisibleTabKeys()
-
-    @_scope = atom.config.get('linter.defaultErrorTab', 'file')
-    if visibleTabs.indexOf(@_scope) is -1
-      @_scope = visibleTabs[0]
-
-    @_tabs.forEach (tab, key) =>
+    visibleTabs = @getVisibleTabKeys()
+
+    @scope = atom.config.get('linter.defaultErrorTab', 'file')
+    if visibleTabs.indexOf(@scope) is -1
+      @scope = visibleTabs[0]
+
+    @tabs.forEach (tab, key) =>
       tab.visible = false
-      tab.active = @_scope is key
-
-    @_panel.id = 'linter-panel'
+      tab.active = @scope is key
+
+    @panel.id = 'linter-panel'
 
   getMessages: ->
-    @_messages
+    @messages
 
 # consumed in views/panel
   setPanelVisibility: (Status) ->
     if Status
-      @_panelWorkspace.show() unless @_panelWorkspace.isVisible()
+      @panelWorkspace.show() unless @panelWorkspace.isVisible()
     else
-      @_panelWorkspace.hide() if @_panelWorkspace.isVisible()
+      @panelWorkspace.hide() if @panelWorkspace.isVisible()
 
   # Called in config observer of linter-plus.coffee
   setShowPanel: (showPanel) ->
     atom.config.set('linter.showErrorPanel', showPanel)
-    @_showPanel = showPanel
+    @showPanel = showPanel
     if showPanel
-      @_panel.removeAttribute('hidden')
+      @panel.removeAttribute('hidden')
     else
-      @_panel.setAttribute('hidden', true)
+      @panel.setAttribute('hidden', true)
 
   # Called in config observer of linter-plus.coffee
-  setShowBubble: (@_showBubble) ->
-
-  setUnderlineIssues: (@_underlineIssues) ->
+  setShowBubble: (@showBubble) ->
+
+  setUnderlineIssues: (@underlineIssues) ->
 
   setBubbleOpaque: ->
     bubble = document.getElementById('linter-inline')

        else
          counts.project++
          message.currentFile = false
        @_messages.add message

module.exports = LinterViews

      bubble.appendChild Message.fromMessage(trace, addPath: true)
    bubble

  renderPanel: ->
    @panel.innerHTML = ''
    @removeMarkers()
    @removeBubble()
    if not @messages.size
      return @setPanelVisibility(false)
    @setPanelVisibility(true)
    activeEditor = atom.workspace.getActiveTextEditor()
    @messages.forEach (message) =>
      if @scope is 'file' then return unless message.currentFile
      if @underlineIssues and message.currentFile and message.range #Add the decorations to the current TextEditor
        @markers.push marker = activeEditor.markBufferRange message.range, {invalidate: 'never'}
        activeEditor.decorateMarker(
          marker, type: 'line-number', class: "linter-highlight #{message.class}"
        )
