-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gracefully handle invalid ‘ignore-paths’ regex crash #9680
Comments
Thank you for opening the issue. This check created so much crashes since its creation. I would never have anticipated the crazy code constructs that can ends up in an enumerate when reviewing it. |
Thank you. It looks like the >>> import re
>>> re.match('project/tooling_context/**', 'project')
...
...
re.error: multiple repeat at position 25 |
Hmm, you're right, I have triaged too fast, I see an enumerate with a crash and I don't think anymore 😅 |
Although we could handle the crash gracefully so some change is probably required :) |
itertools.repeat
raises ExceptionFix 'ignore-paths', in particular, but others using this function too. Closes pylint-dev#9680
Fix 'ignore-paths', in particular, but others using this function too. Closes #9680
Bug description
Pylint fails with an error when executed on the following snippet:
Configuration
Command used
Pylint output
Expected behavior
Pylint should run without exceptions
Pylint version
OS / Environment
MacOS Sonoma 14.5
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: