Skip to content

Commit 29402e7

Browse files
committed
Add EditorConfig file
More info here: https://editorconfig.org/ For example, `ruby/ruby` has it: https://github.com/ruby/ruby/blob/05ebaee/.editorconfig Also fix some offenses.
1 parent fae666b commit 29402e7

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 80
11+
12+
[*.zsh]
13+
indent_size = 4

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
5757
## Contributing
5858

5959
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/optparse.
60-

misc/rb_optparse.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ _rb_optparse() {
1616
}
1717

1818
rb_optparse () {
19-
[ $# = 0 ] || complete -o default -F _rb_optparse "$@"
19+
[ $# = 0 ] || complete -o default -F _rb_optparse "$@"
2020
}

misc/rb_optparse.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ generate-complete-function/ruby/optparse ()
2424
mkdir -p "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}"
2525
$1 "--*-completion-zsh=${1:t}" >! "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$cmpl"
2626
if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
27-
unfunction "$cmpl"
28-
autoload -U "$cmpl"
27+
unfunction "$cmpl"
28+
autoload -U "$cmpl"
2929
else
3030
compinit "$cmpl"
3131
fi

test/optparse/test_acceptable.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,3 @@ def test_decimal_numeric
196196
end
197197

198198
end
199-

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy