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
آخر نشاط في المصدر
٨ سبتمبر ٢٠٢٦ في ١٣:٤٥
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٥٣٣
التفرعات
٥٦

خيارات التثبيت

يُحدَّد 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