Prospector 1.16.1 is no longer ignoring my tests folder
#743
|
I've started having CI failures with 1.16.1 as it now seems to be linting files under my Did something change in the underlying tools to cause this? |
Replies: 2 comments 4 replies
|
Can you provide information to be able to reproduce it and the latest working version? |
|
The idea was that which files to include or ignore was set in profiles, command-line flags like The idea of running it in pre-commit wasn't present in the design of that. I think if prospector is aware that it's running as a pre-commit hook, it could change its behaviour, however it sounds likes a problem of usage not the tool - an unfortunate side effect of how pre-commit works. The only thing I'd say is that it's a bit counterintuitive for users, because they do not explicitly pass in the list of files, but rather pre-commit does, and so that behaviour is a bit strange to them. In my ideal world, prospector using command-line positional arguments for paths but deprioritising them when in 'pre-commit' mode would make it nicer for users, but possibly would lead to additional confusion in other cases I haven't thought of. Basically - if we could make it easier to use as a pre-commit hook without requiring user configuration, I'm all for it, but I am not sure that all solutions in that direction would be problem-free. Also this requires knowing that prospector is being run as a hook, which I imagine is possible but I am not sure. |
I think this is a pre-commit configuration problem to solve, and that prospector is doing the right thing.