<type>documentation</type>
<domain>intro</domain>
<id>tutorial-editor-details</id>
<title>Tutorial: Code Warnings</title>
<date>$Date$</date>
<product>pro+</product>

As you probably noticed while working through the tutorial, Wing flags some types of
incorrect code by underlining it. This is done for syntax errors, indentation errors, code
that can't be reached, undefined variables or attributes, imports that cannot be resolved,
and some other types of errors. Hovering the mouse cursor over an indicator on the editor
displays details for that warning or error in a tooltip:

.. image:: code-warnings.png
  :width: 487
  :height: 257

A |warning| ``Code Warnings`` icon is shown in the top right of any editor that has code
warnings, and the `Code Warnings <script:show-panel-code-warnings>`__ tool can be used to
view and manage the warnings.

.. |warning| image:: icon:wingide-warnings
  :class: inline-image

The `Code Warnings <script:show-panel-code-warnings>`__ tool's ``Configuration`` tab can
be used to set up external sources for code warnings, including ruff, flake8, mypy, pep8, and pylint:

.. image:: external-checkers.png
  :width: 360
  :height: 274

The `Editor > Code Warnings
<script:show_preferences_gui#prefname="edit.error-display">`__ preference group is used
to change the style of the warning indicators on the editor or to globally disable the
feature.

See the `Code Warnings <ref:warnings/index>`__ documentation for details.
