Skip to content

Commit 9125cfd

Browse files
authored
Merge pull request #22 from eclipxe13/maintenance
Mantenimiento 2025-09-25
2 parents 1040a47 + 81483fc commit 9125cfd

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
# Actions
88
# shivammathur/setup-php@v2 https://github.com/marketplace/actions/setup-php-action
9-
# SonarSource/sonarqube-scan-action@v5 https://github.com/marketplace/actions/official-sonarqube-scan
9+
# SonarSource/sonarqube-scan-action@v6 https://github.com/marketplace/actions/official-sonarqube-scan
1010

1111
jobs:
1212

@@ -137,6 +137,6 @@ jobs:
137137
sed 's#'$GITHUB_WORKSPACE'#/github/workspace#g' build/coverage/junit.xml > build/sonar-junit.xml
138138
sed 's#'$GITHUB_WORKSPACE'#/github/workspace#g' build/coverage/clover.xml > build/sonar-coverage.xml
139139
- name: SonarCloud Scan
140-
uses: SonarSource/sonarqube-scan-action@v5
140+
uses: SonarSource/sonarqube-scan-action@v6
141141
env:
142142
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.phive/phars.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
33
<phar name="php-cs-fixer" version="^3.75.0" installed="3.75.0" location="./tools/php-cs-fixer" copy="false"/>
4-
<phar name="phpcs" version="^3.12.1" installed="3.12.1" location="./tools/phpcs" copy="false"/>
5-
<phar name="phpcbf" version="^3.12.1" installed="3.12.1" location="./tools/phpcbf" copy="false"/>
4+
<phar name="phpcs" version="^4.0.0" installed="4.0.0" location="./tools/phpcs" copy="false"/>
5+
<phar name="phpcbf" version="^4.0.0" installed="4.0.0" location="./tools/phpcbf" copy="false"/>
66
<phar name="phpstan" version="^2.1.11" installed="2.1.11" location="./tools/phpstan" copy="false"/>
77
<phar name="infection" version="^0.29.14" installed="0.29.14" location="./tools/infection" copy="false"/>
88
</phive>

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'@PHP81Migration' => true,
1919
'@PHP80Migration:risky' => true,
2020
// symfony
21+
'array_indentation' => true,
2122
'class_attributes_separation' => true,
2223
'whitespace_after_comma_in_array' => true,
2324
'no_empty_statement' => true,

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Utilizamos [Versionado Semántico 2.0.0](SEMVER.md).
88

99
Los cambios no liberados no requieren de una nueva versión y son incluidos en la rama principal.
1010

11+
### Mantenimiento 2025-09-26
12+
13+
- Se actualizan las herramientas `phpcs` y `phpcbf` a la versión 4.0.0.
14+
- Se elimina la regla `Generic.Functions.CallTimePassByReference`.
15+
- Se actualiza `sonarqube-scan-action` a la versión 6.
16+
1117
## Versión 1.2.0
1218

1319
- Se asegura la compatibilidad con PHP 8.4.

phpcs.xml.dist

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<ruleset name="EngineWorks">
3-
<description>The EngineWorks (PSR-2 based) coding standard.</description>
3+
<description>The EngineWorks (PSR-12 based) coding standard.</description>
44

55
<file>src</file>
66
<file>tests</file>
@@ -11,16 +11,13 @@
1111
<arg name="extensions" value="php"/>
1212
<arg name="cache" value="build/phpcs.cache"/>
1313

14-
<rule ref="PSR12">
15-
<exclude name="Generic.Files.LineLength.TooLong"/>
16-
</rule>
14+
<rule ref="PSR12"/>
1715
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
1816
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
1917
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
2018
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
2119
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
2220
<rule ref="Generic.Formatting.SpaceAfterNot"/>
23-
<rule ref="Generic.Functions.CallTimePassByReference"/>
2421
<rule ref="Generic.NamingConventions.ConstructorName"/>
2522
<rule ref="Generic.PHP.DeprecatedFunctions"/>
2623
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
@@ -29,4 +26,10 @@
2926
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
3027
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
3128
<rule ref="Zend.Files.ClosingTag"/>
29+
<rule ref="Generic.Files.LineLength">
30+
<properties>
31+
<property name="lineLimit" value="600"/>
32+
<property name="absoluteLineLimit" value="0"/>
33+
</properties>
34+
</rule>
3235
</ruleset>

0 commit comments

Comments
 (0)