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- Retained for compatibility; no automatic rewrites are performed--format- Output format:human(default),json, orgithub
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
# --fix is a no-op; it never rewrites files
mix zen_websocket.validate_usage --fix