-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new ruleset, gitignore, with rule gitignore_patterns
It'll use files identified by `dirs`+`filter` (which should be `.gitignore`) and apply (at the moment, the only existing) rule `gitignore_patterns` with the default value found in the documentation
- Loading branch information
1 parent
7d7ac44
commit 1efede8
Showing
8 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# `.gitignore` patterns | ||
|
||
(since [3.3.0](https://github.com/inaka/elvis_core/releases/tag/3.3.0)) | ||
|
||
Include, in the project's `.gitignore` file, the patterns identified by the rule. | ||
|
||
## Options | ||
|
||
- `all_of :: [string()]`. | ||
- default: `["^.rebar3/$", | ||
"^_build/$", | ||
"^_checkouts/$", | ||
"^doc/$", | ||
"^/erl_crash.dump$", | ||
"^/rebar3.crashdump$", | ||
"^test/logs/$"]`. | ||
|
||
## Example | ||
|
||
```erlang | ||
{elvis_project, gitignore_patterns, #{}} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.rebar3/ | ||
_build/ | ||
|
||
_checkouts/ | ||
extra | ||
doc/ | ||
/erl_crash.dump | ||
/rebar3.crashdump | ||
test/logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.rebar3/ | ||
_build/ | ||
_checkouts/ | ||
#doc/ | ||
|
||
/erl_crash.dump | ||
/rebar3.crashdump | ||
test/logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters