fluid-project / fluid-lint-all

Consolidated linting logic free from any particular build technology
BSD 3-Clause "New" or "Revised" License
0 stars 5 forks source link

Exclude image, audio, and video files from newline checks #4

Closed jobara closed 3 years ago

jobara commented 3 years ago

Is your feature request related to a problem?

At the moment binary files are included in the lintspaces.newlines check. However, these are binary files do not require this check. At the moment a user of fluid-lint-all needs to setup configuration in the .fluidlintallrc.json file to explicitly exclude all of these files in the project.

For example in the storytelling tool we had to do the following:

{
    "lintspaces": {
        "newlines": {
            "excludes": [
                "./tests/**/*.png",
                "./tests/**/*.jpg",
                "./tests/**/*.jpeg",
                "./tests/**/*.gif",
                "./tests/**/*.mp3",
                "./tests/**/*.mp4",
                "./tests/**/*.webm"
            ]
        }
    }
}

Describe the solution you'd like

These binary files, and other common ones should automatically be excluded from the lintspaces.newlines check.