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

alinghash does not move comments correctly #974

Closed
wants to merge 1 commit into from
Closed

alinghash does not move comments correctly #974

wants to merge 1 commit into from

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Apr 8, 2014

@jonas054 @bbatsov mind taking a look at this?

@bbatsov
Copy link
Collaborator

bbatsov commented Apr 8, 2014

Ouch. Comments don't appear in the AST and they are pretty hard to deal with in general. Not sure if we can work-around this in a simple manner.

@jonas054
Copy link
Collaborator

jonas054 commented Apr 8, 2014

I don't think we can detect badly aligned comments at all right now. But perhaps @tamird is right that comment indentation is best handled in each cop that deals with indentation and alignment, since that's where the knowledge about correct indentation lies.

We've got a fair amount of work ahead of us. I'll try to start looking at this pretty soon.

@jonas054 jonas054 self-assigned this Apr 8, 2014
@jonas054 jonas054 closed this in df4a9e4 Apr 27, 2014
bbatsov added a commit that referenced this pull request Apr 27, 2014
@tamird tamird deleted the alignhash-commentwhitespace branch May 16, 2014 18:57
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.

3 participants