Skip to content

Commit 3e165e7

Browse files
authored
Code Quality: Removed lang ids and use learn.ms.com (#11941)
1 parent 20ebfe3 commit 3e165e7

File tree

15 files changed

+24
-24
lines changed

15 files changed

+24
-24
lines changed

Privacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This Privacy Policy ("Policy") for Files ("we", "us", or "our") describes how an
1414

1515
**Diagnostic Information.** Our Application collects non-personably identifiable diagnostic data such as fault analysis and performance logs. This information may include technical details about your device, such as its make, model, operating system, and Application version. In addition, Files may store log files containing diagnostic information on the user's device. These files are not shared with us by default.
1616

17-
**Usage Information.** We collect non-identifiable information about your use of our Services, including but not limited to interactions within the Application, enabled user preferences (Application settings), and usage patterns. Furthermore, our Application uses certain Microsoft services including Microsoft AppCenter, and Microsoft Partner Center to collect usage data. AppCenter data is kept for 30 days. To learn more about how data is collected, used, and disclosed by Microsoft and its subsidiaries, please review the Microsoft Privacy Policy Statement available here: https://privacy.microsoft.com/en-us/privacystatement
17+
**Usage Information.** We collect non-identifiable information about your use of our Services, including but not limited to interactions within the Application, enabled user preferences (Application settings), and usage patterns. Furthermore, our Application uses certain Microsoft services including Microsoft AppCenter, and Microsoft Partner Center to collect usage data. AppCenter data is kept for 30 days. To learn more about how data is collected, used, and disclosed by Microsoft and its subsidiaries, please review the Microsoft Privacy Policy Statement available here: https://privacy.microsoft.com/privacystatement
1818

1919
Please note that any information we collect is non-identifiable and does not include any personal data. We do not share collected information with any third parties.
2020

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Files also offers advanced features such as file tagging for easy organization,
2727
- MSVC v143 - VS 2022 C++ x64/x86 or ARM64 build tools (latest)
2828
- C++ ATL for latest v143 build tools (x86 & x64 or ARM64)
2929
- Git for Windows
30-
- [Windows App SDK 1.2](https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads#current-releases)
30+
- [Windows App SDK 1.2](https://learn.microsoft.com/windows/apps/windows-app-sdk/downloads#current-releases)
3131

3232
### 2. Clone the repository
3333

specs/disco/spec-template.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ its APIs that make up a new feature in WinUI. -->
55
that want to evaluate and give feedback on the API, as part of
66
the submission process. When it's complete
77
it will be incorporated into the public documentation at
8-
docs.microsoft.com (http://docs.microsoft.com/uwp/toolkits/winui/).
8+
learn.microsoft.com (http://learn.microsoft.com/uwp/toolkits/winui/).
99
Hopefully we'll be able to copy it mostly verbatim.
1010
So the second audience is everyone that reads there to learn how
1111
and why to use this API. -->
@@ -15,7 +15,7 @@ and why to use this API. -->
1515
in this spec. -->
1616

1717
<!-- This section and the appendix are the only sections that likely
18-
do not get copied to docs.microsoft.com; they're just an aid to reading this spec. -->
18+
do not get copied to learn.microsoft.com; they're just an aid to reading this spec. -->
1919

2020
<!-- If you're modifying an existing API, included a link here to the
2121
existing page(s) -->
@@ -31,7 +31,7 @@ the reader "go read 100 pages of background information posted at ...". -->
3131
# Description
3232
<!-- Use this section to provide a brief description of the feature.
3333
For an example, see the introduction to the PasswordBox control
34-
(http://docs.microsoft.com/windows/uwp/design/controls-and-patterns/password-box). -->
34+
(http://learn.microsoft.com/windows/uwp/design/controls-and-patterns/password-box). -->
3535

3636

3737
# Examples
@@ -46,7 +46,7 @@ example code with each description. The general format is:
4646
<!-- Code samples should be in C# and/or C++/WinRT -->
4747

4848
<!-- As an example of this section, see the Examples section for the PasswordBox control
49-
(https://docs.microsoft.com/windows/uwp/design/controls-and-patterns/password-box#examples). -->
49+
(https://learn.microsoft.com/windows/uwp/design/controls-and-patterns/password-box#examples). -->
5050

5151

5252
# Remarks
@@ -68,7 +68,7 @@ isn't the type's default (for example an int-typed property that doesn't default
6868
with a "///" comment above the member or type. -->
6969

7070
# API Details
71-
<!-- The exact API, in MIDL3 format (https://docs.microsoft.com/en-us/uwp/midl-3/) -->
71+
<!-- The exact API, in MIDL3 format (https://learn.microsoft.com/uwp/midl-3/) -->
7272

7373
# Appendix
7474
<!-- Anything else that you want to write down for posterity, but

specs/disco/storage-layer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Lastly, the current *lazy loading* pattern was introduced at a time before all l
2929
## Description
3030
<!-- Use this section to provide a brief description of the feature.
3131
For an example, see the introduction to the PasswordBox control
32-
(http://docs.microsoft.com/windows/uwp/design/controls-and-patterns/password-box). -->
32+
(http://learn.microsoft.com/windows/uwp/design/controls-and-patterns/password-box). -->
3333

3434

3535
## Examples
@@ -44,7 +44,7 @@ example code with each description. The general format is:
4444
<!-- Code samples should be in C# and/or C++/WinRT -->
4545

4646
<!-- As an example of this section, see the Examples section for the PasswordBox control
47-
(https://docs.microsoft.com/windows/uwp/design/controls-and-patterns/password-box#examples). -->
47+
(https://learn.microsoft.com/windows/uwp/design/controls-and-patterns/password-box#examples). -->
4848

4949

5050
## Remarks
@@ -66,7 +66,7 @@ isn't the type's default (for example an int-typed property that doesn't default
6666
with a "///" comment above the member or type. -->
6767

6868
## API Details
69-
<!-- The exact API, in MIDL3 format (https://docs.microsoft.com/en-us/uwp/midl-3/) -->
69+
<!-- The exact API, in MIDL3 format (https://learn.microsoft.com/uwp/midl-3/) -->
7070

7171
## Appendix
7272
<!-- Anything else that you want to write down for posterity, but

src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ public static async Task<IEnumerable<IStorageItemWithPath>> GetDraggedStorageIte
760760
}
761761

762762
// workaround for GetStorageItemsAsync() bug that only yields 16 items at most
763-
// https://learn.microsoft.com/en-us/windows/win32/shell/clipboard#cf_hdrop
763+
// https://learn.microsoft.com/windows/win32/shell/clipboard#cf_hdrop
764764
if (packageView.Contains("FileDrop"))
765765
{
766766
var fileDropData = await packageView.GetDataAsync("FileDrop");

src/Files.App/Filesystem/LibraryManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static async Task<List<LibraryLocationItem>> ListUserLibraries()
9797
try
9898
{
9999
var libraryItems = new List<ShellLibraryItem>();
100-
// https://docs.microsoft.com/en-us/windows/win32/search/-search-win7-development-scenarios#library-descriptions
100+
// https://learn.microsoft.com/windows/win32/search/-search-win7-development-scenarios#library-descriptions
101101
var libFiles = Directory.EnumerateFiles(ShellLibraryItem.LibrariesPath, "*" + ShellLibraryItem.EXTENSION);
102102
foreach (var libFile in libFiles)
103103
{

src/Files.App/Filesystem/StorageEnumerators/Win32StorageEnumerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ CancellationToken cancellationToken
273273
bool isHidden = ((FileAttributes)findData.dwFileAttributes & FileAttributes.Hidden) == FileAttributes.Hidden;
274274
double opacity = isHidden ? Constants.UI.DimItemOpacity : 1;
275275

276-
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c8e77b37-3909-4fe6-a4ea-2b9d423b1ee4
276+
// https://learn.microsoft.com/openspecs/windows_protocols/ms-fscc/c8e77b37-3909-4fe6-a4ea-2b9d423b1ee4
277277
bool isReparsePoint = ((FileAttributes)findData.dwFileAttributes & FileAttributes.ReparsePoint) == FileAttributes.ReparsePoint;
278278
bool isSymlink = isReparsePoint && findData.dwReserved0 == NativeFileOperationsHelper.IO_REPARSE_TAG_SYMLINK;
279279

src/Files.App/Filesystem/StorageItems/VirtualStorageItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static VirtualStorageItem FromPath(string path)
4747
IntPtr hFile = FindFirstFileExFromApp(path, findInfoLevel, out WIN32_FIND_DATA findData, FINDEX_SEARCH_OPS.FindExSearchNameMatch, IntPtr.Zero, additionalFlags);
4848
if (hFile.ToInt64() != -1)
4949
{
50-
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c8e77b37-3909-4fe6-a4ea-2b9d423b1ee4
50+
// https://learn.microsoft.com/openspecs/windows_protocols/ms-fscc/c8e77b37-3909-4fe6-a4ea-2b9d423b1ee4
5151
bool isReparsePoint = ((System.IO.FileAttributes)findData.dwFileAttributes & System.IO.FileAttributes.ReparsePoint) == System.IO.FileAttributes.ReparsePoint;
5252
bool isSymlink = isReparsePoint && findData.dwReserved0 == NativeFileOperationsHelper.IO_REPARSE_TAG_SYMLINK;
5353
bool isHidden = ((System.IO.FileAttributes)findData.dwFileAttributes & System.IO.FileAttributes.Hidden) == System.IO.FileAttributes.Hidden;

src/Files.App/Helpers/BitmapHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public static async Task<BitmapImage> ToBitmapAsync(this byte[]? data, int decod
3636
/// <param name="filePath">The file path to the image.</param>
3737
/// <param name="rotation">The rotation direction.</param>
3838
/// <remarks>
39-
/// https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.bitmapdecoder?view=winrt-22000
40-
/// https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging.bitmapencoder?view=winrt-22000
39+
/// https://learn.microsoft.com/uwp/api/windows.graphics.imaging.bitmapdecoder?view=winrt-22000
40+
/// https://learn.microsoft.com/uwp/api/windows.graphics.imaging.bitmapencoder?view=winrt-22000
4141
/// </remarks>
4242
public static async Task Rotate(string filePath, BitmapRotation rotation)
4343
{

src/Files.App/Helpers/FileUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static extern int RmGetList(uint dwSessionHandle,
7676
/// <param name="path">Path of the file.</param>
7777
/// <returns>Processes locking the file</returns>
7878
/// <remarks>See also:
79-
/// http://msdn.microsoft.com/en-us/library/windows/desktop/aa373661(v=vs.85).aspx
79+
/// http://msdn.microsoft.com/library/windows/desktop/aa373661(v=vs.85).aspx
8080
/// http://wyupdate.googlecode.com/svn-history/r401/trunk/frmFilesInUse.cs (no copyright in code at time of viewing)
8181
///
8282
/// </remarks>

0 commit comments

Comments
 (0)