dwyl/learn-elixir

Run `mix credo` on `GitHub Actions` for Code Consistency 😍

开放

#235 创建于 2026年7月29日

 (1 条评论) (0 个反应) (1 位负责人)Elixir (113 个派生)batch import
T25mdocumentationelixirenhancementhelp wantedpriority-2technical

仓库指标

星标
 (1,695 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Context

We have used 3rd party code quality badges e.g. CodeClimate in the past. But haven't applied them to our Elixir projects ... until now! 🤷‍♂️

Example

while reading: https://github.com/cesium/safira discovered via @ruilopesm & @nelsonmestevao 🫶

we see they have the following badge: code quality prominently displayed:

The action is: /cesium/safira/.github/workflows/style.yml

Note: we are using credo in several projects e.g: mvp just not running the mix task on GitHub Actions or displaying a badge for "Code Quality".

Todo ✅

  • Document the setup steps in a code-style.md file in this (/learn-elixir) repo. 📝
    • Create PR here in /learn-elixir 🆕
  • Add it to at least one repo, e.g: fields 🌻
  • Run the mix credo --all --strict on localhost to ensure it passes; 💻
    • Make any necessary changes. 🛠️
  • Add a flat-square badge to the repo. 🏷️
  • Create PR in the repo where the style.yml task is being added. :shipit:
  • Submit for review. 👀

贡献者指南