Linter Control Comments

linter-control-comments

by Katrin Leinweber

A collection of linter control comments (currently: Golint, Rubocop, Clippy, and Shellcheck)

developmentlintergorubyrustshell
espanso install linter-control-comments

Linter Control Comments

A collection of linter control comments for:

LanguageLinter
GoGolint
RubyRubocop
RustClippy
ShellShellcheck

How to use

  1. Copy a particular linting rule name (from docs, terminal output, etc.).
  2. Triggering the espansion. Most replacements use the {{clipboard}}.

Trigger composition

SymbolWhy that one in particular?
#Comment symbol for the relevant language.
rbAbbreviated name of the linter, ideally following its syllables.
dFirst letter of the linter's keyword

This hopefully helps to reuse existing muscle memory, from having already used these linters manually.

Espansions

TriggerReplace
/nol//nolint:{{clipboard}}
/noa//nolint:all
#rcd# rubocop:disable {{clipboard}}
#rce# rubocop:enable {{clipboard}}
#rct# rubocop:todo {{clipboard}}
#cla#[allow({{clipboard}})]
#clw#[warn({{clipboard}})]
#cld#[deny({{clipboard}})]
#clp#![deny(clippy::pedantic)]
#scd# shellcheck disable={{clipboard}}