kakoune

Fork of kakoune, an acceptable text editor
git clone git://git.laack.co/kakoune.git
Log | Files | Refs

lint.asciidoc (1164B)


      1 = Integrate with tools that check files for problems.
      2 
      3 Many file-formats have "lint" tools that check for common problems and point out
      4 where they occur. Most of these tools produce output in the traditional message
      5 format:
      6 
      7 ----
      8 {filename}:{line}:{column}: {kind}: {message}
      9 ----
     10 
     11 If the 'kind' field contains 'error', the message is treated as an error,
     12 otherwise it is assumed to be a warning.
     13 
     14 The `:lint-buffer` and `:lint-selections` commands will run the shell command
     15 specified in the `lintcmd` option, passing it the path to a temporary file
     16 containing the text to be linted. The results are collected in the
     17 `*lint-output*` buffer, and analyze it. If `toolsclient` is set, the
     18 `*lint-output*` buffer will be displayed in the named client.
     19 
     20 Each reported error or warning causes a marker to appear in the left-hand
     21 margin of the buffer that was checked. When the main cursor moves onto that
     22 line, the associated messages are displayed. If they get distracting, you can
     23 turn off the markers and messages with the `:lint-hide-diagnostics` command.
     24 
     25 You can also use `:lint-next-message` and `:lint-previous-message` to jump
     26 between the lines with messages.