Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erictleung/find-file-whitespace
Raise error for whitespace in files
https://github.com/erictleung/find-file-whitespace
github-actions linting whitespace
Last synced: 17 days ago
JSON representation
Raise error for whitespace in files
- Host: GitHub
- URL: https://github.com/erictleung/find-file-whitespace
- Owner: erictleung
- License: mit
- Created: 2022-03-30T19:57:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T20:26:12.000Z (almost 3 years ago)
- Last Synced: 2024-09-19T10:47:39.940Z (4 months ago)
- Topics: github-actions, linting, whitespace
- Language: Shell
- Homepage: https://github.com/marketplace/actions/find-files-with-whitespace
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find-file-whitespace
[![Test](https://github.com/erictleung/find-file-whitespace/actions/workflows/test.yml/badge.svg)](https://github.com/erictleung/find-file-whitespace/actions/workflows/test.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Raise error for whitespace in files
## Example Workflow
```yaml
name: Exampleon: 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: https://github.com/erictleung/find-file-whitespace/pull/1
Passes: https://github.com/erictleung/find-file-whitespace/pull/2
## Test Locally
```bash
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