-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Upgrade check-spelling to v0.0.21 #2728
Conversation
9c765a2
to
3a86bef
Compare
NOTICE
Outdated
@@ -23,7 +23,6 @@ Castle.Core 4.4.0 - Apache-2.0 | |||
(c) 2008 VeriSign, Inc. | |||
Copyright 2004-2016 Castle Project | |||
Copyright (c) 2004-2019 Castle Project | |||
GCopyright (c) 2004-2019 Castle Project |
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.
This line appears to be damage from an errant sed
command.
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.
It's ok to make the change in this pr at the moment, but this NOTICE is auto generated, it will be overridden whenever we have new components added. I think we should add this notice to exclude list if spell checking is not happy.
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.
If the file is generated from other things beyond your control, then excluding it is probably the right thing to do.
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.
Do you know where this item comes from? I'd like to fix it at the source...
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.
This is generated for each build in the build pipeline. For example, for this pr build, the notice is generated here https://dev.azure.com/ms/winget-cli/_componentGovernance/156969?_a=components&typeId=14063008&alerts-view-option=active
This is from internal Component Governance Devops feature owned by internal compliance team.
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.
Can you pass them a note suggesting that their data record for this item is probably buggy?
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.
Sure, I'll file a bug for the right team to take a look.
@@ -1157,7 +1156,7 @@ Copyright (c) 2006-2013 Alexander Chemeris | |||
Copyright (c) The Internet Society (2005). | |||
Copyright (c) The Internet Society (2006). | |||
copyright 2009-2013 Christopher M. Kohlhoff | |||
Copyright (c) 2016, Akamai Technolgies, Inc. |
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.
This appears to be a typo (Google finds fewer than 500 hits for this spelling, although, admittedly at least one is in a proxy statement to the SEC, but even there the correct spelling is also present...).
@@ -19,6 +24,12 @@ | |||
# s.b. greater than | |||
\bgreater then\b | |||
|
|||
# s.b. into | |||
#\sin to\s |
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.
As this is not always right, I'm not leaving it active.
[Rr]e[- ]entrant | ||
|
||
# s.b. workaround(s) | ||
#\bwork[- ]arounds?\b |
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.
Similarly, I'm leaving this out. It's right some of the time (including once below).
var testreuslt = TestCommon.RunAICLICommand("install", $"{packageId}"); | ||
var testResult = TestCommon.RunAICLICommand("install", $"{packageId}"); |
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.
this is worrisome as it appears to be unused.
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'll let one of the engineers review this to see if it's used in some back-end tests.
src/Xlang/UndockedRegFreeWinRT/src/UndockedRegFreeWinRT/Catch/catch.hpp
Outdated
Show resolved
Hide resolved
src/Xlang/UndockedRegFreeWinRT/src/UndockedRegFreeWinRT/Nuget/readme.txt
Outdated
Show resolved
Hide resolved
src/Xlang/UndockedRegFreeWinRT/src/UndockedRegFreeWinRT/detours/disasm.cpp
Outdated
Show resolved
Hide resolved
3a86bef
to
45099f0
Compare
# s.b. opt-in | ||
#\sopt in\s |
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.
Similarly, this isn't always right, and in fact the one case I ran into here was a bad example... (Some heuristics are really not good enough to leave lying around, and instead handling the associated cases should be left to a grammar checker that can be truly context aware...)
@jsoref thanks for raising the PR. I'll have the engineering team review and merge. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@jsoref - Would you mind updating the action at winget-pkgs also? |
(For the record: microsoft/winget-pkgs#90103 (review)) |
Files under src/purelib are subtree from https://github.com/ronomon/pure Please revert the changes in these files and exclude the 2 projects from spell checking. And thank you @jsoref for bringing the v0.0.21, we can finally reenable the spell check again. |
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
45099f0
to
04585b9
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Upgrades check-spelling to v0.0.21
The command to apply changes should now work on Windows (it requires Perl, but I believe that's more or less present most of the time, and it should walk you through the rest of the required tools).
There are a bunch of new features, the most important here are probably being able to update the metadata from Windows. (If it doesn't work, please @ me).
Also,
candidate.patterns
will automatically suggest patterns. You can see them in patterns.txt, e.g.:The metadata bits (the hit count/file count) don't have to be retained (I hope they'll be useful in deciding whether/or not to add a pattern, i.e. "how applicable is it?"), the comment hinting at what the pattern does is probably worth retaining.
Extra cleanup
There are too many release branches pointing to the previous version, so I'm leaving a stub for it present as I did before.
Microsoft Reviewers: Open in CodeFlow