Skip to content

Commit

Permalink
chore: Prettify codebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 29, 2022
1 parent 29a5615 commit 110f9a9
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 20 deletions.
13 changes: 12 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,21 @@

root = true

[*]
[*.{php,inc,module}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
max_line_length = 120

[*.{json,json.dist,yml,yaml,yml.dist,yaml.dist}]
indent_style = space
indent_size = 4
max_line_length = 120

[*.{md}]
indent_style = space
indent_size = 2
max_line_length = 80
16 changes: 8 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/.github export-ignore
/docker export-ignore
/docs export-ignore
/features export-ignore
/spec export-ignore
/src/Tests export-ignore
/tests export-ignore
/.auto-changelog export-ignore
/.editorconfig export-ignore
/.envrc export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.prettierignore export-ignore
/.prettierrc export-ignore
/.scrutinizer.yml export-ignore
/behat.yaml export-ignore
/behat.yaml.dist export-ignore
/grumphp.yml export-ignore
/CHANGELOG.md export-ignore
/docker-compose.yaml export-ignore
/grumphp.yml.dist export-ignore
/infection.json export-ignore
/infection.json.dist export-ignore
/phpspec.yml export-ignore
/LICENSE export-ignore
/MAINTAINERS.txt export-ignore
/phpspec.yml.dist export-ignore
/phpstan.neon export-ignore
/phpstan.neon.dist export-ignore
/psalm.xml export-ignore
/README.md export-ignore
20 changes: 20 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Prettier checks

# This action works with pull requests and pushes
on:
pull_request:
push:

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install the Nix package manager
uses: cachix/install-nix-action@v17

- name: Checks
run: nix run nixpkgs#nodePackages.prettier -- --check .
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/.direnv/
/.idea/
/vendor
composer.lock
grumphp.yml
phpspec.yml
/build/
/vendor/
/.php_cs.cache
/composer.lock
.php_cs.cache
.envrc
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.direnv/
/.idea/
/build/
/vendor/
/docs/
CHANGELOG.md
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"proseWrap": "always"
}
12 changes: 6 additions & 6 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
build:
image: default-bionic
nodes:
analysis:
php81:
environment:
php:
version: 7.4
tests:
override:
- php-scrutinizer-run
version: 8.1
pecl_extensions:
- pcov

filter:
paths:
- 'src/*'
- "src/*"

tools:
external_code_coverage:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

# EU Login bundle

EU Login bundle for Symfony 4 & 5.
EU Login bundle for Symfony.

Read more on the dedicated documentation site: https://ecphp-eu-login-bundle.readthedocs.io/
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
EU Login Bundle
===============

A Central Authentication Service bundle for Symfony 4.
A Central Authentication Service bundle for Symfony.

The Central Authentication Service (CAS) is an Open-Source single sign-on protocol for the web.
Its purpose is to permit a user to access multiple applications while providing their credentials only once.
Expand Down

0 comments on commit 110f9a9

Please sign in to comment.