Skip to content

gh-133158: Adjust c-analyzer max_sizes for typeobject.c #133159

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sergey-miryanov
Copy link
Contributor

@sergey-miryanov sergey-miryanov commented Apr 29, 2025

@sergey-miryanov
Copy link
Contributor Author

I believe this PR should skip news.

@sergey-miryanov
Copy link
Contributor Author

@ericsnowcurrently Please take a look.

@sergey-miryanov
Copy link
Contributor Author

@ericsnowcurrently Please take a look as you got time.

Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do my best to review this, but I'm not at all an expert here.

@sergey-miryanov
Copy link
Contributor Author

@ZeroIntensity Thanks for review!

@sergey-miryanov
Copy link
Contributor Author

Command to run (I always forgot it):
.\python.bat Tools/c-analyzer/check-c-globals.py --format summary Objects/typeobject.c

@sergey-miryanov
Copy link
Contributor Author

Fixed, thanks! It is ready for review.

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
pass
elif maxlines and self.end - self.start > maxlines:
elif self.too_much_lines(maxlines):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but this should be called too_many_lines, not too_much_lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this because I want to return too_much prefix to link to previous version of code. But I think it is ok to change this prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants