Skip to content

Chore: fix typos - #3867

Merged
Loyalsoldier merged 1 commit into
masterfrom
copilot/fix-typos-in-project
Nov 3, 2026
Merged

Loyalsoldier merged 1 commit into
masterfrom
copilot/fix-typos-in-project

Conversation

Copilot AI commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Fixes spelling typos across the repo that don't change public APIs, import paths, or external config.

Changes

  • Comments
    • Examples: implemention, explictly, authencates, anounymous, procotols, defalut, backwords, fomats, Priotize, and the doubled word in "to to be".
    • When the comment is in a .proto file, the matching comment in the generated .pb.go is updated the same way, so the two stay in sync without running protoc again.
  • Runtime log and error strings
    • unknow dtls mode → unknown dtls mode
    • unix istener not registered → unix listener not registered
    • failed to dial namesever → failed to dial nameserver
    • cannot find implemention → cannot find implementation
    • server quitted → server quit
    • No test or other code in the repo checks these strings.
  • Test failure messages
    • unexpect, unpexcted, writtng, Exepct, splited, AddPoolMutli.
  • Docs and sample config
    • truely in the three issue templates.
    • overriden and policys in release/config/config.json.
  • Unexported identifiers and test names
    • innnerListener, addrProprty, getStatCouterConnection, muxPreferedSessionKey, readedLength, payloadHeaderAEADEncryptedReadedBytesCounts, the local spliter variable.
    • Test functions: TestHysteria2Offical, TestSerivceTestRoute, TestStatsChannelUnsubcribe, TestInvalidAddressConvertion.
  • File renames (Go file names don't affect any code)
    • grpc/encoding/customSeviceName.go → customServiceName.go
    • rriptMonoDirectionSession/contolMessages.go → controlMessages.go
    • tlsmirror/server/ciphersuits_lookup.go → ciphersuites_lookup.go

Not changed

Typo Reason
internet.StatCouterConnection, buf.BufferedReader.Spliter, session.ContextWithMuxPrefered / MuxPreferedFromContext Exported names. Renaming would break downstream users. If wanted, add correctly spelled names in a follow-up and mark these deprecated.
Package dirs abstactOutbound, rrpitDebuger, rriptMonoDirectionSession Renaming changes import paths.
SIGN_SERIVCE_URL (sign.yml, requestsign.sh) Reads the repo secret SIGN_SERIVCE_URL_V5, which only a maintainer can rename.
release/debian/changelog, release/debian/copyright Past release notes and license text.
release/extra/browserforwarder/index.js Generated file.

…e names

Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
@Loyalsoldier Loyalsoldier changed the title Fix typos across comments, messages, docs and internal identifiers Chore: fix typos Nov 3, 2026
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 44.00000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.78%. Comparing base (99957b4) to head (63ea26b).

Files with missing lines Patch % Lines
transport/internet/httpupgrade/hub.go 0.00% 3 Missing ⚠️
app/proxyman/outbound/handler.go 33.33% 2 Missing ⚠️
common/session/context.go 0.00% 2 Missing ⚠️
proxy/shadowsocks2022/udp_aes.go 0.00% 2 Missing ⚠️
common/buf/reader.go 80.00% 1 Missing ⚠️
common/registry/registry.go 0.00% 1 Missing ⚠️
transport/internet/dtls/dialer.go 0.00% 1 Missing ⚠️
transport/internet/tcp_hub.go 0.00% 1 Missing ⚠️
...tripperenrollmentconfirmation/serverinverserole.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3867   +/-   ##
=======================================
  Coverage   29.78%   29.78%           
=======================================
  Files         924      924           
  Lines       49945    49945           
=======================================
  Hits        14876    14876           
  Misses      35069    35069           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Loyalsoldier
Loyalsoldier marked this pull request as ready for review November 3, 2026 23:57
@Loyalsoldier
Loyalsoldier merged commit ec5ce8b into master Nov 3, 2026
42 checks passed
@Loyalsoldier
Loyalsoldier deleted the copilot/fix-typos-in-project branch November 3, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants