Understand the purpose and philosophy of the Elixir Style Guide
masterThis style guide serves two primary purposes: it represents a personal standard for writing readable Elixir and acts as the foundational principles for Credo, an Elixir code analyzer.
The guide is non-dogmatic and focuses on three core principles:
- Consistency: Apply the same stylistic choices throughout your entire codebase.
- Readability: Prioritize code that is easy to comprehend (e.g., prefer spreading text vertically over horizontal density when in doubt).
- Maintainability: Use clear, non-confusing names and structures to ease long-term maintenance.
Following these principles helps make open-source Elixir code more accessible to the community.