Skip to content

Complexity of C code (1322) #772

Open
@GalacticEmperor1

Description

@GalacticEmperor1

Issue №1322 opened by illume at 2019-09-21 14:52:42

GNU complexity can find complex C functions (that probably should be refactored).
http://www.gnu.org/software/complexity/

brew install gnu-complexity

complexity src_c/*.c

Comments

# # illume commented at 2019-09-30 12:14:01

frama-c is another tool that can be used to find function complexity. https://frama-c.com/metrics.html


# # illume commented at 2020-09-09 05:55:56

A pygame.image.tostring cleanup PR was started here: pygame/pygame#1637


# # illume commented at 2020-11-11 08:03:47

I'd like to start making a list of issues for each of the functions that are too complex. Before writing lots of issues, I'd like to explore doing one issue all the way through. I've started writing an issue about display.set_mode complexity # 2316

These issues could be used for teaching, probably at an intermediate/advanced level.

We could learn from the image.tostring PR # 1637

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions