Skip to content

Can one exempt generated files from formatting? #1398

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
8573 opened this issue Mar 22, 2017 · 1 comment
Closed

Can one exempt generated files from formatting? #1398

8573 opened this issue Mar 22, 2017 · 1 comment

Comments

@8573
Copy link

8573 commented Mar 22, 2017

I'm using LALRPOP, which generates a Rust file from a build script,
which I then reference with a mod <filename> item.

The generated file is large and densely formatted, with many long
lines, and rustfmt always emits error messages about being unable to
wrap some of the lines. It does, however, reformat much of the file —
enough to expand the 3010-line file to 8265 lines.

How, if at all, could I instruct rustfmt to ignore this file?

@8573
Copy link
Author

8573 commented Mar 22, 2017

Apologies for posting this issue twice (the other instance being
#1399); my client claimed that the first submission failed.

@8573 8573 closed this as completed Mar 22, 2017
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

No branches or pull requests

1 participant