-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Action instead of a filter for CRLF normalization (#106)
* Use GitHub Action instead of a filter for CRLF normalization * Update and rename enforce-crlf.yml to enforce_crlf.yml * Update enforce_crlf.yml
- Loading branch information
1 parent
717cca2
commit a351c01
Showing
3 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# By default, auto detect text files and perform LF normalization | ||
* text=auto eol=lf | ||
|
||
# VBA extensions - Enforce CRLF using a filter | ||
# To make sure the filter is active, run the command: git config include.path ../.gitconfig | ||
*.bas -text filter=crlf | ||
*.cls -text filter=crlf | ||
*.frm -text filter=crlf | ||
# VBA extensions - Prevent LF normalization | ||
*.bas -text diff | ||
*.cls -text diff | ||
*.frm -text diff | ||
|
||
# VBA extensions - Mark as binary | ||
*.frx binary | ||
|
||
# AutoHotKey | ||
*.ahk -text filter=crlf | ||
*.ahk -text diff |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Enforce-CRLF | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
enforce-crlf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Enforce CRLF action | ||
uses: DecimalTurn/Enforce-CRLF@08706ea4cc4a3de32d8b3c769686355a22d69e84 #v1.1.2 | ||
with: | ||
extensions: .bas, .frm, .cls | ||
do-checkout: true | ||
do-push: true | ||
|