Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Test for Byte Order Mark (BOM) on script files (.ps1) #160

@johlju

Description

@johlju

Script files (.ps1) should be UTF-8, and not UTF-8 with BOM.
https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#correct-file-encoding

I saw that there is tests script files that has BOM on them in xSQLServer.

I suggest we add another check for BOM on script files (.ps1). And make that Opt-In as well.

Opt-In using:

[
    "Common Tests - Validate Script Files"
]

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