Skip to content

Prevent modification of a comment section. #763

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

Closed
dpc opened this issue Jan 11, 2016 · 4 comments
Closed

Prevent modification of a comment section. #763

dpc opened this issue Jan 11, 2016 · 4 comments
Labels
a-comments only-with-option requires a non-default option value to reproduce

Comments

@dpc
Copy link

dpc commented Jan 11, 2016

How do I prevent rustfmt from changing my comment? Sometimes people need to do some tricky stuff inside comments, and they have a reason for keeping them the way there are.

@nrc nrc added the a-comments label Jan 12, 2016
@nrc
Copy link
Member

nrc commented Jan 12, 2016

We don't have a way yet. We'd like a comment equivalent of rustfmt_skip.

@nrc
Copy link
Member

nrc commented Jan 16, 2017

We now skip comments by default.

@nrc nrc added the only-with-option requires a non-default option value to reproduce label Jan 16, 2017
@dpc
Copy link
Author

dpc commented Jan 16, 2017

Any way to make it selective? I actually would be happy to have to comments changed except for rare cases.

@nrc
Copy link
Member

nrc commented Jan 16, 2017

not yet, I would like to add such a feature at some point though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-comments only-with-option requires a non-default option value to reproduce
Projects
None yet
Development

No branches or pull requests

3 participants