Loading...

CLI Overview

Quick Start Guide

wheels info

wheels reload

wheels deps

wheels destroy

wheels watch

wheels generate app

wheels generate app-wizard

wheels generate controller

wheels generate model

wheels generate view

wheels generate property

wheels generate route

wheels generate resource

wheels generate api-resource

wheels generate frontend

wheels generate test

wheels generate snippets

wheels scaffold

wheels test

wheels test run

wheels test coverage

wheels test debug

wheels config list

wheels config set

wheels config env

wheels env

wheels env setup

wheels env list

wheels env switch

wheels environment

wheels console

wheels runner

wheels server

wheels server start

wheels server stop

wheels server restart

wheels server status

wheels server log

wheels server open

wheels plugins

wheels plugins list

wheels plugins install

wheels plugins remove

wheels analyze

wheels analyze code

wheels analyze performance

wheels analyze security

wheels security

wheels security scan

wheels optimize

wheels optimize performance

wheels docs

wheels docs generate

wheels docs serve

wheels ci init

wheels docker init

wheels docker deploy

wheels deploy

wheels deploy audit

wheels deploy exec

wheels deploy hooks

wheels deploy init

wheels deploy lock

wheels deploy logs

wheels deploy proxy

wheels deploy push

wheels deploy rollback

wheels deploy secrets

wheels deploy setup

wheels deploy status

wheels deploy stop

Configuration Management

Creating Commands

Service Architecture

Migrations Guide

Testing Guide

Ask or search...
Ctrl K
Loading...

wheels analyze

These commands works correctly without options (parameters). Option support is under development and will be available soon.

Base command for code analysis and quality checks.

Synopsis

wheels analyze [subcommand] [options]

Description

The wheels analyze command provides comprehensive code analysis tools for Wheels applications. It helps identify code quality issues, performance bottlenecks, security vulnerabilities, and provides actionable insights for improvement.

Subcommands

| Command | Description | |---------|-------------| | code | Analyze code quality and patterns | | performance | Analyze performance characteristics | | security | Security vulnerability analysis (deprecated) |

Options (Coming Soon)

| Option | Description | |--------|-------------| | --help | Show help information | | --version | Show version information |

Direct Usage

When called without subcommands, show list of available commands:

wheels analyze help

Analysis Overview

The analyze [code, performance, security] commands examines:

Code Quality

  • Coding standards compliance
  • Code complexity metrics
  • Duplication detection
  • Best practices adherence

Performance

  • N+1 query detection
  • Slow query identification
  • Memory usage patterns
  • Cache effectiveness

Security

  • SQL injection risks
  • XSS vulnerabilities
  • Insecure configurations
  • Outdated dependencies

Best Practices

  1. Run analysis regularly
  2. Fix high-priority issues first
  3. Set realistic quality gates
  4. Track metrics over time
  5. Integrate with development workflow

Troubleshooting

Analysis Takes Too Long

  • Exclude wheels directories
  • Use incremental mode
  • Increase memory allocation

Too Many False Positives

  • Tune rule sensitivity
  • Add specific ignores
  • Update rule definitions

Notes

  • First run may take longer due to initial scanning
  • Results are cached for performance
  • Some rules require database connection
  • Memory usage scales with codebase size

See Also