# Coding Standards ## Existing Standards Compliance **Code Style:** Follow existing RuboCop configuration (frozen_string_literal, line length, etc.) **Linting Rules:** RuboCop for Ruby, ESLint for Vue/JavaScript **Testing Patterns:** RSpec with FactoryBot, existing test helpers **Documentation Style:** Inline comments for complex logic, model annotations ## Enhancement-Specific Standards **New Patterns for Cohort Management:** - **State Management:** Use state machine pattern for cohort/enrollment states - **Service Objects:** All complex business logic in `lib/cohorts/` - **Vue Composition API:** All new Vue components use `