mirror of
https://github.com/kdabir/has.git
synced 2024-09-18 17:01:29 +02:00
f5981b9145
* [SC2196] Use grep -Eegrep is non-standard and deprecated. * [SC2086] Double quoting Double quote to prevent globbing and word splitting. * [SC2059] printf syntax Don't use variables in the printf format string. Use printf "..%s.." "$foo". Update matching test to not assume whitespace is <space> * [SC2002] Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. * Update Unicode PASS/FAIL output - [x] NEW variables for 'checkmark' and 'fancy x' and tput colours - [x] eg: `checkmark` = `\342\234\223` - [x] eg: `PASS=${txtbold}${txtgreen}${checkmark}${txtreset}` - [x] update `printf` statements to use `%b` for unicode variables. - [x] Using readonly variables for - [x] $BINARY_NAME and $VERSION - [x] $PASS and $FAIL - [x] refactor `.hasrc` file reading - [x] [SC2002] Useless cat - [x] Add new BATS tests for Unicode output * Repo scaffolding - shellscript filetype - [x] Add shellscripts to `.editorconfig` - [x] Add shellscripts to `.gitattributes` * Refactored tests to use consistent unicode glyphs.
24 lines
386 B
INI
24 lines
386 B
INI
# http://editorconfig.org/
|
|
root = true
|
|
|
|
[*]
|
|
indent_style = space
|
|
end_of_line = lf
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
|
|
[*.{sh,bash,bats}]
|
|
indent_size = 2
|
|
indent_style = space
|
|
|
|
# Markdown
|
|
[*.md]
|
|
indent_size = 4
|
|
trim_trailing_whitespace = false
|
|
|
|
# Makefiles always use tabs for indentation
|
|
[{Makefile, makefile}]
|
|
indent_style = tab
|
|
indent_size = 4
|