Skip to content

[CI] Add PHP 7.3 to Travis configuration#2317

Merged
Alkarex merged 1 commit intoFreshRSS:devfrom
Frenzie:php-7.3
Apr 1, 2019
Merged

[CI] Add PHP 7.3 to Travis configuration#2317
Alkarex merged 1 commit intoFreshRSS:devfrom
Frenzie:php-7.3

Conversation

@Frenzie
Copy link
Copy Markdown
Member

@Frenzie Frenzie commented Apr 1, 2019

This also requires an update of phpcs, since the old version won't run on PHP 7.3.

By setting setting the tab-width to 40 it works around the behavior introduced in squizlabs/PHP_CodeSniffer#1404 which erroneously interprets positioning spaces as indentation. ("If the line started with tabs, but had spaces after that, no error was thrown at all.")

That makes any line length checks ineffective, but I think line length checks aren't very useful anyway. They're basically just a (very!) rough indication that you might want to consider some refactoring.

This also requires an update of phpcs, since the old version won't run on PHP 7.3.

By setting setting the tab-width to 40 it works around the behavior introduced in squizlabs/PHP_CodeSniffer#1404 which erroneously interprets positioning spaces as indentation. ("If the line started with tabs, but had spaces after that, no error was thrown at all.")

That makes any line lengths checks ineffective, but I think line length checks aren't very useful anyway. They're basically just a (very!) rough indication that you might want to consider some refactoring.
@Alkarex Alkarex modified the milestones: 1.15.0, 1.14.1 Apr 1, 2019
@Alkarex Alkarex merged commit 9fab637 into FreshRSS:dev Apr 1, 2019
@Alkarex Alkarex mentioned this pull request Apr 3, 2019
<description>Created with the PHP Coding Standard Generator. https://edorian.github.com/php-coding-standard-generator/</description>
<!-- to circumvent https://github.com/squizlabs/PHP_CodeSniffer/pull/1404 -->
<!--<arg name="tab-width" value="10"/>-->
<arg name="tab-width" value="40"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Frenzie Since this workaround, have you seen anything better?
I am giving a try to https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs in Visual Studio Code, and it would be nice to <arg name="tab-width" value="40"/>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't checked.

@Frenzie Frenzie deleted the php-7.3 branch February 26, 2021 07:00
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
This also requires an update of phpcs, since the old version won't run on PHP 7.3.

By setting setting the tab-width to 40 it works around the behavior introduced in squizlabs/PHP_CodeSniffer#1404 which erroneously interprets positioning spaces as indentation. ("If the line started with tabs, but had spaces after that, no error was thrown at all.")

That makes any line lengths checks ineffective, but I think line length checks aren't very useful anyway. They're basically just a (very!) rough indication that you might want to consider some refactoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants