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

Spelling #1375

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open

Spelling #1375

wants to merge 48 commits into from

Conversation

jsoref
Copy link

@jsoref jsoref commented Sep 23, 2021

This PR corrects misspellings identified by the check-spelling action.

The misspellings have been reported at jsoref@25c4e10#commitcomment-56931936

The action reports that the changes in this PR would make it happy: jsoref@0882626

Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
@jsoref jsoref requested a review from a team as a code owner September 23, 2021 06:24
@jsoref jsoref requested review from hdonnay and removed request for a team September 23, 2021 06:24
@app-sre-bot
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Author

@jsoref jsoref left a comment

Choose a reason for hiding this comment

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

Most corrections were selected automatically using Google Sheets, with two exceptions that I can recall

@@ -647,7 +647,7 @@
- [162e8cd](https://github.com/quay/clair/commit/162e8cdafc66be28b021f83da736a2b612ddda99): enable suse updater
- [0609ed9](https://github.com/quay/clair/commit/0609ed964b0673806462a24147e6028da85d8a38): removed worker config
- [af2c688](https://github.com/quay/clair/commit/af2c68863482ae9f93a2db1533be260468a6ea2d): not properly loaded error ([#140](https://github.com/quay/clair/issues/140))
- [#140](https://github.com/quay/clair/issues/140) - fixes [#134](https://github.com/quay/clair/issues/134)- [30055af](https://github.com/quay/clair/commit/30055af03e357b44cfbacb3088eab337a94e51e8): fallover correctly to default config
- [#140](https://github.com/quay/clair/issues/140) - fixes [#134](https://github.com/quay/clair/issues/134)- [30055af](https://github.com/quay/clair/commit/30055af03e357b44cfbacb3088eab337a94e51e8): failover correctly to default config
Copy link
Author

Choose a reason for hiding this comment

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

not entirely certain

@@ -58,7 +58,7 @@ When you configure notifier for webhook delivery you provide the service with th
When the notifier has determined an updated security database has changed the affected status of an indexed manifest, it will deliver the following JSON body to the configured target:
```json
{
"notifiction_id": {uuid_string},
Copy link
Author

Choose a reason for hiding this comment

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

?

@@ -1,4 +1,4 @@
# Contribuion
Copy link
Author

Choose a reason for hiding this comment

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

This change will break external deep links to this anchor.

Copy link
Member

Choose a reason for hiding this comment

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

That's fine, they'll end up dumped in the same spot.

@@ -3,7 +3,7 @@ title: ClairV4 v0.1
language_tabs:
- python: Python
- go: Golang
- javascript: Javascript
- javascript: JavaScript
Copy link
Author

Choose a reason for hiding this comment

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

appears harmless

@@ -564,7 +564,7 @@ An address in `<host>:<post>` syntax where traces can be submitted.
#### `$.trace.jaeger.collector.username`
a string value

#### `$.trace.jaeger.collector.passwordd`
#### `$.trace.jaeger.collector.password`
Copy link
Author

Choose a reason for hiding this comment

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

This is a noteworthy bug fix

Notifications_ func(ctx context.Context, id uuid.UUID, page *Page) ([]Notification, Page, error)
PutNotifications_ func(ctx context.Context, opts PutOpts) error
PutReceipt_ func(ctx context.Context, updater string, r Receipt) error
DeleteNotifications_ func(ctx context.Context, id uuid.UUID) error
Copy link
Author

Choose a reason for hiding this comment

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

Go tends to insist on this sort of alignment change

}
if !cmp.Equal(receipt.Status, notifier.Created) {
t.Fatal(cmp.Diff(receipt.Status, notifier.Delivered))
}

receipt, err = e.store.ReceiptByUOID(e.ctx, e.updateID)
if err != nil {
t.Fatalf("failed to retrieve receipt by OUID")
Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

In my and Louis' defense, it's extremely easy to both typo and mentally transpose "uo".

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, typos happen, that's why I work on a spell checker that helps catch things like this.

Fwiw, overall, this project's typo count is pretty low.

@@ -49,10 +49,10 @@ func indexerForTestMode(mock *indexer.Mock) {
// MatcherForTestMode configures a mock Matcher service for notifier test mode.
//
// in notifier test mode a notifier.Poller will request "matcher.LatestUpdateOperations" at which point
// a new UO pair will be smithed.
Copy link
Author

Choose a reason for hiding this comment

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

I'm curious about this word choice

Copy link
Member

Choose a reason for hiding this comment

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

me too

// Notificationer implements persistence methods for Notification models
type Notificationer interface {
// Notifier implements persistence methods for Notification models
type Notifier interface {
Copy link
Author

Choose a reason for hiding this comment

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

Noteworthy

@@ -466,7 +466,7 @@ components:
example: |-
sha256:35c102085707f703de2d9eaad8752d6fe1b8f02b5d2149f1d8357c9cc7fb7d0a
reason:
description: "the reason for the notifcation, [added | removed]"
description: "the reason for the notification, [added | removed]"
Copy link
Author

Choose a reason for hiding this comment

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

Developer facing?

Copy link
Member

Choose a reason for hiding this comment

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

yes, needs the generate script run to rebuild the served schema.

Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

🙏🙏🙏
This is very cool.

The changes to CHANGELOG.md are a nonstarter, as it's autogenerated. Those typos are actually in the git commit messages. Beyond that, this all looks about right.

Would you mind me taking this and combining commits, making some needed code changes, etc. over the next week or so?

@@ -1,4 +1,4 @@
# Contribuion
Copy link
Member

Choose a reason for hiding this comment

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

That's fine, they'll end up dumped in the same spot.

@@ -1,4 +1,4 @@
package instrospection
package introspection
Copy link
Member

Choose a reason for hiding this comment

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

That's a sign nothing is actually using anything defined in this file. That's alarming.

}
if !cmp.Equal(receipt.Status, notifier.Created) {
t.Fatal(cmp.Diff(receipt.Status, notifier.Delivered))
}

receipt, err = e.store.ReceiptByUOID(e.ctx, e.updateID)
if err != nil {
t.Fatalf("failed to retrieve receipt by OUID")
Copy link
Member

Choose a reason for hiding this comment

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

In my and Louis' defense, it's extremely easy to both typo and mentally transpose "uo".

@@ -49,10 +49,10 @@ func indexerForTestMode(mock *indexer.Mock) {
// MatcherForTestMode configures a mock Matcher service for notifier test mode.
//
// in notifier test mode a notifier.Poller will request "matcher.LatestUpdateOperations" at which point
// a new UO pair will be smithed.
Copy link
Member

Choose a reason for hiding this comment

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

me too

@@ -466,7 +466,7 @@ components:
example: |-
sha256:35c102085707f703de2d9eaad8752d6fe1b8f02b5d2149f1d8357c9cc7fb7d0a
reason:
description: "the reason for the notifcation, [added | removed]"
description: "the reason for the notification, [added | removed]"
Copy link
Member

Choose a reason for hiding this comment

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

yes, needs the generate script run to rebuild the served schema.

Copy link
Author

@jsoref jsoref left a comment

Choose a reason for hiding this comment

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

Please be my guest. And thanks.

@@ -1,4 +1,4 @@
package instrospection
package introspection
Copy link
Author

Choose a reason for hiding this comment

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

🤷‍♀️

I'll leave that concern to you folks

}
if !cmp.Equal(receipt.Status, notifier.Created) {
t.Fatal(cmp.Diff(receipt.Status, notifier.Delivered))
}

receipt, err = e.store.ReceiptByUOID(e.ctx, e.updateID)
if err != nil {
t.Fatalf("failed to retrieve receipt by OUID")
Copy link
Author

Choose a reason for hiding this comment

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

Yeah, typos happen, that's why I work on a spell checker that helps catch things like this.

Fwiw, overall, this project's typo count is pretty low.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants