Skip to content

Releases: Aldaviva/GitHooks

0.2.1

09 Feb 12:36
0.2.1
0aa9cb2
Compare
Choose a tag to compare
  • Look for PublishSingleFile and PublishAOT at any depth of .csproj XML file, not just direct children of the parent Project element (Elements does not imply children, Microsoft!).
  • Conform to NuGet JSON encoding by not escaping + to \u002B, which makes diffs very messy when ILLink.Tasks is removed.

0.2.0

04 Feb 06:47
0.2.0
7767256
Compare
Choose a tag to compare
  • Analyze staged (index) files instead of working directory files, because that's what will get committed
  • Report all FIXMEs found, not just the first one
  • Added binaries for more CPU architectures and OSes (Windows arm64; Linux x64, arm, and arm64)
    • Binaries are now uploaded to a release in one big ZIP file because many of them need to have the same filename (pre-commit[.exe]), and renaming them to avoid collisions in a release might lead to users keeping the wrong filename and the hook never running
  • Parse .csproj files using LINQ to XML instead of regular expressions
  • Parse package.lock.json files using System.Text.Json instead of regular expressions
  • Disable AOT because it wasn't faster than JIT

0.1.1

06 Jan 09:23
0.1.1
0e7901b
Compare
Choose a tag to compare
  • Skip removal of Microsoft.NET.ILLink.Tasks if PublishSingleFile or PublishAot are true in the .csproj file.

0.1.0

16 May 08:25
0.1.0
eec704f
Compare
Choose a tag to compare
  • Stop commit if any staged files contain FIXME
  • Remove Microsoft.NET.ILLink.Tasks dependency from .NET package.lock.json files to prevent dotnet restore --locked-mode from failing
    • Unless a .csproj file in the same folder has AOT compilation enabled with <PublishAot>true</PublishAot>