Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandrone committed Sep 13, 2024
1 parent a13896c commit 30da28e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,6 @@ To add a configuration file, share it with the root volume of the container:
```console
docker run -it -v $(pwd)/.linelint.yml:/.linelint.yml -v $(pwd):/data fernandrone/linelint
```



18 changes: 18 additions & 0 deletions linter/.linelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 'true' will fix files
autofix: false

# list of paths to ignore, uses gitignore syntaxes (executes before any rule)
ignore:
- .git/

rules:
# checks if file ends in a newline character
end-of-file:
# set to true to enable this rule
enable: true

# set to true to disable autofix (if enabled globally)
disable-autofix: false

# if true also checks if file ends in a single newline character
single-new-line: true
3 changes: 3 additions & 0 deletions linter/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ func TestDefaultConfig(t *testing.T) {
t.Errorf("yaml.Unmarshal(Config):\n\tExpected %+v, got %+v", autofixTestConf, c)
}
}



0 comments on commit 30da28e

Please sign in to comment.