Comments (22)
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.
@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.
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.
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.
+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.
+1 for Flycheck support.
from credo.
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.
@rrrene feel free to ping me if there is anything to test
from credo.
@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.
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.
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.
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.
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 :
from credo.
Definitely a bug. Will have a look tonight!
from credo.
@smeevil Fix included in v0.3.4
! Can you confirm this works as expected?
from credo.
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.
@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 :
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.
Thanks a lot for this - it works really well! Very much appreciated.
from credo.
Can anyone create a plugin for sublime as well?
from credo.
from credo.
@joshjg Great! You could post that on http://elixirstatus.com and I will include it in the next ElixirWeekly!
from credo.
@mintcore Cool! Feel free to ping me when it's merged into PackageControl ๐
from credo.
Related Issues (20)
- Predicate callbacks from behavior are not ignored HOT 2
- Issue with Unused variables confused about the strategy HOT 1
- missing spec on unquoted function raise error HOT 3
- Credo.Check.Warning.WrongTestFileExtension displayed in non-test module in v1.7.4 HOT 8
- NoAmbiguousAliases fails on function param with name alias HOT 3
- "Most of the time you are using the multi-alias/require/import/use syntax..." with compile_env HOT 4
- Gracefully handle output of bitstring `:message` in `%Credo.Issue{}` HOT 8
- False positive: spec in quoted HOT 3
- False Positive: Macro sigils with uppercase words HOT 4
- `UnusedKeywordOperation` check should ignore `Keyword.validate!/2` HOT 4
- Arguable advice from `Credo.Check.Refactor.AppendSingleItem` HOT 1
- Predicate function names should not start with 'is', and should end in a question mark flagged for :ets.whereis HOT 2
- Not ready for Elixir 1.16: a lot of 'warning: negative steps are not supported in Enum.slice/2 HOT 1
- Elixir 1.17 issues HOT 7
- Dependency divergence on compile HOT 2
- Unicode characters (arrows) that indicate priority of found issues not printed correctly HOT 2
- Credo.Check.Warning.Dbg: doesn't warn when using `&dbg/1`
- Error `mix credo` on Elixir 1.17 and Erlang/OTP 27 HOT 4
- Credo.Check.Design.SkipTestWithoutComment and many others, fail to run (Elixir 1.17 issue?) HOT 1
- Error upgrading project to Elixir 1.17 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from credo.