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
20 changes: 12 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
* text=auto eol=lf

/.git* export-ignore
/.php-cs-fixer.dist.php export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/docs/ export-ignore
/tests/ export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/composer.lock export-ignore
/docs export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore

/tests/** linguist-vendored
/docs/** linguist-documentation
/docs/** linguist-documentation
/tests/Fixtures/** -linguist-detectable
/tests/fixtures/** -linguist-detectable
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/.phpunit.cache/
/var/
/vendor/
/composer.lock
/.phpunit.cache/
/.phpunit.result.cache
/.php-cs-fixer.cache
/coverage/
/coverage.xml
/composer.lock
/phpstan.neon
/phpunit.xml
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,20 +356,34 @@ $file->headers['index']; // 'index abcdef..123456 100644'
- [Errors](docs/errors.md): recover from rejected inputs and patches.
- [Complete documentation](docs/index.md): review the package scope and every guide.

## Testing
## Contributing

Run the test suite:
Contributions of all kinds are welcome. Visit the
[project on GitHub](https://github.com/altophp/code-diff) to
[report a bug](https://github.com/altophp/code-diff/issues/new),
[suggest a feature](https://github.com/altophp/code-diff/issues/new), or
[open a pull request](https://github.com/altophp/code-diff/pulls).

Before submitting code, run:

```bash
vendor/bin/phpunit
# Runs PHP CS Fixer, PHPStan, and PHPUnit
composer qa
```

Run tests with coverage:
Changes to public behavior should include tests and documentation.

```bash
vendor/bin/phpunit --coverage-text
```
## Support

ALTO Code Diff is open source and independently maintained by
[Simon André](https://smnandre.dev). If it is useful to your work, you can
support its continued development through
[GitHub Sponsors](https://github.com/sponsors/smnandre).

Sharing the package or
[starring it on GitHub](https://github.com/altophp/code-diff) also helps.

## License

This project is licensed under the [MIT License](./LICENSE).
ALTO Code Diff is released by [ALTO PHP](https://altophp.com) under the
[MIT License](LICENSE).
Loading