clean tests/ui/doc.rs
Cleaning the empty lines for clarity.
This commit is contained in:
parent
e3aa074033
commit
856d64d43e
@ -1,23 +1,16 @@
|
||||
//! This file tests for the DOC_MARKDOWN lint
|
||||
|
||||
|
||||
#![feature(plugin)]
|
||||
#![plugin(clippy)]
|
||||
|
||||
#![deny(doc_markdown)]
|
||||
|
||||
/// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
||||
|
||||
|
||||
/// Markdown is _weird_. I mean _really weird_. This \_ is ok. So is `_`. But not Foo::some_fun
|
||||
|
||||
/// which should be reported only once despite being __doubly bad__.
|
||||
/// Here be ::is::a::global:path.
|
||||
|
||||
/// That's not code ~NotInCodeBlock~.
|
||||
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn foo_bar() {
|
||||
}
|
||||
|
||||
@ -32,7 +25,6 @@ fn foo_bar() {
|
||||
/// _foo bar_
|
||||
/// ~~~
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn multiline_codeblock() {
|
||||
}
|
||||
|
||||
@ -40,7 +32,6 @@ fn multiline_codeblock() {
|
||||
/// multiline
|
||||
/// emphasis_.
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn test_emphasis() {
|
||||
}
|
||||
|
||||
@ -55,7 +46,6 @@ fn test_emphasis() {
|
||||
/// 32kb 32Mb 32Gb 32Tb 32Pb 32Eb
|
||||
/// NaN
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn test_units() {
|
||||
}
|
||||
|
||||
@ -65,15 +55,11 @@ fn test_units() {
|
||||
/// `💣`
|
||||
/// `❤️`
|
||||
/// ß_foo
|
||||
|
||||
/// ℝ_foo
|
||||
|
||||
/// 💣_foo
|
||||
/// ❤️_foo
|
||||
/// foo_ß
|
||||
|
||||
/// foo_ℝ
|
||||
|
||||
/// foo_💣
|
||||
/// foo_❤️
|
||||
/// [ßdummy textß][foo_1ß]
|
||||
@ -89,28 +75,23 @@ fn test_units() {
|
||||
/// [foo3_💣]: dummy text
|
||||
/// [foo4_❤️]: dummy text
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn test_unicode() {
|
||||
}
|
||||
|
||||
/// This test has [a link_with_underscores][chunked-example] inside it. See #823.
|
||||
|
||||
/// See also [the issue tracker](https://github.com/Manishearth/rust-clippy/search?q=doc_markdown&type=Issues)
|
||||
/// on GitHub (which is a camel-cased word, but is OK). And here is another [inline link][inline_link].
|
||||
/// It can also be [inline_link2].
|
||||
|
||||
///
|
||||
/// [chunked-example]: https://en.wikipedia.org/wiki/Chunked_transfer_encoding#Example
|
||||
/// [inline_link]: https://foobar
|
||||
/// [inline_link2]: https://foobar
|
||||
|
||||
/// The `main` function is the entry point of the program. Here it only calls the `foo_bar` and
|
||||
/// `multiline_ticks` functions.
|
||||
///
|
||||
/// expression of the type `_ <bit_op> m <cmp_op> c` (where `<bit_op>`
|
||||
/// is one of {`&`, '|'} and `<cmp_op>` is one of {`!=`, `>=`, `>` ,
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn main() {
|
||||
foo_bar();
|
||||
multiline_codeblock();
|
||||
@ -124,9 +105,7 @@ fn main() {
|
||||
/// # CamelCaseThing
|
||||
///
|
||||
/// Not a title #897 CamelCaseThing
|
||||
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn issue897() {
|
||||
}
|
||||
|
||||
@ -134,7 +113,6 @@ fn issue897() {
|
||||
/// I am confused by brackets? (foo `x_y`)
|
||||
/// I am confused by brackets? (`x_y` foo)
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn issue900() {
|
||||
}
|
||||
|
||||
@ -148,7 +126,6 @@ fn issue900() {
|
||||
/// [iterator]: https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html
|
||||
/// [helper_types]: ../helper_types/index.html
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn issue883() {
|
||||
}
|
||||
|
||||
@ -167,9 +144,6 @@ That's in a code block: `PackedNode`
|
||||
And BarQuz too.
|
||||
be_sure_we_got_to_the_end_of_it
|
||||
*/
|
||||
|
||||
|
||||
|
||||
fn issue1073() {
|
||||
}
|
||||
|
||||
@ -181,9 +155,6 @@ That's in a code block: PackedNode
|
||||
And BarQuz too.
|
||||
be_sure_we_got_to_the_end_of_it
|
||||
*/
|
||||
|
||||
|
||||
|
||||
fn issue1073_alt() {
|
||||
}
|
||||
|
||||
@ -194,6 +165,5 @@ fn issue1073_alt() {
|
||||
/// StillDont
|
||||
/// ````
|
||||
/// be_sure_we_got_to_the_end_of_it
|
||||
|
||||
fn four_quotes() {
|
||||
}
|
||||
|
@ -5,45 +5,51 @@ error: you should put `DOC_MARKDOWN` between ticks in the documentation
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/doc.rs:7:9
|
||||
--> $DIR/doc.rs:6:9
|
||||
|
|
||||
7 | #![deny(doc_markdown)]
|
||||
6 | #![deny(doc_markdown)]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: you should put `foo_bar` between ticks in the documentation
|
||||
--> $DIR/doc.rs:9:9
|
||||
--> $DIR/doc.rs:8:9
|
||||
|
|
||||
9 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
||||
8 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
||||
| ^^^^^^^
|
||||
|
||||
error: you should put `foo::bar` between ticks in the documentation
|
||||
--> $DIR/doc.rs:9:51
|
||||
--> $DIR/doc.rs:8:51
|
||||
|
|
||||
9 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
||||
8 | /// The foo_bar function does _nothing_. See also foo::bar. (note the dot there)
|
||||
| ^^^^^^^^
|
||||
|
||||
error: you should put `Foo::some_fun` between ticks in the documentation
|
||||
--> $DIR/doc.rs:12:84
|
||||
|
|
||||
12 | /// Markdown is _weird_. I mean _really weird_. This /_ is ok. So is `_`. But not Foo::some_fun
|
||||
| ^^^^^^^^^^^^^
|
||||
--> $DIR/doc.rs:9:84
|
||||
|
|
||||
9 | /// Markdown is _weird_. I mean _really weird_. This /_ is ok. So is `_`. But not Foo::some_fun
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `is::a::global:path` between ticks in the documentation
|
||||
--> $DIR/doc.rs:15:13
|
||||
--> $DIR/doc.rs:11:13
|
||||
|
|
||||
15 | /// Here be ::is::a::global:path.
|
||||
11 | /// Here be ::is::a::global:path.
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `NotInCodeBlock` between ticks in the documentation
|
||||
--> $DIR/doc.rs:17:21
|
||||
--> $DIR/doc.rs:12:21
|
||||
|
|
||||
17 | /// That's not code ~NotInCodeBlock~.
|
||||
12 | /// That's not code ~NotInCodeBlock~.
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:19:5
|
||||
--> $DIR/doc.rs:13:5
|
||||
|
|
||||
19 | /// be_sure_we_got_to_the_end_of_it
|
||||
13 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:27:5
|
||||
|
|
||||
27 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
@ -53,129 +59,123 @@ error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the doc
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:42:5
|
||||
--> $DIR/doc.rs:48:5
|
||||
|
|
||||
42 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:57:5
|
||||
|
|
||||
57 | /// be_sure_we_got_to_the_end_of_it
|
||||
48 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `ß_foo` between ticks in the documentation
|
||||
--> $DIR/doc.rs:67:5
|
||||
--> $DIR/doc.rs:57:5
|
||||
|
|
||||
67 | /// ß_foo
|
||||
57 | /// ß_foo
|
||||
| ^^^^^
|
||||
|
||||
error: you should put `ℝ_foo` between ticks in the documentation
|
||||
--> $DIR/doc.rs:69:5
|
||||
--> $DIR/doc.rs:58:5
|
||||
|
|
||||
69 | /// ℝ_foo
|
||||
58 | /// ℝ_foo
|
||||
| ^^^^^
|
||||
|
||||
error: you should put `foo_ß` between ticks in the documentation
|
||||
--> $DIR/doc.rs:73:5
|
||||
--> $DIR/doc.rs:61:5
|
||||
|
|
||||
73 | /// foo_ß
|
||||
61 | /// foo_ß
|
||||
| ^^^^^
|
||||
|
||||
error: you should put `foo_ℝ` between ticks in the documentation
|
||||
--> $DIR/doc.rs:75:5
|
||||
--> $DIR/doc.rs:62:5
|
||||
|
|
||||
75 | /// foo_ℝ
|
||||
62 | /// foo_ℝ
|
||||
| ^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:91:5
|
||||
--> $DIR/doc.rs:77:5
|
||||
|
|
||||
91 | /// be_sure_we_got_to_the_end_of_it
|
||||
77 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `link_with_underscores` between ticks in the documentation
|
||||
--> $DIR/doc.rs:96:22
|
||||
--> $DIR/doc.rs:81:22
|
||||
|
|
||||
96 | /// This test has [a link_with_underscores][chunked-example] inside it. See #823.
|
||||
81 | /// This test has [a link_with_underscores][chunked-example] inside it. See #823.
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `inline_link2` between ticks in the documentation
|
||||
--> $DIR/doc.rs:100:21
|
||||
|
|
||||
100 | /// It can also be [inline_link2].
|
||||
| ^^^^^^^^^^^^
|
||||
--> $DIR/doc.rs:84:21
|
||||
|
|
||||
84 | /// It can also be [inline_link2].
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:112:5
|
||||
|
|
||||
112 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
--> $DIR/doc.rs:94:5
|
||||
|
|
||||
94 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `CamelCaseThing` between ticks in the documentation
|
||||
--> $DIR/doc.rs:126:22
|
||||
--> $DIR/doc.rs:107:22
|
||||
|
|
||||
126 | /// Not a title #897 CamelCaseThing
|
||||
107 | /// Not a title #897 CamelCaseThing
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:108:5
|
||||
|
|
||||
108 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:115:5
|
||||
|
|
||||
115 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:128:5
|
||||
|
|
||||
128 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:136:5
|
||||
|
|
||||
136 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:150:5
|
||||
|
|
||||
150 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `FooBar` between ticks in the documentation
|
||||
--> $DIR/doc.rs:162:42
|
||||
--> $DIR/doc.rs:139:42
|
||||
|
|
||||
162 | /** E.g. serialization of an empty list: FooBar
|
||||
139 | /** E.g. serialization of an empty list: FooBar
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `BarQuz` between ticks in the documentation
|
||||
--> $DIR/doc.rs:144:5
|
||||
|
|
||||
144 | And BarQuz too.
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:145:1
|
||||
|
|
||||
145 | be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `FooBar` between ticks in the documentation
|
||||
--> $DIR/doc.rs:150:42
|
||||
|
|
||||
150 | /** E.g. serialization of an empty list: FooBar
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `BarQuz` between ticks in the documentation
|
||||
--> $DIR/doc.rs:155:5
|
||||
|
|
||||
155 | And BarQuz too.
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:156:1
|
||||
|
|
||||
156 | be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:167:5
|
||||
|
|
||||
167 | And BarQuz too.
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:168:1
|
||||
|
|
||||
168 | be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `FooBar` between ticks in the documentation
|
||||
--> $DIR/doc.rs:176:42
|
||||
|
|
||||
176 | /** E.g. serialization of an empty list: FooBar
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `BarQuz` between ticks in the documentation
|
||||
--> $DIR/doc.rs:181:5
|
||||
|
|
||||
181 | And BarQuz too.
|
||||
| ^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:182:1
|
||||
|
|
||||
182 | be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: you should put `be_sure_we_got_to_the_end_of_it` between ticks in the documentation
|
||||
--> $DIR/doc.rs:196:5
|
||||
|
|
||||
196 | /// be_sure_we_got_to_the_end_of_it
|
||||
167 | /// be_sure_we_got_to_the_end_of_it
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 29 previous errors
|
||||
|
Loading…
Reference in New Issue
Block a user