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

SpaceConsistencyBear: Remove trailing blank lines option #1793

Open
meetmangukiya opened this issue May 31, 2017 · 8 comments
Open

SpaceConsistencyBear: Remove trailing blank lines option #1793

meetmangukiya opened this issue May 31, 2017 · 8 comments

Comments

@meetmangukiya
Copy link
Member

I think removing trailing whitespace exists in some bears, but is language dependent. Haven't found a bear that removes trailing blank lines though

@jayvdb
Copy link
Member

jayvdb commented May 31, 2017

This would go into SpaceConsistencyBear I think? It does trailing whitespace per line, and enforce_newline_at_EOF , but not trailing blank lines..?

@meetmangukiya meetmangukiya changed the title WhiteSpaceBear: Remove trailing whitespaces and trailing blank lines SpaceConsistencyBear: Remove trailing blank lines option May 31, 2017
@meetmangukiya
Copy link
Member Author

@jayvdb yes, you are right, it should go into SpaceConsistencyBear 👍

danlls added a commit to danlls/coala-bears that referenced this issue Jul 2, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 2, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 2, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 2, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 2, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 2, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 3, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 3, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 3, 2017
New option to remove all trailing blanklines

Closes coala#1793
danlls added a commit to danlls/coala-bears that referenced this issue Jul 8, 2017
New option to remove all trailing blanklines

Closes coala#1793
@khanchi97
Copy link
Member

@danlls are you still working on this?If not, then I would like to do it.

@danlls
Copy link
Contributor

danlls commented Dec 12, 2017

I'm not, you can go ahead. Somebody can withdraw me from assignee

@khanchi97
Copy link
Member

@jayvdb @meetmangukiya I want to ask one thing.Let say in a file, if there are some trailing blanklines at EOF with whitespaces in these lines.So now when running SpaceConsistencyBear(I have made changes for allow_trailing_blanklines option), first it offers to delete those lines using applypatch action and if I use this action and after deleting those lines, now coala offers to remove whitespace from those lines which are already deleted by allow_trailing_blanklines option.

@Makman2
Copy link
Member

Makman2 commented Dec 13, 2017

Pick the behaviour that is most intuitive and most understandable from user perspective ;)

@khanchi97
Copy link
Member

No, I want to ask how I can fix this problem that if those lines have already deleted by allow_trailing_blanklines option then why in next step coala offers to remove whitespace from those lines which have been already deleted.

@Makman2
Copy link
Member

Makman2 commented Dec 13, 2017

Fix that behaviour and make the bear not emit patches for those lines any more 👍
I don't know in detail how to fix it ;)

khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 16, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 16, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 16, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 17, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 17, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 17, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 17, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 19, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 19, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 19, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Dec 19, 2017
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 2, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 2, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 2, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 2, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 3, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 4, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 9, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 18, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.

Closes coala#1793
khanchi97 added a commit to khanchi97/coala-bears that referenced this issue Jan 23, 2018
Add allow_trailing_blanklines option for whether to allow
trailing blanklines at EOF.And some blanklines are also removed
from some files just because of `blanklines_at_EOF` option.

Closes coala#1793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

6 participants