https://github.com/erictleung/find-folder-whitespace
Raise error for whitespace in folders
https://github.com/erictleung/find-folder-whitespace
github-actions linting whitespace
Last synced: 3 months ago
JSON representation
Raise error for whitespace in folders
- Host: GitHub
- URL: https://github.com/erictleung/find-folder-whitespace
- Owner: erictleung
- License: mit
- Created: 2022-03-30T20:38:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T20:50:21.000Z (over 3 years ago)
- Last Synced: 2025-03-01T20:45:38.435Z (5 months ago)
- Topics: github-actions, linting, whitespace
- Language: Shell
- Homepage: https://github.com/marketplace/actions/find-folders-with-whitespace
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find-folder-whitespace
[](https://github.com/erictleung/find-folder-whitespace/actions/workflows/test.yml)
[](https://opensource.org/licenses/MIT)Raise error for whitespace in folders
## Example Workflow
```yaml
name: Exampleon: pull_request
jobs:
example:
name: Find Folders with Whitespace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erictleung/find-folder-whitespace@main
```## Example Pull Requests
Fails: https://github.com/erictleung/find-folder-whitespace/pull/1
Passes: https://github.com/erictleung/find-folder-whitespace/pull/2
## Test Locally
```bash
docker build -t test .
docker run -v $(pwd):/find-folder-whitespace test
```## Credit
**Motivated by**: https://twitter.com/ASpittel/status/1508939056918396931
**Code inspired by**: https://github.com/harupy/find-trailing-whitespace