Skip to content

Commit b754f87

Browse files
committed
Move from ReindeerWeb/AutoGitIgnore
1 parent 2a98547 commit b754f87

14 files changed

Lines changed: 573 additions & 3 deletions

‎.editorconfig‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# For more information about the properties used in
2+
# this file, please see the EditorConfig documentation:
3+
# http://editorconfig.org/
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 4
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
17+
18+
[*.yml]
19+
indent_size = 2
20+
21+
[{.travis.yml,package.json}]
22+
# The indent size used in the `package.json` file cannot be changed
23+
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
24+
indent_size = 2

‎.gitattributes‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Auto-detect text files, ensure they use LF.
2+
* text=auto eol=lf
3+
4+
# These files are always considered text and should use LF.
5+
# See core.whitespace @ http://git-scm.com/docs/git-config for whitespace flags.
6+
*.php text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4 diff=php
7+
*.json text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
8+
*.test text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
9+
*.yml text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=2

‎.github/CONTRIBUTING.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Contributing to AutoGitIgnore
2+
========================
3+
4+
Please note that this project is released with a
5+
[Contributor Code of Conduct](http://contributor-covenant.org/version/1/4/).
6+
By participating in this project you agree to abide by its terms.
7+
8+
Reporting Issues
9+
----------------
10+
11+
When reporting issues, please try to be as descriptive as possible, and include
12+
as much relevant information as you can. A step by step guide on how to
13+
reproduce the issue will greatly increase the chances of your issue being
14+
resolved in a timely manner.
15+
16+
Security Reports
17+
----------------
18+
19+
Please send any sensitive issue to [development@novusvetus.de](mailto:development@novusvetus.de). Thanks!
20+
21+
Contributing policy
22+
-------------------
23+
24+
Fork the project, create a feature branch, and send us a pull request.
25+
26+
To ensure a consistent code base, you should make sure the code follows
27+
the [PSR-2 Coding Standards](http://www.php-fig.org/psr/psr-2/). You can also
28+
run [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) with the
29+
configuration file that can be found in the project root directory.

‎.github/ISSUE_TEMPLATE.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Describe the steps to reproduce your issue.
2+
3+
```
4+
...replace me...
5+
```
6+
7+
Describe the expected and the actual outcome.
8+
9+
```
10+
...replace me...
11+
```
12+
13+
Describe your environment as detailed as possible.
14+
15+
```
16+
...replace me...
17+
```

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.idea
2+
.vagrant
3+
/.buildpath
4+
/.project
5+
/.settings
6+
/nbproject
7+
/vendor
8+
Vagrantfile

‎.php_cs‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
$header = <<<EOF
4+
This file is part of AutoGitIgnore.
5+
6+
(c) Novusvetus / Marcel Rudolf, Germany <development@novusvetus.de>
7+
8+
For the full copyright and license information, please view the LICENSE
9+
file that was distributed with this source code.
10+
EOF;
11+
12+
$finder = PhpCsFixer\Finder::create()
13+
->files()
14+
->name('*.php')
15+
->in(__DIR__)
16+
;
17+
18+
return PhpCsFixer\Config::create()
19+
->setUsingCache(false)
20+
->setRiskyAllowed(true)
21+
->setRules(array(
22+
'@PSR2' => true,
23+
'header_comment' => array('header' => $header)
24+
))
25+
->setFinder($finder)
26+
;

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2018, Novusvetus / Marcel Rudolf
3+
Copyright (c) 2018, Novusvetus / Marcel Rudolf, Germany <development@novusvetus.de>
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

‎README.md‎

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,51 @@
1-
# AutoGitIgnore
2-
A post-update-cmd script to automatically add Composer managed packages to .gitignore.
1+
# Auto Git Ignore by Novusvetus
2+
A post-update-cmd script to automatically add Composer managed packages to .gitignore
3+
4+
## Installation
5+
### Add the following to your composer.json
6+
```json
7+
"scripts": {
8+
"post-update-cmd": "Novusvetus\\AutoGitIgnore\\GitIgnoreBuilder::Go"
9+
}
10+
```
11+
### Add it to your project with:
12+
```shell
13+
composer require novusvetus/autogitignore
14+
```
15+
16+
### Exclude only dev packages
17+
Add to the following to your composer.json
18+
```json
19+
"extra": {
20+
"autogitignore": "devOnly"
21+
}
22+
```
23+
24+
## License
25+
3-clause BSD license
26+
See [License](LICENSE)
27+
28+
## Bugtracker
29+
Bugs are tracked in the issues section of this repository on GitHub.
30+
Please read over existing issues before submitting an issue to ensure yours is unique.
31+
32+
[Create a new issue](../../issues/new)
33+
- Describe the steps to reproduce your issue.
34+
- Describe the expected and the actual outcome.
35+
- Describe your environment as detailed as possible.
36+
37+
## Development and contribution
38+
Feature requests can also be made by [creating a new issue](../../issues/new).
39+
If you would like to make contributions to this module, feel free to [create a fork](../../fork) and submit a pull request.
40+
41+
## Versioning
42+
This project follows [Semantic Versioning](http://semver.org) paradigm. That is:
43+
44+
> Given a version number MAJOR.MINOR.PATCH, increment the:
45+
> 1. MAJOR version when you make incompatible API changes,
46+
> 2. MINOR version when you add functionality in a backwards-compatible manner, and
47+
> 3. PATCH version when you make backwards-compatible bug fixes.
48+
> Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
49+
50+
## Thanks to
51+
[mickaelperrin / Mickaël PERRIN](https://github.com/mickaelperrin)

‎composer.json‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "novusvetus/autogitignore",
3+
"description": "A post-update-cmd script to automatically add Composer managed packages to .gitignore",
4+
"authors": [
5+
{
6+
"name": "Novusvetus / Marcel Rudolf, Germany",
7+
"email": "development@novusvetus.de"
8+
}
9+
],
10+
"require": {
11+
"composer/composer": "*",
12+
"novusvetus/classhelper": "1.*"
13+
},
14+
"autoload": {
15+
"psr-4": {
16+
"Novusvetus\\AutoGitIgnore\\": "src/"
17+
}
18+
}
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/*
4+
* This file is part of AutoGitIgnore.
5+
*
6+
* (c) Novusvetus / Marcel Rudolf, Germany <development@novusvetus.de>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Novusvetus\AutoGitIgnore\Exceptions;
13+
14+
use Exception;
15+
16+
/**
17+
* This exception is used for .gitignore parsing failures
18+
*/
19+
class AutoGitIgnoreParserException extends Exception
20+
{
21+
}

0 commit comments

Comments
 (0)