Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #67304

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from
Open

Fix typos #67304

wants to merge 5 commits into from

Conversation

szepeviktor
Copy link

@szepeviktor szepeviktor commented Nov 26, 2024

What?

Found few years of typos.

How?

Would you like me to work on it?

https://github.com/crate-ci/typos

Copy link

github-actions bot commented Nov 26, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: szepeviktor <[email protected]>
Co-authored-by: spacedmonkey <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: michalczaplinski <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core, Gutenberg Plugin.
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

1 similar comment
Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core, Gutenberg Plugin.
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Nov 26, 2024
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @szepeviktor! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@@ -11,7 +11,7 @@ export {
BlockAlignmentControl,
BlockAlignmentToolbar,
} from './block-alignment-control';
export { default as __experimentalBlockFullHeightAligmentControl } from './block-full-height-alignment-control';
export { default as __experimentalBlockFullHeightAlignmentControl } from './block-full-height-alignment-control';
Copy link
Member

Choose a reason for hiding this comment

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

I believe this was intentionally exported with a typo in the name for backward compatibility. If you check the export below, it has the correct name.

Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

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

@szepeviktor Thanks for the cleanup.

I think this PR contains a lot of unnecessary changes that need to be fixed and go through all CI. Could you address these issues?

"slug": "undestanding-global-state-local-context-and-derived-state",
"slug": "understanding-global-state-local-context-and-derived-state",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm concerned that changing this slug may have ramifications for syncing with the Block Editor Handbook.

cc @ndiego @juanmaguitar

const settedValue = duotonePreset
const setValue = duotonePreset
Copy link
Contributor

Choose a reason for hiding this comment

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

The name setValue is often used as the set function in the useState hook in Gutenberg projects.

To avoid confusion, how about using a different name? For example, duotoneValue.

{ label: 'European Central Time', value: 'ECT' },
{ label: 'European Central Time', value: 'ETC' },
Copy link
Contributor

Choose a reason for hiding this comment

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

This value is an abbreviation for "European Central Time", so no changes should be necessary.

Copy link
Author

Choose a reason for hiding this comment

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

@t-hamano This is a halfdone PR.

So do you give a green light?

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean this PR is still a work in progress? Could you give us more details?

Copy link
Author

Choose a reason for hiding this comment

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

This PR is the result of my default typos config + typos -w (autofix) + some manual work.
I need your confirmation before working on it for an hour or two.

- class="components-surface css-iin9ud-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
- class="components-surface css-in9ud-PolymorphicDiv-Surface-getBorders-primary e19lxcc00"
Copy link
Contributor

Choose a reason for hiding this comment

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

This change should not be necessary.

/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g, // fooBar => foo-bar, 3Bar => 3-bar
/(?!(?:1ST|2AND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g, // fooBar => foo-bar, 3Bar => 3-bar
Copy link
Contributor

Choose a reason for hiding this comment

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

This change should not be necessary.

desiredCaps.udid = androidDeviceID;
desiredCaps.uuid = androidDeviceID;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this can be changed.

local simulators=$(xcrun simctl list devices -j | jq -r --arg runtime "$runtime_name" '.devices | to_entries[] | select(.key | contains($runtime)) | .value[] | .name + "," + .udid')
local simulators=$(xcrun simctl list devices -j | jq -r --arg runtime "$runtime_name" '.devices | to_entries[] | select(.key | contains($runtime)) | .value[] | .name + "," + .uuid')
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this can be changed.

@@ -6,8 +6,8 @@ index ad6ff3f..e0a6d51 100644
lineHeight: number | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

This change seems to cause a lot of CI failures. I think this file cannot be modified because it is a patch for an external npm library.

<h2 class="wp-block-heading">ading</h2>
<h2 class="wp-block-heading">adding</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is intentional, so if we change it the tests should fail.

<pre class="wp-block-code"><code>ading
<pre class="wp-block-code"><code>adding
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is intentional, so if we change it the tests should fail.

@michalczaplinski michalczaplinski added the [Type] Code Quality Issues or PRs that relate to code quality label Nov 26, 2024
@@ -221,7 +221,7 @@ exports[`getChangelog verify that the changelog is properly formatted 1`] = `
- Don’t use TypeScript files in scripts package. ([54856](https://github.com/WordPress/gutenberg/pull/54856))
- ESLint: Update eslint-plugin-testing-library to v6. ([54910](https://github.com/WordPress/gutenberg/pull/54910))
- Fix end-to-end test: ”WP Editor Meta Boxes > Should save the changes”. ([51884](https://github.com/WordPress/gutenberg/pull/51884))
- Font Library: Avoid deprected error in test. ([54802](https://github.com/WordPress/gutenberg/pull/54802))
- Font Library: Avoid deprecated error in test. ([54802](https://github.com/WordPress/gutenberg/pull/54802))
Copy link
Contributor

@michalczaplinski michalczaplinski Nov 26, 2024

Choose a reason for hiding this comment

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

The "typos" in this file refer to the original PR names on github so probably cannot be changed.

Copy link
Contributor

@michalczaplinski michalczaplinski left a comment

Choose a reason for hiding this comment

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

I'd recommend to severely limit the scope of this PR. It's very hard to review and approve 436 typos across 259 files. As previously noted, many of the "typos" are not really typos here at all.

How about starting with just the typos in markdown files and code comments?

@szepeviktor
Copy link
Author

szepeviktor commented Nov 26, 2024

How about starting with just the typos in markdown files and code comments?

This is a good idea.
Although there are approx. 0 Markdown files involved and Typos works this way: typos -w.
So there is no --do-not-touch-the-code switch.

A) I could close this PR and provide you with my Typos configuration
B) I could work on this PR to remove all false positives

Please decide!

@szepeviktor
Copy link
Author

I've all I could.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants