Skip to content

erictleung/find-file-whitespace

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

find-file-whitespace

Test License: MIT

Raise error for whitespace in files

Example Workflow

name: Example

on: pull_request

jobs:
  example:
    name: Find Files with Whitespace
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: erictleung/find-file-whitespace@main

Example Pull Requests

Fails: #1

Passes: #2

Test Locally

docker build -t test .
docker run -v $(pwd):/find-file-whitespace test

Credit

Motivated by: https://twitter.com/ASpittel/status/1508939056918396931

Code inspired by: https://github.com/harupy/find-trailing-whitespace