ci: incease max line length to 180 (#3714)

This commit is contained in:
Dag 2023-09-27 23:29:08 +02:00 committed by GitHub
parent c04c0a5614
commit f9ec88fb45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

View File

@ -1,8 +1,13 @@
This section explains the coding style policy for RSS-Bridge with examples and references to external resources. Please make sure your code is compliant before opening a pull request. This section explains the coding style policy for RSS-Bridge with examples and references to external resources.
Please make sure your code is compliant before opening a pull request.
You will automatically be notified if issues were found in your pull request. You must fix those issues before the pull request will be merged. Refer to [phpcs.xml](https://github.com/RSS-Bridge/rss-bridge/blob/master/phpcs.xml) for a complete list of policies enforced by Travis-CI. You will automatically be notified if issues were found in your pull request.
You must fix those issues before the pull request will be merged.
Refer to [phpcs.xml](https://github.com/RSS-Bridge/rss-bridge/blob/master/phpcs.xml) for a complete list of policies enforced by Travis-CI.
If you want to run the checks locally, make sure you have [`phpcs`](https://github.com/squizlabs/PHP_CodeSniffer) and [`phpunit`](https://phpunit.de/) installed on your machine and run following commands in the root directory of RSS-Bridge (tested on Debian): If you want to run the checks locally, make sure you have
[`phpcs`](https://github.com/squizlabs/PHP_CodeSniffer) and
[`phpunit`](https://phpunit.de/) installed on your machine and run following commands in the root directory of RSS-Bridge (tested on Debian):
```console ```console
./vendor/bin/phpcs --standard=phpcs.xml --warning-severity=0 --extensions=php -p ./ ./vendor/bin/phpcs --standard=phpcs.xml --warning-severity=0 --extensions=php -p ./
@ -73,7 +78,7 @@ _Reference_: [`Squiz.WhiteSpace.SuperfluousWhitespace`](https://github.com/squiz
# Maximum Line Length # Maximum Line Length
There is no maximum line length. 180
# Strings # Strings

View File

@ -20,8 +20,8 @@
<rule ref="Generic.Files.LineLength"> <rule ref="Generic.Files.LineLength">
<properties> <properties>
<property name="lineLimit" value="160"/> <property name="lineLimit" value="180"/>
<property name="absoluteLineLimit" value="160"/> <property name="absoluteLineLimit" value="180"/>
<property name="ignoreComments" value="true"/> <property name="ignoreComments" value="true"/>
</properties> </properties>
</rule> </rule>