lint

Run standardrb, erblint, and brakeman checks on Ruby and ERB files.

240|75|Updated Jul 13, 2023
One-click install
npx skills add https://github.com/udecode/plate-playground-template --skill lint-udecode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint
Source: https://github.com/udecode/plate-playground-template/tree/main/.codex/skills/lint
Command: npx skills add https://github.com/udecode/plate-playground-template --skill lint-udecode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires standardrb, erblint, brakeman, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of running linting and code quality checks on Ruby and ERB files, ensuring code consistency and catching potential issues before they are committed.

Core Features & Use Cases

  • Ruby Linting: Runs standardrb to check and fix Ruby code style.
  • ERB Linting: Runs erblint to check and fix ERB template syntax and style.
  • Security Scanning: Utilizes brakeman to identify potential security vulnerabilities in Ruby on Rails applications.
  • Pre-commit Hook: Intended to be run before pushing code to version control.

Quick Start

Run linting and auto-fixing for all Ruby and ERB files in the project.

Frequently Asked Questions about lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run automated linting on Ruby and ERB files before committing code?

Automated linting on Ruby and ERB files runs standardrb and erblint to check and fix code style, enforcing coding standards before committing to version control.

What is the best way to scan Ruby on Rails applications for security vulnerabilities?

Scanning Ruby on Rails applications for security vulnerabilities uses brakeman to identify potential risks, ensuring code integrity by catching security issues before deployment.

Does this linting workflow support both Ruby code style and ERB template syntax?

Yes, this linting workflow supports both Ruby code style via standardrb and ERB template syntax via erblint, providing automated checks and fixes for both file types.

Can I integrate code quality checks into a pre-commit hook for Ruby projects?

Yes, you can integrate these code quality checks into a pre-commit hook, running standardrb, erblint, and brakeman to maintain code integrity and prevent regressions before pushing.

Why should I use standardrb and erblint instead of other Ruby linters for my project?

Using standardrb and erblint enforces consistent coding standards across Ruby files and ERB templates, automatically fixing style issues to maintain code quality and prevent regressions.

Do I need separate tools for Ruby code style and Rails security scanning?

No, you do not need separate tools; this workflow combines standardrb for Ruby style, erblint for templates, and brakeman for Rails security scanning into a single automated process.