Hi,
Jeremy wrote:
> *pylint hangs*
> Which suggests to me that a regex (looking for '# pylint:' options)
> being applied to such a huge line is causing that hang. Observe that
> just 17,000 characters on a line is causing a hang of at least 15
> minutes on the server. Removing the whitespace prevents the hang from
> occurring.
I can't reproduce this locally on my machine using their source code.
Admitedly I'm running a much more powerful machine than badger, but
I'm also wondering if having a newer pylint (1.1.0 vs 0.26) results in
it dealing with this much better. (The regex is different between
badger's and my Ubuntu's versions, but I can't find any mention of
badger's one in the pylint history, which is odd).
A quick google suggests that there isn't a way to avoid it searching
for that pattern, but the other suggested fixes should mean that that
doesn't matter anyway.
> IMO enforcing a max-line limit on
> competitors code isn't unreasonable if this is going to be a problem.
Presumably you mean a max file-length or line-length limit, rather
than a line limit here?
Sam wrote:
> We should make the IDE strip all trailing whitespace on behalf of the users.
We might as well do this client side, since we can't easily force this
in commits they make outside the IDE.
Rob wrote:
> Another thing we could also do is limit the runtime of the pylint
> process.
Both of these are certainly do-able. I'll have a look this weekend if
I find time.
Peter