Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
phd5-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
phd5-app
Commits
069d92e2
Commit
069d92e2
authored
May 08, 2023
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added lint config
parent
4dd3f133
Pipeline
#77339
passed with stages
in 8 minutes and 1 second
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
Makefile
Makefile
+2
-2
.php-cs-fixer.php
tests/.php-cs-fixer.php
+13
-0
No files found.
Makefile
View file @
069d92e2
...
...
@@ -187,14 +187,14 @@ fix-source: ##@development fix source-code linting errors
#
# Fixing source-code lint errors with cs-fixer
#
$(DOCKER_COMPOSE)
run
--rm
$(TESTER_SERVICE)
php-cs-fixer fix
--format
=
txt
-v
../src
$(DOCKER_COMPOSE)
run
--rm
$(TESTER_SERVICE)
php-cs-fixer fix
--format
=
txt
-v
lint-source
:
##
@development run source-code linting
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Liniting source-code with cs-fixer
#
$(DOCKER_COMPOSE)
run
--rm
$(TESTER_SERVICE)
php-cs-fixer fix
--format
=
txt
-v
--dry-run
../src
$(DOCKER_COMPOSE)
run
--rm
$(TESTER_SERVICE)
php-cs-fixer fix
--format
=
txt
-v
--dry-run
lint-metrics
:
##
@development run source-code metrics
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...
...
tests/.php-cs-fixer.php
0 → 100644
View file @
069d92e2
<?php
$finder
=
PhpCsFixer\Finder
::
create
()
->
exclude
([
'views'
,
'tests'
,
'web'
,
'config'
])
->
in
(
__DIR__
.
'/../'
)
;
$config
=
new
PhpCsFixer\Config
();
return
$config
->
setRules
([
'@PSR12'
=>
true
,
])
->
setFinder
(
$finder
)
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment