Skip to content
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

Apply parameter-list-wrapping when max_line_length is exceeded #200

Merged

Conversation

ntsim
Copy link
Contributor

@ntsim ntsim commented Apr 30, 2018

Resolves #96

This commit applies parameter-list-wrapping and its associated linting/formatting when max_line_length is exceeded by a function or class declaration due to its parameter list being too long. It will also apply for nested function declarations.

@ntsim ntsim force-pushed the parameter-list-wrapping-with-max-line-length branch from 76bc6f8 to bc091fd Compare April 30, 2018 14:28
@ntsim
Copy link
Contributor Author

ntsim commented Apr 30, 2018

@shyiko not really sure why this is failing on the AppVeyor build. Tests run fine locally, and the test failures in AppVeyor don't seem to suggest there's actually anything wrong with the output.

I'm currently guessing it has something to do with AppVeyor being Windows based, and how it pulls down Git code:

https://help.appveyor.com/discussions/problems/3954-test-failure-cause-by-different-newlines

Not sure why it isn't posing a problem for any of the other tests though.

Any ideas?

Resolves pinterest#96

This commit applies `parameter-list-wrapping` and its associated
linting/formatting when `max_line_length` is exceeded by a function or
class declaration due to its parameter list being too long. It will also
apply for nested function declarations.
@ntsim ntsim force-pushed the parameter-list-wrapping-with-max-line-length branch from bc091fd to 41559ca Compare April 30, 2018 14:57
shyiko added a commit that referenced this pull request Apr 30, 2018
@shyiko
Copy link
Collaborator

shyiko commented Apr 30, 2018

Not to worry (15b284f should take care of that).

Thank you for the PR, Nicholas! 🍻

@shyiko shyiko merged commit cb91be5 into pinterest:master Apr 30, 2018
shyiko added a commit that referenced this pull request May 3, 2018
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.

None yet

2 participants