We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f43743b commit 9101f32Copy full SHA for 9101f32
config/default.yml
@@ -632,7 +632,7 @@ PreCommit:
632
LineEndings:
633
description: 'Check line endings'
634
enabled: false
635
- eol: "\n"
+ eol: "\n" # or "\r\n" for Windows-style newlines
636
637
XmlLint:
638
lib/overcommit/hook/pre_commit/line_endings.rb
@@ -45,6 +45,8 @@ def eol
45
'lf'
46
when "\r\n"
47
'crlf'
48
+ else
49
+ raise 'Invalid `eol` option specified: must be "\n" or "\r\n"'
50
end
51
52
0 commit comments