# `mix zen_websocket.validate_usage`
[🔗](https://github.com/ZenHive/zen_websocket/blob/v0.4.2/lib/mix/tasks/zen_websocket.validate_usage.ex#L1)

Validates that code follows ZenWebsocket usage rules.

This task helps ensure that your code correctly uses ZenWebsocket's
simplified API and follows best practices.

## Usage

    mix zen_websocket.validate_usage [files_or_paths]
    
## Options

  * `--strict` - Enable strict mode (fail on warnings)
  * `--fix` - Attempt to auto-fix simple issues
  * `--format` - Output format: `human` (default), `json`, or `github`
  
## Examples

    # Validate all Elixir files
    mix zen_websocket.validate_usage
    
    # Validate specific file
    mix zen_websocket.validate_usage lib/my_websocket.ex
    
    # Strict validation with GitHub Actions format
    mix zen_websocket.validate_usage --strict --format github
    
    # Auto-fix simple issues
    mix zen_websocket.validate_usage --fix

---

*Consult [api-reference.md](api-reference.md) for complete listing*
