Skip to content

tidy-up: miscellaneous#21646

Closed
vszakats wants to merge 25 commits into
curl:masterfrom
vszakats:tidy26054
Closed

tidy-up: miscellaneous#21646
vszakats wants to merge 25 commits into
curl:masterfrom
vszakats:tidy26054

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented May 16, 2026

  • fix typos and wording in documentation and comments.
  • KNOWN_BUGS: merge duplicate H1 section.
  • test_10_proxy: delete stray expressions.
  • Perl: while()while(1).
  • Perl: fix indent, whitespace, drop redundant quotes and parentheses.
  • fix casing: URL, SSL, Windows.
  • badwords: readd threadsafe, add well-known (and fix it).
  • replace WinXP -> Windows XP to match other uses.

@vszakats vszakats marked this pull request as draft May 16, 2026 18:08
@github-actions github-actions Bot added the tests label May 16, 2026
@bagder
Copy link
Copy Markdown
Member

bagder commented May 16, 2026

this title and description don't explain what this PR is about, only who brought the complaint.

@vszakats
Copy link
Copy Markdown
Member Author

vszakats commented May 16, 2026

I'm aware, yes. It's a temporary title, wanted to make it pass CI first.
There is also two subcommits to double-check (hence in draft yet).

(edit: with Code Quality fixes there is some rush involved, because
the reports may disappear anytime.)

@bagder
Copy link
Copy Markdown
Member

bagder commented May 16, 2026

We ask everyone to describe their PRs. I think it is prudent of us maintainers to lead by example. So even if it takes 12 extra seconds, please use a title that explains it somewhat.

Many people see and read the PRs as shown, so it is a courtesy to all those readers.

@vszakats vszakats changed the title tidy-up: code quality fixes [WIP] code quality fixes May 16, 2026
@vszakats
Copy link
Copy Markdown
Member Author

vszakats commented May 16, 2026

I'm not yet sure what the title will be, it may be multiple PRs. CQ reports
are a mixture of everything. I can't give it a good title at this point, except
[WIP], or tidy-up: misc. Or closing and keeping it local till I have time
to sort and double-check. Sorry about this, this feels a little too harsh, and
I take extreme care of wording titles and PR text.

@vszakats vszakats closed this May 16, 2026
@bagder
Copy link
Copy Markdown
Member

bagder commented May 16, 2026

I'm sorry, I certainly don't mean to be harsh. I wanted to make a gentle reminder.

@vszakats vszakats changed the title [WIP] code quality fixes [WIP] fix misc issues reported by GitHub Code Quality May 16, 2026
@vszakats
Copy link
Copy Markdown
Member Author

no worries, probably one should not be looking at the CQ page in a hurry anyway.
Thinking how to deal with CQ reports... it's a slot machine except refreshing itself
automatically, with a mixture of new issues everytime. How to convert this into
meaningful commits, grouped by topic, esp. when a new round of issues needs
commiting the previous round? At libssh2 (e.g. on 2026-04-30) this resulted in
a series of commits with decreasingly coherent commit messages.

Maybe exporting the current report page as text could help.

vszakats added a commit that referenced this pull request May 19, 2026
- replace `goto` with `while` loop.
- fix newlines in a warning message.
- handle open error for `curl/curlver.h` header.

Ref: #21646

Closes #21670
vszakats added a commit that referenced this pull request May 19, 2026
vszakats added a commit that referenced this pull request May 19, 2026
After this patch `://` schemes are lowercase and enclosed in backticks.

Also:
- docs/libcurl/libcurl-multi.md: drop a stray C code fence.
- docs/libcurl/libcurl-tutorial.md: replace single/double quotes with
  Markdown markup where applicable.

Ref: #21646

Closes #21674
@vszakats vszakats reopened this May 19, 2026
@github-actions github-actions Bot added cmdline tool libcurl API CI Continuous Integration labels May 19, 2026
@vszakats vszakats changed the title [WIP] fix misc issues reported by GitHub Code Quality tidy-up: miscellaneous May 19, 2026
@vszakats vszakats marked this pull request as ready for review May 19, 2026 15:50
@vszakats
Copy link
Copy Markdown
Member Author

Catching this up again after moving some groups of fixes to other PRs, and adding a bunch more misc small fixes.

@vszakats vszakats closed this in b3f76b2 May 19, 2026
@vszakats vszakats deleted the tidy26054 branch May 19, 2026 22:51
vszakats added a commit that referenced this pull request May 20, 2026
"Lines 244-245 overwrite global variables `$runnerr` and `$runnerw` that
were already assigned in the child process (lines 205-206). In the
parent process context, these assignments appear incorrect and could
cause issues if `runner_init` is called multiple times. The parent
should only store references in the controller hashes."

It could never cause an actual issue, but clarifies the intent of the
code.

Spotted and fixed by GitHub Code Quality

Cherry-picked from #21646

Closes #21672
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
- replace `goto` with `while` loop.
- fix newlines in a warning message.
- handle open error for `curl/curlver.h` header.

Ref: curl#21646

Closes curl#21670
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
After this patch `://` schemes are lowercase and enclosed in backticks.

Also:
- docs/libcurl/libcurl-multi.md: drop a stray C code fence.
- docs/libcurl/libcurl-tutorial.md: replace single/double quotes with
  Markdown markup where applicable.

Ref: curl#21646

Closes curl#21674
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
- fix typos and wording in documentation and comments.
- KNOWN_BUGS: merge duplicate H1 section.
- test_10_proxy: delete stray expressions.
- Perl: `while()` -> `while(1)`.
- Perl: fix indent, whitespace, drop redundant quotes and parentheses.
- fix casing: URL, SSL, Windows.
- badwords: readd `threadsafe`, add `well-known` (and fix it).
- replace `WinXP` -> `Windows XP` to match other uses.

Closes curl#21646
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
"Lines 244-245 overwrite global variables `$runnerr` and `$runnerw` that
were already assigned in the child process (lines 205-206). In the
parent process context, these assignments appear incorrect and could
cause issues if `runner_init` is called multiple times. The parent
should only store references in the controller hashes."

It could never cause an actual issue, but clarifies the intent of the
code.

Spotted and fixed by GitHub Code Quality

Cherry-picked from curl#21646

Closes curl#21672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants