Skip to content

Commit

Permalink
Merge pull request #10 from ubisoft/add-license-on-each-file-header
Browse files Browse the repository at this point in the history
Add license on each file header
  • Loading branch information
LaurentM-Ubi authored May 3, 2022
2 parents c4e935c + 0a1a49b commit 8eb743d
Show file tree
Hide file tree
Showing 54 changed files with 179 additions and 97 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ dotnet_diagnostic.SA1629.severity=silent
dotnet_diagnostic.SA1611.severity=silent
dotnet_diagnostic.SA1615.severity=silent

## Header
file_header_template = Copyright (c) Ubisoft. All Rights Reserved.\nLicensed under the Apache License, Version 2.0.

## Naming conventions

# IDE0090: Use 'new(...)'
Expand Down
8 changes: 7 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Version>0.0.0</Version>

<!-- Compile Options -->
<LangVersion>9.0</LangVersion>
<LangVersion>10.0</LangVersion>
<TargetFramework>net6.0-windows</TargetFramework>
<Deterministic>true</Deterministic>
<Features>strict</Features>
Expand All @@ -20,11 +20,17 @@
<DefaultItemExcludes>$(DefaultItemExcludes);publish/**/*</DefaultItemExcludes>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == 'true'">
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Using Include="System.Diagnostics" />
<Using Include="System.Reflection" />
<Using Include="System.IO" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MinVer" PrivateAssets="All" Version="2.5.0" />
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView.Core/Common/GitExecutableFinder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.IO;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using Microsoft.Win32;

namespace GitTimelapseView.Common
Expand Down
7 changes: 3 additions & 4 deletions GitTimelapseView.Core/Common/GitHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using System.Collections.Generic;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using GitTimelapseView.Common;
using LibGit2Sharp;
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView.Core/Common/StringExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Text;

namespace GitTimelapseView.Common
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView.Core/Models/BlameBlock.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Collections.Generic;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Common;
using LibGit2Sharp;

Expand Down
7 changes: 3 additions & 4 deletions GitTimelapseView.Core/Models/Commit.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Core.Common;
using LibGit2Sharp;
using Microsoft.Extensions.Logging;
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView.Core/Models/FileChange.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using LibGit2Sharp;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using LibGit2Sharp;

namespace GitTimelapseView.Core.Models
{
Expand Down
8 changes: 3 additions & 5 deletions GitTimelapseView.Core/Models/FileHistory.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using GitTimelapseView.Common;
using GitTimelapseView.Core.Common;
using LibGit2Sharp;
Expand Down
7 changes: 3 additions & 4 deletions GitTimelapseView.Core/Models/FileRevision.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Core.Common;
using LibGit2Sharp;
using Microsoft.Extensions.Logging;
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView.Extensions/ActionState.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace GitTimelapseView.Extensions
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
public enum ActionState
{
Expand Down
3 changes: 2 additions & 1 deletion GitTimelapseView.Extensions/IAction.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView.Extensions/IActionContext.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using Microsoft.Extensions.Logging;

namespace GitTimelapseView.Extensions
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView.Extensions/IAppInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace GitTimelapseView.Extensions
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
public interface IAppInfo
{
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView.Extensions/IPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using Microsoft.Extensions.DependencyInjection;

namespace GitTimelapseView.Extensions
{
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView.Extensions/IService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using Microsoft.Extensions.Logging;

namespace GitTimelapseView.Extensions
Expand Down
6 changes: 3 additions & 3 deletions GitTimelapseView.Extensions/ITelemetryProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using Microsoft.Extensions.Logging;

namespace GitTimelapseView.Extensions
Expand Down
3 changes: 2 additions & 1 deletion GitTimelapseView.Extensions/ITitleBarActionProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
Expand Down
3 changes: 2 additions & 1 deletion GitTimelapseView.Extensions/IUserInfoProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView.Extensions/UserInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace GitTimelapseView.Extensions
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
public class UserInfo
{
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView.Extensions/VisualFeedback.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace GitTimelapseView.Extensions
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Extensions
{
public enum VisualFeedback
{
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView.Tests/TimelapseHistoryTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.IO;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Runtime.CompilerServices;
using GitTimelapseView.Core.Models;
using Microsoft.Extensions.Logging.Abstractions;
Expand Down
6 changes: 4 additions & 2 deletions GitTimelapseView/Actions/AboutAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Text;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Text;
using GitTimelapseView.Extensions;
using GitTimelapseView.Services;
using Microsoft.Extensions.DependencyInjection;
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView/Actions/ActionBase.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;

namespace GitTimelapseView.Actions
Expand Down
6 changes: 4 additions & 2 deletions GitTimelapseView/Actions/ChangeCurrentRevisionAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Globalization;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Globalization;
using GitTimelapseView.Extensions;
using GitTimelapseView.Services;
using Microsoft.Extensions.DependencyInjection;
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView/Actions/CopyToClipboardAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;
using Humanizer;

Expand Down
6 changes: 4 additions & 2 deletions GitTimelapseView/Actions/DiffFileChangeAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.IO;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.IO;
using GitTimelapseView.Core.Common;
using GitTimelapseView.Core.Models;
using GitTimelapseView.Extensions;
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView/Actions/ExitApplicationAction.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;

namespace GitTimelapseView.Actions
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView/Actions/OpenFileAction.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;
using GitTimelapseView.Services;
using Microsoft.Extensions.DependencyInjection;
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView/Actions/SelectCommitAction.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Core.Models;
using GitTimelapseView.Extensions;
using GitTimelapseView.Services;
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView/Actions/ViewLogsAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Diagnostics;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;

namespace GitTimelapseView.Actions
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView/Data/CommitChangeReason.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace GitTimelapseView.Data
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Data
{
public enum CommitChangeReason
{
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView/Data/CommitChangedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Core.Models;

namespace GitTimelapseView.Data
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView/Data/FileRevisionIndexChangeReason.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace GitTimelapseView.Data
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Data
{
public enum FileRevisionIndexChangeReason
{
Expand Down
3 changes: 2 additions & 1 deletion GitTimelapseView/Data/FileRevisionIndexChangedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

namespace GitTimelapseView.Data
{
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView/Helpers/ActionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;
using GitTimelapseView.Services;
using Microsoft.Extensions.DependencyInjection;
Expand Down
5 changes: 3 additions & 2 deletions GitTimelapseView/Helpers/BindableBase.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.ComponentModel;
using System.Runtime.CompilerServices;

Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView/Helpers/DependencyInjectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using GitTimelapseView.Extensions;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;
using Microsoft.Extensions.DependencyInjection;

namespace GitTimelapseView.Helpers
Expand Down
4 changes: 3 additions & 1 deletion GitTimelapseView/Helpers/NotificationServiceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using AntDesign;

namespace GitTimelapseView.Helpers
Expand Down
8 changes: 3 additions & 5 deletions GitTimelapseView/Services/ActionService.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using GitTimelapseView.Extensions;
using GitTimelapseView.Helpers;
using Microsoft.Extensions.Logging;
Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView/Services/MessagingService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System.Windows;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using System.Windows;
using AntDesign;
using Microsoft.Extensions.Logging;

Expand Down
5 changes: 4 additions & 1 deletion GitTimelapseView/Services/PageProgressService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Microsoft.Extensions.Logging;
// Copyright (c) Ubisoft. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.

using Microsoft.Extensions.Logging;

namespace GitTimelapseView.Services
{
Expand Down
Loading

0 comments on commit 8eb743d

Please sign in to comment.