Skip to main content

install-linter

Install the torrust-linting `linter` binary and its external tool dependencies. Use when setting up a new development environment, after a fresh clone, or when the `linter` binary is missing. Triggers on "install linter", "setup linter", "linter not found", "install torrust-linting", "missing linter binary", or "set up development environment".

소스 정보

저장소
torrust/torrust-tracker
최근 소스 활동
2026년 9월 8일 13:45
감지된 SKILL.md 언어
영어
스타
533
포크
56

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
install-linter
description
Install the torrust-linting `linter` binary and its external tool dependencies. Use when setting up a new development environment, after a fresh clone, or when the `linter` binary is missing. Triggers on "install linter", "setup linter", "linter not found", "install torrust-linting", "missing linter binary", or "set up development environment".
metadata
{"author":"torrust","version":"1.0"}
# Install the Linter The project uses a unified `linter` binary from [torrust/torrust-linting](https://github.com/torrust/torrust-linting) to run all quality checks. ## Install the `linter` Binary ```bash cargo install --locked torrust-linting@0.2.0 --bin linter ``` Verify the installation: ```bash linter --version ``` ## Install External Tool Dependencies The `linter` binary delegates to external tools. Install them if they are not already present: | Linter | Tool | Install command | | ----------- | ---------------- | ------------------------------------- | | Markdown | markdownlint-cli | `npm install -g markdownlint-cli` | | YAML | yamllint | `pip3 install yamllint` | | TOML | taplo | `cargo install taplo-cli --locked` | | Spell check | cspell | `npm install -g cspell` | | Local links | lychee | `cargo install lychee --locked` | | Shell | shellcheck | `apt install shellcheck` | | Rust | clippy / rustfmt | bundled with `rustup` (no extra step) | > The `linter` binary will attempt to install missing npm-based tools automatically on first run. > System-packaged tools (`yamllint`, `shellcheck`) must be installed manually. ## Configuration Files The `linter` binary has **no configuration file of its own**. It delegates to each external tool, which reads its own config file from the project root. These files are already present in the repository — no manual setup is needed: | File | Used by | | -------------------- | ------------ | | `.markdownlint.json` | markdownlint | | `.yamllint-ci.yml` | yamllint | | `.taplo.toml` | taplo | | `cspell.json` | cspell | | `lychee.toml` | lychee | | `rustfmt.toml` | rustfmt | > **Note**: Files listed in `.gitignore` are **not** automatically excluded from linting. > Each tool has its own ignore mechanism (e.g. `.markdownlintignore` for markdownlint). > Add `.gitignore` paths to the appropriate per-linter ignore file when needed. ## Verify Full Setup After installing the binary and its dependencies, run all linters to confirm everything works: ```bash linter all ``` It must exit with code `0`. See the `run-linters` skill for day-to-day usage.
GitHub에서 보기