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

Narrow down typos ignores #16673

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Narrow down typos ignores #16673

merged 1 commit into from
Feb 26, 2024

Conversation

szepeviktor
Copy link
Contributor

@szepeviktor szepeviktor commented Feb 25, 2024

  • remove ignored files
  • check dotfiles
  • reorder config sections: files, regexp, words, IDs
  • remove non-existent ignores

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 25, 2024
@szepeviktor
Copy link
Contributor Author

💡 It would be nice to rename plural Latin variables names.

  • trivias
  • datas
  • and maybe selfs

Comment on lines -28 to -29
"*.rast",
"crates/parser/test_data/lexer/err/*",
Copy link
Member

Choose a reason for hiding this comment

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

these are auto generated, IMO they should be exclude, since other typos occur here in the furture

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

.typos.toml Outdated
Comment on lines 13 to 17
'"flate2"',
'IDENT "SER"',
"raison d'être",
Copy link
Member

Choose a reason for hiding this comment

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

I don't think extend-ignore-re is the rigth place for them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

words and identifiers couldn't help here, e.g. adding SER to identifiers will hide future typos of "SET"

@Young-Flash Young-Flash added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 26, 2024
.typos.toml Outdated
"bench_data/*",
]
[default.extend-identifiers]
0onoDigit = "0onoDigit"
Copy link
Member

Choose a reason for hiding this comment

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

I think this is excluded now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.
Removed.

.typos.toml Outdated
# ignore generated content like `boxed....nner()`, `Defaul...efault`
"\\w*\\.{3,4}\\w*",
'"flate2"',
'IDENT "SER"',
Copy link
Member

Choose a reason for hiding this comment

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

Same for this one? And we could also ignore crates/project-model/test_data/*, I don't think there's anything useful in there.

And would you mind squashing at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As you wish.
Now comes the squashing ...

@lnicola
Copy link
Member

lnicola commented Feb 26, 2024

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Feb 26, 2024

📌 Commit 1880117 has been approved by lnicola

It is now in the queue for this repository.

@szepeviktor
Copy link
Contributor Author

Glad to contribute.

@bors
Copy link
Contributor

bors commented Feb 26, 2024

⌛ Testing commit 1880117 with merge 2251d06...

@bors
Copy link
Contributor

bors commented Feb 26, 2024

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 2251d06 to master...

@bors bors merged commit 2251d06 into rust-lang:master Feb 26, 2024
11 checks passed
@szepeviktor szepeviktor deleted the patch-1 branch February 26, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants