blob: 1dc3da29053a0b8c37f9d544c8d8ea5f6f5a846e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
/**
* @fileoverview This is a file overview with no lines above it, at the top of
* the file (GOOD).
*/
/** // WRONG_BLANK_LINE_COUNT
* @fileoverview This is a file overview with no lines above it (BAD).
*/
/**
* @fileoverview This is a file overview with one line above it (GOOD).
*/
/**
* @fileoverview This is a file overview with two lines above it (GOOD).
*/
/** // WRONG_BLANK_LINE_COUNT
* A constructor with 1 line above it (BAD).
* @constructor
*/
function someFunction() {}
/** // WRONG_BLANK_LINE_COUNT
* A constructor with 2 lines above it (BAD).
* @constructor
*/
function someFunction() {}
/**
* A constructor with 3 lines above it (GOOD).
* @constructor
*/
function someFunction() {}
/** // WRONG_BLANK_LINE_COUNT
* A constructor with 4 lines above it (BAD).
* @constructor
*/
function someFunction() {}
/** // WRONG_BLANK_LINE_COUNT
* Top level block with 1 line above it (BAD).
*/
function someFunction() {}
/**
* Top level block with 2 lines above it (GOOD).
*/
function someFunction() {}
/** // WRONG_BLANK_LINE_COUNT
* Top level block with 3 lines above it (BAD).
*/
function someFunction() {}
// -1: EXTRA_SPACE
/**
* Top level block with 2 lines above it, one contains whitespace (GOOD).
*/
function someFunction() {}
// This comment should be ignored.
/**
* Top level block with 2 lines above it (GOOD).
*/
function someFunction() {}
// Should not check jsdocs which are inside a block.
var x = {
/**
* @constructor
*/
};
/**
* This jsdoc-style comment should not be required to have two lines above it
* since it does not immediately precede any code.
*/
// This is a comment.
/**
* This jsdoc-style comment should not be required to have two lines above it
* since it does not immediately precede any code.
*/
/**
* This is a comment.
*/
/**
* This jsdoc-style comment should not be required to have two lines above it
* since it does not immediately precede any code.
*/
|