Skip to content

CI: Clean up codespell ignores#120906

Open
Repiteo wants to merge 1 commit into
godotengine:masterfrom
Repiteo:ci/codespell-cleanup
Open

CI: Clean up codespell ignores#120906
Repiteo wants to merge 1 commit into
godotengine:masterfrom
Repiteo:ci/codespell-cleanup

Conversation

@Repiteo

@Repiteo Repiteo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What problem(s) does this PR solve?

Our number of codespell exceptions was overzealous, causing actual errors and bad practices to slip through the cracks. This PR strips out the majority of those ignored words, whether by addressing their use directly or ignoring instances that can't be reasonably worked around

Additional information

Adds a special regex to handle "colour" as an alias in documentation. Now codespell will ignore any text within a keywords block

@Repiteo Repiteo added this to the 4.x milestone Jul 3, 2026
@Repiteo Repiteo requested review from a team as code owners July 3, 2026 18:45
@Repiteo Repiteo removed request for a team July 3, 2026 18:45
@Repiteo Repiteo removed request for a team July 3, 2026 18:45
@Repiteo Repiteo force-pushed the ci/codespell-cleanup branch from e6e9a37 to 8c38ad0 Compare July 3, 2026 18:54
real_t nd = n.dot(res);
if (nd < d) {
d = nd;
real_t ndist = n.dot(res);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could rename n to segment_dir or segment_direction or something.

Comment thread drivers/gles3/storage/mesh_storage.cpp Outdated
int row = te->get_caret_line();
int h = te->get_h_scroll();
int v = te->get_v_scroll();
CodeEdit *teditor = get_text_editor();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not text_editor?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's what it was originally, but it turns out that it shadowed a private variable of the same name from a parent class. I suppose I could prepend an underscore to the private variable instead, which would let this be named text_editor safely

real_t nd = n.dot(res);
if (nd < d) {
d = nd;
real_t ndist = n.dot(res);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Another case where we should rename n to segment_direction or something.

@Repiteo Repiteo force-pushed the ci/codespell-cleanup branch from 8c38ad0 to e8b3c89 Compare July 3, 2026 19:31
@AThousandShips AThousandShips changed the title CI: Cleanup codespell ignores CI: Clean up codespell ignores Jul 4, 2026
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.

2 participants