Open maxcodes opened 6 years ago
Thanks for the report, but I'm afraid recently I don't have enough time to work on this project. Any PullRequest is appreciated if you can dig this.
The problem stems from this issue in danger itself: https://github.com/danger/danger/issues/1041
TL;DR: Danger tries to gather info on the plugins and calls every method in the plugin that has no parameters, which in danger-eslint's case also includes #lint
which is called without any options, which leads to it going through (at least in our case) much bigger pile of files than it would be with options.
Easy fix would be to add a bogus parameter to the plugins #lint
method. I can provide a PR if @leonhartX is on board with that solution.
When trying to run
bundle exec danger pr
, The command gets hung for a looong time and eventually times out. The problem disappears if I remove danger-eslint from Gemfile and Dangerfile (just removing from Dangerfile doesn't seem to fix it).I
Interrupt
ed the command, and this is the stacktrace:Command run:
Output