Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100

[smoosh]
indent_style = space
indent_size = 2
shell_variant = bash
trim_trailing_whitespace = true
charset = utf-8

[*.{sh,bash,bats}]
indent_style = space
indent_size = 2
shell_variant = bash

[*.{yml,yaml}]
[smoosh]
indent_style = space
indent_size = 2

Expand Down
16 changes: 4 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# Enforce LF line endings everywhere — prevents CRLF issues on Windows/Git Bash.
* text=auto eol=lf
*.sh text eol=lf
smoosh text eol=lf

# Binary files — do not diff or merge.
*.png binary
*.gif binary
*.jpg binary

# Shell scripts — ensure LF and enable linguist detection.
*.sh text eol=lf linguist-language=Shell
smoosh text eol=lf linguist-language=Shell

# Bats test files.
*.bats text eol=lf linguist-language=Shell
# Hide golden tests from PR diffs and language stats
test/golden/** -diff linguist-generated=true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ todos/

# test artefacts
/tmp/
coverage/

# release artefacts
*.sha256

# fixture files that intentionally resemble secrets/env files
!test/fixtures/golden-repo/.env.example
2 changes: 0 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Contributing to smoosh

Thank you for your interest in contributing!

## Prerequisites

- Bash 3.2+ (test with `bash --version`)
Expand Down
Loading