Skip to content

Run tidy on tests #12055

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

Merged
merged 1 commit into from
Feb 7, 2014
Merged

Run tidy on tests #12055

merged 1 commit into from
Feb 7, 2014

Conversation

dguenther
Copy link
Contributor

This PR extends the tidy formatting check to rust files in the test folder. To facilitate this, a few flags were added to tidy:

  • xfail-tidy-cr - Disables the check for CR characters for all following lines in the file
  • xfail-tidy-tab - Disables the check for tab characters for all following lines in the file
  • xfail-tidy-linelength - Disables the line length check for all following lines in the file

Checks should not have to be disabled often. I disabled line length checks in debug-info tests that use debugger: checks, but aside from that, there were relatively few exclusions. Running tidy on all the tests does slow down the formatting check, so it may be worth investigating further optimization.

cc #4534

@dguenther
Copy link
Contributor Author

Merging failed, so I rebased onto master. r? @brson

bors added a commit that referenced this pull request Feb 7, 2014
This PR extends the tidy formatting check to rust files in the test folder. To facilitate this, a few flags were added to tidy:

* `xfail-tidy-cr` - Disables the check for CR characters for all following lines in the file
* `xfail-tidy-tab` - Disables the check for tab characters for all following lines in the file
* `xfail-tidy-linelength` - Disables the line length check for all following lines in the file

Checks should not have to be disabled often. I disabled line length checks in `debug-info` tests that use `debugger:` checks, but aside from that, there were relatively few exclusions. Running tidy on all the tests does slow down the formatting check, so it may be worth investigating further optimization.

cc #4534
@bors bors closed this Feb 7, 2014
@bors bors merged commit 730bdb6 into rust-lang:master Feb 7, 2014
@dguenther dguenther deleted the tidy_test branch February 7, 2014 20:41
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