refactor: Remove byte order mark

This commit is contained in:
Scott 2026-09-05 12:07:52 +10:00
commit 3b1a4c7050
52 changed files with 71 additions and 71 deletions

View file

@ -1,4 +1,4 @@
using Cake.Common.IO; using Cake.Common.IO;
using Cake.Common.IO.Paths; using Cake.Common.IO.Paths;
using Cake.Core; using Cake.Core;
using Cake.Core.IO; using Cake.Core.IO;

View file

@ -1,4 +1,4 @@
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;

View file

@ -9,7 +9,7 @@ public static class Program
return new CakeHost() return new CakeHost()
.UseContext<BuildContext>() .UseContext<BuildContext>()
// Uncomment this if you don't want to set the suffix via the run profile program arguments // Uncomment this if you don't want to set the suffix via the run profile program arguments
//.UseCakeSetting(nameof(BuildContext.BuildSuffix), "<your suffix here>") .UseCakeSetting(nameof(BuildContext.BuildSuffix), "pre-release")
.Run(args); .Run(args);
} }
} }

View file

@ -1,4 +1,4 @@
param ( param (
[string]$powershellModuleFileLocation, [string]$powershellModuleFileLocation,
[string]$guid, [string]$guid,
[string]$author, [string]$author,

View file

@ -1,4 +1,4 @@
using Cake.Common.Tools.DotNet; using Cake.Common.Tools.DotNet;
using Cake.Common.Tools.DotNet.Build; using Cake.Common.Tools.DotNet.Build;
using Cake.Common.Tools.DotNet.MSBuild; using Cake.Common.Tools.DotNet.MSBuild;
using Cake.Core.Diagnostics; using Cake.Core.Diagnostics;

View file

@ -1,4 +1,4 @@
using Cake.Common; using Cake.Common;
using Cake.Common.Tools.DotNet; using Cake.Common.Tools.DotNet;
using Cake.Core.Diagnostics; using Cake.Core.Diagnostics;
using Cake.Frosting; using Cake.Frosting;

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Cake.Core.Diagnostics; using Cake.Core.Diagnostics;

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.IO.Compression; using System.IO.Compression;

View file

@ -1,4 +1,4 @@
using Cake.Core; using Cake.Core;
using Cake.Core.Diagnostics; using Cake.Core.Diagnostics;
using Cake.Frosting; using Cake.Frosting;

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using Cake.Core.Diagnostics; using Cake.Core.Diagnostics;
using Cake.Frosting; using Cake.Frosting;

View file

@ -1,4 +1,4 @@
# Git Repo Registration # Git Repo Registration
- all commands support `-debug` - all commands support `-debug`
- at its simplest level these commands allow you to register a git repo against a simple name, and provide the ability to quickly pushd to a location - at its simplest level these commands allow you to register a git repo against a simple name, and provide the ability to quickly pushd to a location

View file

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
@ -14,7 +14,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="sqlite-net-pcl" /> <PackageReference Include="sqlite-net-pcl"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Globalization; using System.Globalization;
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Calendar; using ModuleCore.Calendar;

View file

@ -1,4 +1,4 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<VersionPrefix>0.0.1</VersionPrefix> <VersionPrefix>0.0.1</VersionPrefix>
<VersionSuffix>dev</VersionSuffix> <VersionSuffix>dev</VersionSuffix>

View file

@ -1,4 +1,4 @@
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;
using ModuleCore.Git.Models; using ModuleCore.Git.Models;

View file

@ -1,4 +1,4 @@
namespace PowershellModule.Git.Commands; namespace PowershellModule.Git.Commands;
public class GitCommands public class GitCommands
{ {

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;

View file

@ -1,4 +1,4 @@
using System.Management.Automation; using System.Management.Automation;
using ModuleCore.Git; using ModuleCore.Git;
namespace PowershellModule.Git.Commands; namespace PowershellModule.Git.Commands;

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Management.Automation; using System.Management.Automation;
using System.Management.Automation.Provider; using System.Management.Automation.Provider;

View file

@ -1,4 +1,4 @@
using System.Management.Automation; using System.Management.Automation;
namespace PowershellModule.Git; namespace PowershellModule.Git;

View file

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Removes all non-core files from build output Removes all non-core files from build output
#> #>

View file

@ -1,25 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<AssemblyName>PowershellModule</AssemblyName> <AssemblyName>PowershellModule</AssemblyName>
<LangVersion>latestmajor</LangVersion> <LangVersion>latestmajor</LangVersion>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="PowerShellStandard.Library" > <PackageReference Include="PowerShellStandard.Library">
<PrivateAssets>All</PrivateAssets> <PrivateAssets>All</PrivateAssets>
</PackageReference> </PackageReference>
<PackageReference Include="System.Management.Automation" /> <PackageReference Include="System.Management.Automation"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\ModuleCore\ModuleCore.csproj" /> <ProjectReference Include="..\ModuleCore\ModuleCore.csproj"/>
</ItemGroup> </ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> <Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="pwsh.exe -file &quot;$(ProjectDir)PostBuild.ps1&quot; $(TargetDir)" /> <Exec Command="pwsh.exe -file &quot;$(ProjectDir)PostBuild.ps1&quot; $(TargetDir)"/>
</Target> </Target>
</Project> </Project>

View file

@ -1,4 +1,4 @@
using ModuleCore.Calendar; using ModuleCore.Calendar;
using ModuleTests.Calendar.TestData; using ModuleTests.Calendar.TestData;
using System.Globalization; using System.Globalization;

View file

@ -1,4 +1,4 @@
using System.Text; using System.Text;
using ModuleCore.Calendar; using ModuleCore.Calendar;
namespace ModuleTests.Calendar; namespace ModuleTests.Calendar;

View file

@ -1,4 +1,4 @@
using System.Text; using System.Text;
using ModuleCore.Calendar; using ModuleCore.Calendar;
namespace ModuleTests.Calendar; namespace ModuleTests.Calendar;

View file

@ -1,4 +1,4 @@
namespace ModuleTests.Calendar.TestData; namespace ModuleTests.Calendar.TestData;
public class CalendarTestDates : TestDataEnumerator<DateTime> public class CalendarTestDates : TestDataEnumerator<DateTime>
{ {

View file

@ -1,4 +1,4 @@
namespace ModuleTests.Calendar.TestData; namespace ModuleTests.Calendar.TestData;
public class CultureCodeTestData : TestDataEnumerator<string> public class CultureCodeTestData : TestDataEnumerator<string>
{ {

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ June 2026 │ │ June 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ July 2026 │ │ July 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
┌──────────────────────────────────┐ ┌──────────────────────────────────┐
│ srpen 2026 │ │ srpen 2026 │
├────┬────┬────┬────┬────┬────┬────┤ ├────┬────┬────┬────┬────┬────┬────┤
│ po │ út │ st │ čt │ pá │ so │ ne │ │ po │ út │ st │ čt │ pá │ so │ ne │

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ august 2026 │ │ august 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ man │ tir │ ons │ tor │ fre │ lør │ søn │ │ man │ tir │ ons │ tor │ fre │ lør │ søn │

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
┌────────────────────────────────────────────────┐ ┌────────────────────────────────────────────────┐
│ agosto 2026 │ │ agosto 2026 │
├──────┬──────┬──────┬──────┬──────┬──────┬──────┤ ├──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ lun. │ mar. │ mié. │ jue. │ vie. │ sáb. │ dom. │ │ lun. │ mar. │ mié. │ jue. │ vie. │ sáb. │ dom. │

View file

@ -1,4 +1,4 @@
┌────────────────────────────────────────────────┐ ┌────────────────────────────────────────────────┐
│ août 2026 │ │ août 2026 │
├──────┬──────┬──────┬──────┬──────┬──────┬──────┤ ├──────┬──────┬──────┬──────┬──────┬──────┬──────┤
│ lun. │ mar. │ mer. │ jeu. │ ven. │ sam. │ dim. │ │ lun. │ mar. │ mer. │ jeu. │ ven. │ sam. │ dim. │

View file

@ -1,4 +1,4 @@
┌──────────────────────────────────┐ ┌──────────────────────────────────┐
│ augustus 2026 │ │ augustus 2026 │
├────┬────┬────┬────┬────┬────┬────┤ ├────┬────┬────┬────┬────┬────┬────┤
│ ma │ di │ wo │ do │ vr │ za │ zo │ │ ma │ di │ wo │ do │ vr │ za │ zo │

View file

@ -1,4 +1,4 @@
┌───────────────────────────────────────────────────────┐ ┌───────────────────────────────────────────────────────┐
│ ఆగస్టు 2026 │ │ ఆగస్టు 2026 │
├───────┬───────┬───────┬───────┬───────┬───────┬───────┤ ├───────┬───────┬───────┬───────┬───────┬───────┬───────┤
│ సోమ │ మంగళ │ బుధ │ గురు │ శుక్ర │ శని │ ఆది │ │ సోమ │ మంగళ │ బుధ │ గురు │ శుక్ర │ శని │ ఆది │

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
Double-wide characters will display incorrectly but still tested until rendering can be improved Double-wide characters will display incorrectly but still tested until rendering can be improved
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤

View file

@ -1,4 +1,4 @@
Emojis will display incorrectly in text but output correctly in terminals with UTF-8 encoding. Emojis will display incorrectly in text but output correctly in terminals with UTF-8 encoding.
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤

View file

@ -1,4 +1,4 @@
┌──────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├────────┬────────┬────────┬────────┬────────┬────────┬────────┤ ├────────┬────────┬────────┬────────┬────────┬────────┬────────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │ │ Mon │ Tue │ Wed │ Thu │ Fri │ Sat │ Sun │

View file

@ -1,4 +1,4 @@
Start Day: Sunday Start Day: Sunday
┌─────────────────────────────────────────┐ ┌─────────────────────────────────────────┐
│ August 2026 │ │ August 2026 │
├─────┬─────┬─────┬─────┬─────┬─────┬─────┤ ├─────┬─────┬─────┬─────┬─────┬─────┬─────┤

View file

@ -1,4 +1,4 @@
using System.Text; using System.Text;
using ModuleCore.Calendar; using ModuleCore.Calendar;
using ModuleCore.Git; using ModuleCore.Git;
using ModuleTests.Git.TestData; using ModuleTests.Git.TestData;

View file

@ -1,2 +1,2 @@
Attempted to register: test Attempted to register: test
Registration result: test Registration result: test

View file

@ -1,2 +1,2 @@
Attempted to register: test\path Attempted to register: test\path
Registration result: test\path Registration result: test\path

View file

@ -1,2 +1,2 @@
Attempted to register: other/path Attempted to register: other/path
Registration result: other/path Registration result: other/path

View file

@ -1,4 +1,4 @@
using System.Linq; using System.Linq;
namespace ModuleTests.Git.TestData; namespace ModuleTests.Git.TestData;

View file

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>

View file

@ -1,4 +1,4 @@
namespace ModuleTests; namespace ModuleTests;
public class TestConstants public class TestConstants
{ {

View file

@ -1,4 +1,4 @@
using System.Collections; using System.Collections;
namespace ModuleTests; namespace ModuleTests;