hauleth

hauleth

This is simple plugin that will output CodeClimate-compatible JSON containing messages from Credo. This is useful when used together with GitLab Code Quality reporting, like that:

lint:credo:
  stage: lint
  script:
    - mix credo
  dependencies:
    - compile:test
  artifacts:
    reports:
      codequality: codeclimate.json
  allow_failure: true
  needs: ['compile:test']

Hex:

Source:

https://github.com/hauleth/credo_code_climate

Usage is super simple:

  1. Add {:credo_code_climate, "~> 0.1.0", only: :dev, runtime: false} to dependencies list in mix.exs.
  2. Add {CredoCodeClimate, []} to plugin list in .credo.exs (you may need to generate that file with mix credo.gen.config first).

Now when you will run mix credo it will produce file codeclimate.json in your current working directory, that contain CodeClimate-compatible JSON result of lint.

First Post! Switch mode

hauleth

hauleth OP

BTW @rrrene it the documentation about plugins would require some love, because it is very nice feature, however it is very hard to find anything how to use it and I ended digging through codebase for anything.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
387 15136 120
New
woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
restlessronin
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API · GitHub. Docs are at OpenaiEx User Gu...
152 11030 135
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
shahryarjb
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly. One of i...
New
woylie
Phoenix components for pagination, sortable tables and filter forms with Flop and (optionally) Ecto. pagination cursor pagination sorta...
New
kip
Please say hi to a new lib, Astro that aims to deliver easy-to-consume astronomy calculations of practical use. For now it only calculat...
New

Other Trending Topics Top

akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
matt-savvy
Is there a word for the ~> symbol used in Version strings? Do you also just call it a Squiggle Arrow™ ?!
New

We're in Beta

About us Mission Statement