RSS Amplifier

faster. - AI-Assisted Development · Feb 24, 2026

Finding and fixing code idioms

0
Sign in to vote or save

faster.dev

The "audit idiomatic" command is used to analyze a codebase and identify deviations from idiomatic practices within the existing stack (Rest, React, UI). It aims to enforce consistency and best practices by comparing the current code against established conventions.

The command detects the tech stack, including TypeScript, Rust, Tauri, React, Zustand, and Tailwind. It found exemplary TAM stack querying, likely due to strict rules set up by a prior "init" command that enforces specific coding standards.

The audit identified several inconsistencies, including:

  • Inconsistent className merging in UI components, favoring template literals over the standard CN function.
  • Duplicate components arising from a transition from a custom UI framework to ShadCN.
  • The use of expect calls in non-test production paths, which can cause application crashes.
  • Inconsistent ARIA attributes.
  • Duplicate components with different variants (e.g., ShadCNButton and CustomWrapperButton).
  • Repetitive chains of code (e.g., isConvertedToString which already implements display).

The audit also suggested improvements such as using a consistent useAppError function and standardizing style preferences for code cohesion, like eliminating hardcoded values (e.g., hardcode 26).

The speaker intends to use the command in "plan mode" to generate a plan for fixing the identified issues, review the plan, and then execute it to improve the codebase's consistency and quality.

Read the original on faster.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.