Credo/Dogma codeclimate reporter

156 views
Skip to first unread message

Michael Schaefermeyer

unread,
Nov 30, 2015, 6:41:57 PM11/30/15
to elixir-lang-talk
Hey all,

I was wondering how hard it would be to add a Credo or Dogma Code Climate Reporter.

Now that Code Climate offers Code Climate platform, they basically allow any 3rd-party linting tool to report to Code Climate. All you have to do is to conform to their spec in your output format.

See their platform announcement here:

I'd be happy to help - should be as easy as adding a reporter to the projects.

Thanks

Louis Pilfold

unread,
Dec 3, 2015, 5:28:45 PM12/3/15
to elixir-lang-talk
Hey Michael!

I started the Dogma project, so I could help here. :)

Anyone could implement the output part today using the configurable
formatter/reporter part of Dogma. The input would require a little
more work within the project itself.

We would need to build a way to use Dogma as a single executable file
that could run a machine that may not have Erlang installed on it.
This is not something I know anything about- how difficult would this
be?

I think it'd be great to see Dogma and Credo working on codeclimate,
and am happy to help out here.

Cheers,
Louis

On 30 November 2015 at 23:41, Michael Schaefermeyer
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/33fee9d4-a00f-4d16-bbbf-26b02571cba6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Louis Pilfold

unread,
Dec 3, 2015, 5:32:09 PM12/3/15
to elixir-lang-talk
Oh, now I reread I'm not sure I understood the spec. It says that they
are distributed as a docker image. I've not used docker- does this
mean we can specify that this image contains the Erlang runtime?

Devon Blandin

unread,
Feb 25, 2016, 10:56:08 PM2/25/16
to elixir-lang-talk, lo...@lpil.uk
Hi Michael and Louis,

I'm an engineer at Code Climate and have just begun to explore bringing Credo and Dogma into the Code Climate platform. We have two types of engines these days: wrapper engines, which rely on the underlying tool as a dependency, and native engines, which are tools that support the Code Climate spec internally.

Among our wrapper engines are codeclimate-bundler-audit, codeclimate-rubocop and among our native engines are brakeman and radon.

All of these engines are eventually packaged as docker images, and many engines require certain languages or dependencies available. The codeclimate-hlint engine is interesting in that it includes two Dockerfiles, one that includes the Haskell runtime and builds an executable, and another which builds the engine image, pulling in the compiled executable. Maybe a similar approach would work for engines targeting the elixir language?

Also, it looks like someone has already started work towards an engine targeting elixir code (supporting both credo and dogma) on GitHub! https://github.com/fazibear/codeclimate-elixir

I'm happy to answer any questions you might have and help out with the engine development. I was pleased to find this thread!

Best wishes,

Devon Blandin
Reply all
Reply to author
Forward
0 new messages