Open naman070 opened 2 years ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: elbrujohalcon
:x: Naman Gupta
@naman070 You should run rebar3 test
on your code :)
So, at this stage, what's still missing is:
rebar.config
option within the hank
section.Thanks again :)
@elbrujohalcon What do you mean by your 1st point => "To make this option also available as a rebar.config option within the hank section.". Can you please elaborate more.
@elbrujohalcon What do you mean by your 1st point => "To make this option also available as a rebar.config option within the hank section.". Can you please elaborate more.
Yeah, I want users to be able to include this in their rebar.config
…
{hank, [{output_json_file, "/the/file/to/put/the/output.json"}]}.
And have Hank pick it up every time they run rebar3 hank
on the project.
Just like they can do now with ignore
or parsing_style
.
@elbrujohalcon
@elbrujohalcon Does the output of rebar3 test supposed to look like this?
===> Plugin jsx does not export init/1. It will not be used.
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling rebar3_hank
===> Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors.
src/rebar3_hank_prv.erl:43: The word "JSON" in string is unknown. Maybe you wanted to use "jason" or "sion" or "slon" or "soln" or "son" or "sond" or "sone" or "song" or "sonk" or "sons" or "soon" or "sorn" or "sown" or "jeon" or "joan" or "john" or "join" or "Tjon"?
@elbrujohalcon Does the output of rebar3 test supposed to look like this?
===> Plugin jsx does not export init/1. It will not be used. ===> Verifying dependencies... ===> Analyzing applications... ===> Compiling rebar3_hank ===> Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors. src/rebar3_hank_prv.erl:43: The word "JSON" in string is unknown. Maybe you wanted to use "jason" or "sion" or "slon" or "soln" or "son" or "sond" or "sone" or "song" or "sonk" or "sons" or "soon" or "sorn" or "sown" or "jeon" or "joan" or "john" or "join" or "Tjon"?
It's telling you that Sheldon (the spell checker) doesn't know the word "JSON". Add it to nextroll.dict and you will be able to move on... ;)
Provided an argument based option where if command is run like: rebar3 hank -o "output.json" then it stores the generated output of hank in the json file. This json file can further be used for better analysis of dead code.
Sample Json: