about summary refs log tree commit diff
path: root/src/test/run-make/rustdoc-hidden-line/foo.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-07 11:26:29 -0800
committerbors <bors@rust-lang.org>2014-02-07 11:26:29 -0800
commit56565eb129018a708445afcd6ea14f5b51cf27e5 (patch)
tree6ac3203e6798df65908f65ec403f99f19400bea3 /src/test/run-make/rustdoc-hidden-line/foo.rs
parentca40da8b55a04394f1db11b6c7410e49b63c6e04 (diff)
parent730bdb6403dd47b98c1be6c4b3423edb28ca9477 (diff)
downloadrust-56565eb129018a708445afcd6ea14f5b51cf27e5.tar.gz
rust-56565eb129018a708445afcd6ea14f5b51cf27e5.zip
auto merge of #12055 : dguenther/rust/tidy_test, r=alexcrichton
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
Diffstat (limited to 'src/test/run-make/rustdoc-hidden-line/foo.rs')
-rw-r--r--src/test/run-make/rustdoc-hidden-line/foo.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-make/rustdoc-hidden-line/foo.rs b/src/test/run-make/rustdoc-hidden-line/foo.rs
index 69c7683780b..d9b7810cc86 100644
--- a/src/test/run-make/rustdoc-hidden-line/foo.rs
+++ b/src/test/run-make/rustdoc-hidden-line/foo.rs
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #[crate_id="foo#0.1"];
 
 /// The '# ' lines should be removed from the output, but the #[deriving] should be