From 0f3ea8ceb2eaa24ef9cabdc2c4f26a8fec928ce4 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 3 Jan 2025 18:40:43 +1000 Subject: [PATCH] Add pre-commit hook `fix-byte-order-marker` (#10147) https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#fix-byte-order-marker --- .pre-commit-config.yaml | 2 +- .../hyperv/DotNet/ServerResource/.nuget/NuGet.Config | 2 +- .../DotNet/ServerResource/AgentShell/AgentService.Designer.cs | 2 +- .../DotNet/ServerResource/AgentShell/AgentSettings.Designer.cs | 2 +- .../DotNet/ServerResource/AgentShell/AgentSettings.settings | 2 +- .../hyperv/DotNet/ServerResource/AgentShell/AgentShell.csproj | 2 +- .../DotNet/ServerResource/AgentShell/AgentShellException.cs | 2 +- .../hyperv/DotNet/ServerResource/AgentShell/App.config | 2 +- .../hyperv/DotNet/ServerResource/AgentShell/Program.cs | 2 +- .../ServerResource/AgentShell/ProjectInstaller.Designer.cs | 2 +- .../hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.cs | 2 +- .../DotNet/ServerResource/AgentShell/Properties/AssemblyInfo.cs | 2 +- .../hyperv/DotNet/ServerResource/AgentShell/packages.config | 2 +- .../hyperv/DotNet/ServerResource/HypervResource/App.config | 2 +- .../DotNet/ServerResource/HypervResource/HypervResource.csproj | 2 +- .../hyperv/DotNet/ServerResource/HypervResource/IWmiCallsV2.cs | 2 +- .../ServerResource/HypervResource/Properties/AssemblyInfo.cs | 2 +- .../hyperv/DotNet/ServerResource/HypervResource/packages.config | 2 +- .../DotNet/ServerResource/ServerResource.Tests/App.config | 2 +- .../ServerResource.Tests/HypervResourceController1Test.cs | 2 +- .../ServerResource.Tests/HypervResourceControllerTest.cs | 2 +- .../ServerResource.Tests/Properties/AssemblyInfo.cs | 2 +- .../ServerResource.Tests/ServerResource.Tests.csproj | 2 +- .../DotNet/ServerResource/ServerResource.Tests/packages.config | 2 +- .../hypervisors/hyperv/DotNet/ServerResource/ServerResource.sln | 2 +- .../ServerResource/WmiWrappers/Properties/AssemblyInfo.cs | 2 +- .../WmiWrappers/ROOT.CIMV2.Win32_OperatingSystem.cs | 2 +- .../ServerResource/WmiWrappers/ROOT.CIMV2.Win32_Processor.cs | 2 +- .../WmiWrappers/ROOT.virtualization.v2.Msvm_ComputerSystem.cs | 2 +- .../WmiWrappers/ROOT.virtualization.v2.Msvm_ConcreteJob.cs | 2 +- ....virtualization.v2.Msvm_EthernetPortAllocationSettingData.cs | 2 +- .../ROOT.virtualization.v2.Msvm_EthernetSwitchPort.cs | 2 +- ...ualization.v2.Msvm_EthernetSwitchPortBandwidthSettingData.cs | 2 +- ....virtualization.v2.Msvm_EthernetSwitchPortVlanSettingData.cs | 2 +- .../ROOT.virtualization.v2.Msvm_ExternalEthernetPort.cs | 2 +- .../ROOT.virtualization.v2.Msvm_ImageManagementService.cs | 2 +- .../ROOT.virtualization.v2.Msvm_KvpExchangeComponent.cs | 2 +- ...OT.virtualization.v2.Msvm_KvpExchangeComponentSettingData.cs | 2 +- .../ROOT.virtualization.v2.Msvm_KvpExchangeDataItem.cs | 2 +- .../WmiWrappers/ROOT.virtualization.v2.Msvm_LANEndpoint.cs | 2 +- .../ROOT.virtualization.v2.Msvm_MemorySettingData.cs | 2 +- .../WmiWrappers/ROOT.virtualization.v2.Msvm_MigrationJob.cs | 2 +- .../ROOT.virtualization.v2.Msvm_ProcessorSettingData.cs | 2 +- ...ROOT.virtualization.v2.Msvm_ResourceAllocationSettingData.cs | 2 +- .../ROOT.virtualization.v2.Msvm_StorageAllocationSettingData.cs | 2 +- .../WmiWrappers/ROOT.virtualization.v2.Msvm_StorageJob.cs | 2 +- .../ROOT.virtualization.v2.Msvm_SummaryInformation.cs | 2 +- ...T.virtualization.v2.Msvm_SyntheticEthernetPortSettingData.cs | 2 +- .../ROOT.virtualization.v2.Msvm_VirtualEthernetSwitch.cs | 2 +- ...ualization.v2.Msvm_VirtualEthernetSwitchManagementService.cs | 2 +- .../ROOT.virtualization.v2.Msvm_VirtualHardDiskSettingData.cs | 2 +- ...OOT.virtualization.v2.Msvm_VirtualSystemManagementService.cs | 2 +- ...ization.v2.Msvm_VirtualSystemManagementServiceSettingData.cs | 2 +- ...ROOT.virtualization.v2.Msvm_VirtualSystemMigrationService.cs | 2 +- ....virtualization.v2.Msvm_VirtualSystemMigrationSettingData.cs | 2 +- .../ROOT.virtualization.v2.Msvm_VirtualSystemSettingData.cs | 2 +- .../hyperv/DotNet/ServerResource/WmiWrappers/Readme.txt | 2 +- .../hyperv/DotNet/ServerResource/WmiWrappers/WmiWrappers.csproj | 2 +- ...MV2.Win32_PerfFormattedData_Counters_ProcessorInformation.cs | 2 +- .../etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service | 2 +- .../etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service | 2 +- .../etc/systemd/system/hyperv-daemons.hv-vss-daemon.service | 2 +- systemvm/debian/etc/systemd/system/open-vm-tools.service | 2 +- systemvm/debian/etc/systemd/system/xe-daemon.service | 2 +- 64 files changed, 64 insertions(+), 64 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da1e23bd02a..64f52227aed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,7 +54,7 @@ repos: ^systemvm/agent/certs/realhostip\.key$ - id: end-of-file-fixer exclude: \.vhd$ - #- id: fix-byte-order-marker + - id: fix-byte-order-marker - id: forbid-submodules - id: mixed-line-ending exclude: \.(cs|xml)$ diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/.nuget/NuGet.Config b/plugins/hypervisors/hyperv/DotNet/ServerResource/.nuget/NuGet.Config index 6efc7f7b978..308b678b2da 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/.nuget/NuGet.Config +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/.nuget/NuGet.Config @@ -1,4 +1,4 @@ - + diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs index 4b4d8bd121c..6b35e053c5f 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentService.Designer.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.Designer.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.Designer.cs index 5e89a18fb2d..2b9e55156c0 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.Designer.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.Designer.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.settings b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.settings index 695ebe2ce99..0944cdca61d 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.settings +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentSettings.settings @@ -1,4 +1,4 @@ - + diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShell.csproj b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShell.csproj index 262d2a83a1d..8fa1e5d57ba 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShell.csproj +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShell.csproj @@ -1,4 +1,4 @@ - + diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShellException.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShellException.cs index 14d9e9783b8..2500d8dd7c3 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShellException.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/AgentShellException.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config index f7acb954cc1..b66258ad9f6 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/App.config @@ -1,4 +1,4 @@ - +
diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Program.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Program.cs index 1348082328e..595f224c642 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Program.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Program.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.Designer.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.Designer.cs index 3668a592732..e122eee7ea9 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.Designer.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.Designer.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.cs index 78356c64848..d25108c7495 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/ProjectInstaller.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Properties/AssemblyInfo.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Properties/AssemblyInfo.cs index 1216f9b1fcb..d0a1e487016 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Properties/AssemblyInfo.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -// Licensed to the Apache Software Foundation (ASF) under one +// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/packages.config b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/packages.config index 2f2cd01f1da..72a771d299f 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/packages.config +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/AgentShell/packages.config @@ -1,4 +1,4 @@ - + diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/App.config b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/App.config index 0e75ef9b5f4..3c4f7066082 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/App.config +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/App.config @@ -1,4 +1,4 @@ - +