Skip to content

🚀[Feature]: Fix code - Pre-commit? #230

@MariusStorhaug

Description

@MariusStorhaug

Description

Before pushing code:

  • Ensure all files in the repo is UTF8BOM. Script to convert all .ps1 files in the current directory and subdirectories to UTF-8 with BOM encoding.
    Get-ChildItem -Path $PSScriptRool/.. -Recurse -Filter "*.ps1" | ForEach-Object {
        $content = Get-Content -Path $_.FullName -Raw
        $content | Out-File -FilePath $_.FullName -Encoding UTF8BOM -NoNewline -Force
        Write-Host "Converted: $($_.FullName)"
    }
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions