Add test data.
This commit is contained in:
2
bin/test
Executable file
2
bin/test
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
go test github.com/amyboyd/editorconfig-cli/editorconfig $*
|
||||||
12
editorconfig/tests/.editorconfig
Normal file
12
editorconfig/tests/.editorconfig
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = spaces
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[keep-trailing-spaces]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
1
editorconfig/tests/a/b/c/.editorconfig
Normal file
1
editorconfig/tests/a/b/c/.editorconfig
Normal file
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
2
editorconfig/tests/a/b/c/d/file.go
Normal file
2
editorconfig/tests/a/b/c/d/file.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
2
editorconfig/tests/a/b/c/d/file.java
Normal file
2
editorconfig/tests/a/b/c/d/file.java
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
2
editorconfig/tests/a/b/c/d/file.php
Normal file
2
editorconfig/tests/a/b/c/d/file.php
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
2
editorconfig/tests/a/b/c/d/keep-trailing-spaces.txt
Normal file
2
editorconfig/tests/a/b/c/d/keep-trailing-spaces.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
asd
|
||||||
2
editorconfig/tests/a/b/c/file.java
Normal file
2
editorconfig/tests/a/b/c/file.java
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
2
editorconfig/tests/a/b/file.go
Normal file
2
editorconfig/tests/a/b/file.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
2
editorconfig/tests/a/b/file.java
Normal file
2
editorconfig/tests/a/b/file.java
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
4
editorconfig/tests/a/b/has-root-config/.editorconfig
Normal file
4
editorconfig/tests/a/b/has-root-config/.editorconfig
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = spaces
|
||||||
3
editorconfig/tests/a/b/has-root-config/file.java
Normal file
3
editorconfig/tests/a/b/has-root-config/file.java
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
abc
|
||||||
|
def
|
||||||
|
indented 6 spaces but this should not be an error
|
||||||
Reference in New Issue
Block a user