Skip to content

Update PowerStig to support selective testing of text files by file extension #240

Open
@stevehose

Description

@stevehose

This request is for improving integration testing. Currently, integration testing analyzes text files ('.gitignore', '.gitattributes', '.ps1', '.psm1', '.psd1', '.json', '.xml', '.cmd', '.mof', '.md', '.js', '.yml') with several tests such as looking for empty files, Unicode encoding, content with tab characters, and files that do not end with a newline character. A better approach is to select which tests are appropriate for each file type. For example, a .xml file doesn't have to end with a newline and it is irrelevant if it contains a tab character, but it shouldn't be an empty file or be Unicode-encoded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions