Skip to content

Commit 3663dbb

Browse files
authored
Code Quality: Added license header to C# phase1 (#12143)
1 parent ad33c75 commit 3663dbb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+168
-14
lines changed

src/Files.App/Behaviors/StickyHeaderBehavior.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using CommunityToolkit.WinUI.UI;
25
using CommunityToolkit.WinUI.UI.Animations.Expressions;
36
using CommunityToolkit.WinUI.UI.Behaviors;

src/Files.App/CommandLine/CommandLineParser.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System;
25
using System.Collections.Generic;
36
using System.Diagnostics;

src/Files.App/CommandLine/ParsedCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System.Collections.Generic;
25
using System.Linq;
36

src/Files.App/CommandLine/ParsedCommandType.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.CommandLine
25
{
36
internal enum ParsedCommandType

src/Files.App/CommandLine/ParsedCommands.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System.Collections.Generic;
25

36
namespace Files.App.CommandLine

src/Files.App/Converters/BoolToSelectionMode.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Controls;
25
using Microsoft.UI.Xaml.Data;
36

src/Files.App/Converters/Converters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml;
25
using Microsoft.UI.Xaml.Data;
36

src/Files.App/Converters/DateTimeOffsetToString.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.Shared.Services.DateTimeFormatter;
25
using Microsoft.UI.Xaml.Data;
36

src/Files.App/Converters/DoubleArrayToString.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Data;
25
using System.Text;
36

src/Files.App/Converters/DoubleToString.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Data;
25

36
namespace Files.App.Converters

src/Files.App/Converters/MultiBooleanConverter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml;
25

36
namespace Files.App.Converters

src/Files.App/Converters/StorageDeleteOptionToBooleanConverter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Data;
25
using Windows.Storage;
36

src/Files.App/Converters/StringArrayToString.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Data;
25
using System.Text;
36

src/Files.App/Converters/UInt32ToString.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Data;
25

36
namespace Files.App.Converters

src/Files.App/Converters/VisibilityInvertConverter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml;
25
using Microsoft.UI.Xaml.Data;
36

src/Files.App/EventArguments/Bundles/BundlesOpenPathEventArgs.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.EventArguments.Bundles
25
{
36
public class BundlesOpenPathEventArgs

src/Files.App/EventArguments/LayoutModeEventArgs.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.EventArguments
25
{
36
public class LayoutModeEventArgs

src/Files.App/EventArguments/LayoutPreferenceEventArgs.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.App.Helpers.LayoutPreferences;
25

36
namespace Files.App.EventArguments

src/Files.App/Extensions/EnumExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System;
25
using System.Reflection;
36

src/Files.App/Extensions/ImageSourceExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System;
25
using System.IO;
36
using System.Runtime.InteropServices.WindowsRuntime;

src/Files.App/Extensions/KeyboardAcceleratorExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml.Input;
25
using Windows.System;
36
using Windows.UI.Core;

src/Files.App/Extensions/ShellNewEntryExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.App.Filesystem;
25
using Files.App.Filesystem.StorageItems;
36
using Files.App.Helpers;

src/Files.App/Extensions/StringExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using ByteSizeLib;
25
using Files.Shared.Extensions;
36
using Microsoft.Windows.ApplicationModel.Resources;

src/Files.App/Interacts/BaseLayoutCommandImplementationModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
#nullable disable warnings
25

36
using CommunityToolkit.Mvvm.DependencyInjection;

src/Files.App/Interacts/BaseLayoutCommandsViewModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using CommunityToolkit.Mvvm.Input;
25
using Files.Shared;
36
using Microsoft.UI.Xaml;

src/Files.App/Interacts/IBaseLayoutCommandImplementationModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.Shared;
25
using Microsoft.UI.Xaml;
36
using Microsoft.UI.Xaml.Input;

src/Files.App/Interacts/IStatusCenterActions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.App.ViewModels;
25
using Files.Shared.Enums;
36
using System;

src/Files.App/Interacts/ItemManipulationModel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.App.Filesystem;
25
using System;
36
using System.Collections.Generic;

src/Files.App/Interacts/RemovableDevice.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System;
25
using System.Diagnostics;
36
using System.Threading.Tasks;

src/Files.App/Serialization/BaseJsonSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.Shared.EventArguments;
25
using System;
36
using System.Runtime.CompilerServices;
47

58
namespace Files.App.Serialization
69
{
710
/// <summary>
8-
/// SecureFolderFS
9-
/// <br/>
1011
/// A base class to easily manage all application's settings.
1112
/// </summary>
12-
/// <remarks>BaseJsonSettings v3</remarks>
1313
internal abstract class BaseJsonSettings : ISettingsSharingContext
1414
{
1515
private ISettingsSharingContext? _settingsSharingContext;

src/Files.App/Serialization/BaseObservableJsonSettings.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System.ComponentModel;
25
using System.Runtime.CompilerServices;
36

src/Files.App/Serialization/IJsonSettingsDatabase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.Serialization
25
{
36
internal interface IJsonSettingsDatabase

src/Files.App/Serialization/IJsonSettingsSerializer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.Serialization
25
{
36
internal interface IJsonSettingsSerializer

src/Files.App/Serialization/ISettingsSerializer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.Serialization
25
{
36
internal interface ISettingsSerializer

src/Files.App/Serialization/ISettingsSharingContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
namespace Files.App.Serialization
25
{
36
public interface ISettingsSharingContext

src/Files.App/Serialization/Implementation/CachingJsonSettingsDatabase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System.Collections;
25
using System.Collections.Generic;
36
using System.Linq;

src/Files.App/Serialization/Implementation/DefaultJsonSettingsDatabase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System;
25
using System.Collections.Generic;
36
using System.Diagnostics;

src/Files.App/Serialization/Implementation/DefaultJsonSettingsSerializer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using System.Text.Json;
25

36
namespace Files.App.Serialization.Implementation

src/Files.App/Serialization/Implementation/DefaultSettingsSerializer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.Shared.Extensions;
25
using System;
36
using System.IO;

src/Files.App/Shell/ContextMenu.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Drawing;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.Drawing;
25
using System.IO;
36
using System.Runtime.InteropServices;
47
using System.Runtime.Versioning;

src/Files.App/Shell/ContextMenuItem.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace Files.App.Shell
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
namespace Files.App.Shell
25
{
36
public class ContextMenuItem : Win32ContextMenuItem, IDisposable
47
{

src/Files.App/Shell/Disposable.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace Files.App.Shell
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
namespace Files.App.Shell
25
{
36
public abstract class Disposable : IDisposable
47
{

src/Files.App/Shell/LaunchHelper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Files.Backend.Helpers;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using Files.Backend.Helpers;
25
using Microsoft.Extensions.Logging;
36
using System.IO;
47
using System.Text.RegularExpressions;

src/Files.App/Shell/RecycleBinManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.IO;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.IO;
25
using System.Security.Principal;
36

47
namespace Files.App.Shell

src/Files.App/Shell/ShellFolderExtensions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.IO;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.IO;
25
using Vanara.PInvoke;
36
using Vanara.Windows.Shell;
47

src/Files.App/Shell/ShellLibrary2.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Windows.Forms;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.Windows.Forms;
25
using Vanara.Extensions;
36
using Vanara.PInvoke;
47
using Vanara.Windows.Shell;

src/Files.App/Shell/ShellNewMenuHelper.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Microsoft.Win32;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
5+
using Microsoft.Win32;
26
using System.IO;
37
using System.Runtime.Versioning;
48
using System.Security;

src/Files.App/Shell/ThreadWithMessageQueue.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Collections.Concurrent;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.Collections.Concurrent;
25
using System.Runtime.Versioning;
36

47
namespace Files.App.Shell

src/Files.App/Shell/Win32API.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Microsoft.Extensions.Logging;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using Microsoft.Extensions.Logging;
25
using System.Collections.Concurrent;
36
using System.Drawing;
47
using System.Drawing.Imaging;

src/Files.App/Shell/Win32Shell.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.IO;
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.IO;
25
using System.Runtime.InteropServices;
36
using Vanara.PInvoke;
47
using Vanara.Windows.Shell;

src/Files.App/TemplateSelectors/BaseTemplateSelector.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Microsoft.UI.Xaml;
25
using Microsoft.UI.Xaml.Controls;
36

src/Files.App/TemplateSelectors/FileSystemDialogItemSelector.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
14
using Files.Backend.ViewModels.Dialogs.FileSystemDialog;
25
using Microsoft.UI.Xaml;
36

0 commit comments

Comments
 (0)