
    Je                     F    d Z ddlmZmZ ddlmZ ddlmZ  G d de      Zy)z5
Language Server Protocol linting configuration tab.
    )QLabelQVBoxLayout)SpyderPreferencesTab)_c                   2     e Zd ZdZ ed      Z fdZ xZS )LintingConfigTabzLinting configuration tab.Lintingc                 D   t         |   |       | j                  }t        t	        d            }|j                  d       |j                  d       | j                  t	        d      d      } |t	        d      dd      }| j                  t	        d	      d
      }t               }|j                  |       |j                  |       |j                  |       |j                  |       | j                  |       |j                  j                  |j                         y )NzaSpyder can optionally highlight syntax errors and possible problems with your code in the editor.TzEnable basic lintingpyflakeszUnderline errors and warningsunderline_errorseditor)sectionz1Enable complexity linting with the Mccabe packagemccabe)super__init__create_checkboxr   r   setOpenExternalLinkssetWordWrapr   	addWidget	setLayouttoggledconnect
setEnabled)	selfparentnewcblinting_labellinting_checkunderline_errors_boxlinting_complexity_boxlinting_layout	__class__s	           e/usr/lib/python3/dist-packages/spyder/plugins/completion/providers/languageserver/conftabs/linting.pyr   zLintingConfigTab.__init__   s    $$q "7  8 9 	**40!!$',,$%  %-.  "&!5!5AB"
 %  /  /  !56  !78~&%%&:&E&EF    )__name__
__module____qualname____doc__r   TITLEr   __classcell__)r"   s   @r#   r   r      s    $iLEG Gr$   r   N)	r(   qtpy.QtWidgetsr   r   spyder.api.preferencesr   spyder.config.baser   r    r$   r#   <module>r/      s&   
 / 8   G+  Gr$   