-
Notifications
You must be signed in to change notification settings - Fork 921
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
Add spellcheck to CI #3557
Add spellcheck to CI #3557
Conversation
Signed-off-by: John Nunley <[email protected]>
winit is a large codebase and manually checking for typos is infeasible. This commit adds a spellcheck hook using cspell to the CI. That way we can be sure that there are no typos in our code before we commit. Signed-off-by: John Nunley <[email protected]>
src/platform/web.rs
Outdated
@@ -82,7 +82,7 @@ pub trait WindowExtWebSys { | |||
/// would prevent that. | |||
/// | |||
/// Some events are impossible to prevent. E.g. Firefox allows to access the native browser | |||
/// context menu with Shift+Rightclick. | |||
/// context menu with Shift+Right-click. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks arbitrary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally for combination words (like Rightclick) I try to split it into two words unless it isn't possible (it's part of public API).
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
In order to ensure that typos are not introduced in future commits, this commit adds a spellchecker to CI. See also: rust-windowing/winit#3557 Signed-off-by: John Nunley <[email protected]>
This commit adds a spellchecker to the CI pipeline. This prevents typos from being made in future commits. See also: rust-windowing/winit#3557 Signed-off-by: John Nunley <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've used cargo-spellcheck
and typos
before, but this one looks good as well.
This is great!
@@ -150,7 +151,7 @@ pub(crate) fn create_key_event( | |||
|
|||
let logical_key = match text_with_all_modifiers.as_ref() { | |||
// Only checking for ctrl and cmd here, not checking for alt because we DO want to | |||
// include its effect in the key. For example if -on the Germay layout- one | |||
// include its effect in the key. For example if -on the Germany layout- one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// include its effect in the key. For example if -on the Germany layout- one | |
// include its effect in the key. For example if -on the German layout- one |
@@ -17,7 +17,7 @@ use windows_sys::{ | |||
pub struct IUnknownVtbl { | |||
pub QueryInterface: unsafe extern "system" fn( | |||
This: *mut IUnknown, | |||
riid: *const GUID, | |||
r_iid: *const GUID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling that these are all named after the corresponding arguments in Win32?
Closing in favor of #3565 |
This commit adds a spellchecker to the CI pipeline. This prevents typos from being made in future commits. See also: rust-windowing/winit#3557 Signed-off-by: John Nunley <[email protected]>
In order to ensure that typos are not introduced in future commits, this commit adds a spellchecker to CI. See also: rust-windowing/winit#3557 Signed-off-by: John Nunley <[email protected]>
This commit adds a spellchecker to the CI pipeline. This prevents typos from being made in future commits. See also: rust-windowing/winit#3557 Signed-off-by: John Nunley <[email protected]>
winit is a large codebase and manually checking for typos is infeasible.
This commit adds a spellcheck hook using cspell to the CI. That way we
can be sure that there are no typos in our code before we commit.
WIP until I fix all of the typos.
CHANGELOG.md
if knowledge of this change could be valuable to users