Thanks to visit codestin.com
Credit goes to github.com

Skip to content

style: fix cs and type in SSH2::get_stream_timeout() #2016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simPod
Copy link
Contributor

@simPod simPod commented Jul 9, 2024

No description provided.

Copy link
Member

@terrafrost terrafrost left a comment

Choose a reason for hiding this comment

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

I don't know how I missed this - I apologize!

I mean, on July 12 I flew from Texas to Tokyo on vacation. You submitted this PR on July 9. So that prob had something to do with it. But I feel like I could have reviewed it on either July 10 or July 11 meh.

Anyway, I did fix most of these issues with 44d5ca2 . You and I implemented different fixes for one issue (which is causing a merge conflict) and one of the changes I strongly disagree with, as my comment elaborates upon.

@simPod simPod force-pushed the csfix branch 2 times, most recently from a656aa9 to 28094ae Compare August 12, 2024 09:46
@simPod simPod requested a review from terrafrost August 12, 2024 09:46
->setFinder(PhpCsFixer\Finder::create()
->in(__DIR__ . '/..')
// https://github.com/phpseclib/phpseclib/pull/2016#discussion_r1691282898
->notPath('phpseclib/Crypt/Blowfish.php'))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should ignore it for now.

Copy link
Member

Choose a reason for hiding this comment

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

tbh if we're going to be ignoring files I think it'd better just to drop PhpCsFixer all together.

In reviewing how PhpCsFixer came to be included in phpseclib... so there was #1748 for the master branch that I cherry-picked into the 3.0 branch. Then there was #1754 but it ultimately wasn't merged because of whitespace issues similar to what we're dealing with, now. I proposed codesniffer be used instead and then we got #1760. So right now we're doing PhpCsFixer, codesniffer and pslam. Maybe we jut do codesniffer and pslam.

It'd be a shame to lose codesniffer because it does make good finds but I greatly dislike the idea of excluding entire files and of making the types of whitespace changes that it's proposing.

I suppose another idea would be to take the output of PhpCSFixer and filter out errors from lines of code that have // @codingStandardsIgnoreStart before it and // @codingStandardsIgnoreEnd after.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I use (and contribute to) https://github.com/doctrine/coding-standard. Can consider to switch to that.

@simPod simPod changed the title style: fix cs style: fix cs and type in SSH2::get_stream_timeout() Aug 12, 2024
@simPod simPod marked this pull request as ready for review August 12, 2024 11:25
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