Skip to content

Conversation

@riderx
Copy link

@riderx riderx commented Nov 11, 2025

Corrected multiple typos and enhanced clarity in documentation throughout the codebase, ensuring consistency in variable names and comments.

I used typos-cli command to fix them and double checked by hands all was done properly

- Fixed typo in CHANGELOG.md for Android and CLI regarding Typescript upgrade commit hash.
- Corrected variable name from 'statememt' to 'statement' in MockCordovaWebViewImpl.java.
- Updated comments and documentation in multiple files to fix spelling errors and improve clarity.
- Changed 'overridenUserAgentString' to 'overriddenUserAgentString' in various iOS files for consistency.
- Fixed minor typos in HttpRequestHandler.swift and WebViewDelegationHandler.swift.
- Corrected test method names in BridgedTypesTests.swift and ConfigurationTests.swift for accuracy.
@markemer
Copy link
Member

markemer commented Nov 12, 2025

This is kinda neat - let me look into it. some issues.

  • We shouldn't point to crate-ci/typos@master
    • I swore there was a workflow in here? Is that another PR I lost track of?
  • This checker seems to change github SHAs in markdown, which is not ok.
  • Also, the docs changes are no brainers, but the spelling corrections on public methods may be breaking changes. I don't actually think they are in most cases, but I need to check

Copy link
Member

@markemer markemer left a comment

Choose a reason for hiding this comment

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

SHA changes need a revert to start.

@riderx
Copy link
Author

riderx commented Nov 12, 2025

@markemer i will revert and add .typo.toml to ensure it doesn't do this

riderx and others added 2 commits November 12, 2025 18:06
Reverts the commit hash changes in CHANGELOG files where typos CLI
incorrectly modified git commit hashes (e.g., 88d0ded -> 88d0dead).
All other legitimate typo fixes from the previous commit are preserved.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Add .typos.toml to prevent typos CLI from incorrectly modifying
git commit hashes in CHANGELOG files while still checking for
legitimate typos.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@riderx
Copy link
Author

riderx commented Nov 12, 2025

Hey @markemer we should be all good now do you want i merge the github action check in this one as well ?

@markemer
Copy link
Member

Hey @markemer we should be all good now do you want i merge the github action check in this one as well ?

That one is a bigger deal - but this one should be an easy sell.

@riderx
Copy link
Author

riderx commented Nov 12, 2025

The GitHub workflow was made only in the doc repo as PR ionic-team/capacitor-docs#481
I made it here as separate PR as well, added at lint stage #8232

.typos.toml Outdated
"ios/Capacitor/Capacitor.xcodeproj/xcshareddata/xcschemes/*.xcscheme",
"ios-pods-template/**/*.storyboard",
"ios-spm-template/**/*.storyboard",
"ios/Capacitor/TestsHostApp/**/*.storyboard",
Copy link
Member

Choose a reason for hiding this comment

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

We should exclude CHANGELOG.md so we don't modify any historical context, even if it has typos, IMO.

Copy link
Member

Choose a reason for hiding this comment

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

I went back and forth on that. Probably ok, but yeah, we should probably exempt them, also would save us the SHA headache.

Copy link
Author

Choose a reason for hiding this comment

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

i wasn't sure i will update PR

"tgz": "application/x-compressed",
"thmx": "application/vnd.ms-officetheme",
"thn": "application/octet-stream",
"then": "application/octet-stream",
Copy link
Member

Choose a reason for hiding this comment

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

This should remain thn I believe.

Copy link
Member

Choose a reason for hiding this comment

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

Yep - I found that one too.

"tgz": "application/x-compressed",
"thmx": "application/vnd.ms-officetheme",
"thn": "application/octet-stream",
"then": "application/octet-stream",
Copy link
Member

Choose a reason for hiding this comment

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

Caught another one.

Copy link
Member

@eric-horodyski eric-horodyski left a comment

Choose a reason for hiding this comment

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

This comment was accidentally left here, please ignore.

…files

- Reverts "thn" (Thompson thumbnail format) back from incorrect "then" change
- Adds "thn" to typos config to prevent future false positives
- Excludes all CHANGELOG files from typos checking
- Excludes Xcode project files (pbxproj, xcscheme, storyboard) that contain
  hex identifiers that should never be modified

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

3 participants