Coder Social home page Coder Social logo

Sublime text plugin about credo HOT 22 CLOSED

rrrene avatar rrrene commented on August 29, 2024
Sublime text plugin

from credo.

Comments (22)

johantell avatar johantell commented on August 29, 2024 2

I just created a plugin for sublime text
https://github.com/mintcore/SublimeLinter-contrib-credo/

It's not in package control just yet (SublimeLinter/package_control_channel#37)

from credo.

smeevil avatar smeevil commented on August 29, 2024 1

@rrrene Getting a lot of positive feedback on Twitter regarding the linter for Atom.
As far as I can see, you can close this issue now, and maybe reference the linter in the readme ?

Anyways, all possible due to the read-from-stdin and flycheck format :)

from credo.

rrrene avatar rrrene commented on August 29, 2024

Not at the moment. What would be needed from Credo for someone to implement that?

I thought about adding Flycheck support in the next revision. Might that be a start?

from credo.

gogogarrett avatar gogogarrett commented on August 29, 2024

I'm not sure about the specifics as I have not done this myself, but I use sublime linter with the eslint - er.

I have found this elixir sublime package that aims to do some basic linting, but I would really love to see if we could get credo integrated as well!

from credo.

chenghanlee avatar chenghanlee commented on August 29, 2024

+1 for this suggestion.

I have no idea how to build a sublime plugin, but having credo as psudo, elixir linter for sublime would be fantastic.

from credo.

hunterboerner avatar hunterboerner commented on August 29, 2024

+1 for Flycheck support.

from credo.

rrrene avatar rrrene commented on August 29, 2024

Okay, I will try to get something done by the end of the week / on the weekend. ๐Ÿ‘

We will need beta testers for this. Any volunteers?

from credo.

c-rack avatar c-rack commented on August 29, 2024

@rrrene feel free to ping me if there is anything to test

from credo.

rrrene avatar rrrene commented on August 29, 2024

@c-rack @hunterboerner I just pushed Credo 0.3.0-dev to Hex.pm ...

{:credo, "0.3.0-dev", only: [:dev, :test]}

You can test the Flycheck output via mix credo --format=flycheck ๐Ÿ‘

from credo.

smeevil avatar smeevil commented on August 29, 2024

Hi,

I just got Dogma working with Flycheck and am now looking into getting Credo to work as well.
I tested the latest build with the Flycheck format and that is looking quite ok.

My question is though, is it possible to give Credo just one file to check in stead of everything ?

For example mix credo --format=flycheck ./path/to/file.ex which will only run the rule set on that file.
This would significantly speed up the check as well :)

Let me know if i can be of any assistance !

from credo.

rrrene avatar rrrene commented on August 29, 2024

mix credo --format=flycheck ./path/to/file.ex should work (and does for me on Credo v0.3.3).

Doesn't it for you?

from credo.

smeevil avatar smeevil commented on August 29, 2024

Ah that works only in combination with the --format=flycheck
Sorry I did not try that !

I'll attempt to make a Flycheck.checker now :)

from credo.

smeevil avatar smeevil commented on August 29, 2024

If you are interested, here is the flycheck checker.
It works like a charm and chains Dogma after it is done as well.

https://github.com/smeevil/flycheck-elixir-credo

I only encounter one slight problem with running credo in the flymode format, which is that every error is being output 4 times and it always gives the duplicate code warning at line 1

example :

example

from credo.

rrrene avatar rrrene commented on August 29, 2024

Definitely a bug. Will have a look tonight!

from credo.

rrrene avatar rrrene commented on August 29, 2024

@smeevil Fix included in v0.3.4! Can you confirm this works as expected?

from credo.

smeevil avatar smeevil commented on August 29, 2024

I did a quick test and it seems like its fixed indeed :) will let you know tomorrow when iโ€™ve done some more testing with it :)
Thanks for the quick response !

Gerard.

On 29 Feb 2016, at 21:11, Renรฉ Fรถhring [email protected] wrote:

@smeevil https://github.com/smeevil Fix included in v0.3.4! Can you confirm this works as expected?

โ€”
Reply to this email directly or view it on GitHub #27 (comment).

from credo.

smeevil avatar smeevil commented on August 29, 2024

@gogogarrett I am not an atom user myself, but I gave it a shot to create a linter for it anyways, because, why not :)

Is this what you are looking for :

2016-03-29 at 14 25

You can install it by using apm install linter-elixir-credo
or see https://atom.io/packages/linter-elixir-credo and https://github.com/smeevil/linter-elixir-credo

Please let me know what you think :)

Gerard.

from credo.

gogogarrett avatar gogogarrett commented on August 29, 2024

Thanks a lot for this - it works really well! Very much appreciated.

from credo.

radik909 avatar radik909 commented on August 29, 2024

Can anyone create a plugin for sublime as well?

from credo.

joshjg avatar joshjg commented on August 29, 2024

Created a plugin for VS Code

from credo.

rrrene avatar rrrene commented on August 29, 2024

@joshjg Great! You could post that on http://elixirstatus.com and I will include it in the next ElixirWeekly!

from credo.

rrrene avatar rrrene commented on August 29, 2024

@mintcore Cool! Feel free to ping me when it's merged into PackageControl ๐Ÿ‘

from credo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.