fdlint 0.1.3 → 0.2.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -9
- data/Gemfile.lock +14 -4
- data/Rakefile +9 -85
- data/bin/fdlint +71 -8
- data/lib/fdlint/cli.rb +102 -0
- data/lib/{file_validator.rb → fdlint/file_validator.rb} +0 -0
- data/lib/fdlint/helper/code_type.rb +55 -0
- data/lib/fdlint/helper/file_reader.rb +19 -0
- data/lib/fdlint/helper/logger.rb +35 -0
- data/lib/fdlint/log_entry.rb +51 -0
- data/lib/fdlint/parser/base_parser.rb +151 -0
- data/lib/{css/parser.rb → fdlint/parser/css/css_parser.rb} +31 -28
- data/lib/{css → fdlint/parser/css}/struct.rb +5 -5
- data/lib/{encoding_error.rb → fdlint/parser/encoding_error.rb} +2 -2
- data/lib/{html/parser.rb → fdlint/parser/html/html_parser.rb} +26 -20
- data/lib/{html → fdlint/parser/html}/query.rb +0 -0
- data/lib/{html → fdlint/parser/html}/rule/check_tag_rule.rb +0 -0
- data/lib/{html → fdlint/parser/html}/struct.rb +82 -38
- data/lib/fdlint/parser/js/expr/expr.rb +71 -0
- data/lib/fdlint/parser/js/expr/left_hand.rb +65 -0
- data/lib/fdlint/parser/js/expr/operate.rb +94 -0
- data/lib/fdlint/parser/js/expr/primary.rb +168 -0
- data/lib/{js/parser.rb → fdlint/parser/js/js_parser.rb} +11 -9
- data/lib/fdlint/parser/js/stat/if.rb +27 -0
- data/lib/fdlint/parser/js/stat/iter.rb +88 -0
- data/lib/fdlint/parser/js/stat/stat.rb +120 -0
- data/lib/fdlint/parser/js/stat/switch.rb +67 -0
- data/lib/fdlint/parser/js/stat/try.rb +30 -0
- data/lib/fdlint/parser/js/stat/var.rb +42 -0
- data/lib/fdlint/parser/js/struct.rb +257 -0
- data/lib/fdlint/parser/node.rb +27 -0
- data/lib/fdlint/parser/parse_error.rb +10 -0
- data/lib/fdlint/parser/parser_visitable.rb +134 -0
- data/lib/{position_info.rb → fdlint/parser/position_info.rb} +12 -1
- data/lib/fdlint/parser.rb +3 -0
- data/lib/fdlint/printer/base_printer.rb +20 -0
- data/lib/fdlint/printer/console_printer.rb +80 -0
- data/lib/fdlint/printer/nocolor_printer.rb +29 -0
- data/lib/fdlint/printer/vim_printer.rb +21 -0
- data/lib/fdlint/printer.rb +1 -0
- data/lib/fdlint/rule/dsl.rb +83 -0
- data/lib/fdlint/rule/validation.rb +79 -0
- data/lib/fdlint/rule.rb +81 -0
- data/lib/fdlint/support/core/array.rb +5 -0
- data/lib/fdlint/support/core/file.rb +8 -0
- data/lib/fdlint/support/core/hash.rb +5 -0
- data/lib/fdlint/support/core/nil.rb +7 -0
- data/lib/fdlint/support/core/string.rb +7 -0
- data/lib/fdlint/support/core_ext.rb +5 -0
- data/lib/fdlint/validator.rb +102 -0
- data/lib/fdlint/version.rb +3 -0
- data/lib/fdlint.rb +5 -0
- data/rules.d/css.rule.rb +100 -0
- data/rules.d/filename.rule.rb +49 -0
- data/rules.d/html.rule.rb +169 -0
- data/rules.d/js.jquery.rule.rb +49 -0
- data/rules.d/js.rule.rb +205 -0
- data/test/default_test.rb +14 -0
- data/test/fixtures/js/scope-test.js +15 -2
- data/test/test_helper.rb +9 -0
- metadata +269 -221
- data/lib/base_parser.rb +0 -143
- data/lib/cmd_runner.rb +0 -145
- data/lib/context.rb +0 -31
- data/lib/css/reader.rb +0 -30
- data/lib/css/rule/check_compression_rule.rb +0 -48
- data/lib/css/rule/checklist.rb +0 -45
- data/lib/helper/code_type.rb +0 -50
- data/lib/helper/color_string.rb +0 -44
- data/lib/helper/file_reader.rb +0 -22
- data/lib/helper/strenc.rb +0 -65
- data/lib/js/expr/expr.rb +0 -66
- data/lib/js/expr/left_hand.rb +0 -63
- data/lib/js/expr/operate.rb +0 -92
- data/lib/js/expr/primary.rb +0 -166
- data/lib/js/rule/all.rb +0 -35
- data/lib/js/rule/checklist.rb +0 -41
- data/lib/js/rule/file_checker.rb +0 -42
- data/lib/js/rule/helper.rb +0 -96
- data/lib/js/rule/no_global.rb +0 -87
- data/lib/js/stat/if.rb +0 -25
- data/lib/js/stat/iter.rb +0 -85
- data/lib/js/stat/stat.rb +0 -117
- data/lib/js/stat/switch.rb +0 -65
- data/lib/js/stat/try.rb +0 -28
- data/lib/js/stat/var.rb +0 -40
- data/lib/js/struct.rb +0 -248
- data/lib/log_entry.rb +0 -49
- data/lib/node.rb +0 -28
- data/lib/parse_error.rb +0 -13
- data/lib/parser_visitable.rb +0 -138
- data/lib/printer/base_printer.rb +0 -24
- data/lib/printer/console_printer.rb +0 -66
- data/lib/printer/nocolor_printer.rb +0 -27
- data/lib/printer/vim_printer.rb +0 -19
- data/lib/rule.rb +0 -241
- data/lib/rule_helper.rb +0 -14
- data/lib/runner.rb +0 -225
- data/rules.d/css.rule +0 -127
- data/rules.d/html.dtd.rule +0 -22
- data/rules.d/html.prop.rule +0 -51
- data/rules.d/html.tag.rule +0 -136
- data/rules.d/js.file.rule +0 -13
- data/rules.d/js.jquery.rule +0 -56
- data/rules.d/js.mergefile.rule +0 -71
- data/rules.d/js.rule +0 -84
metadata
CHANGED
@@ -1,46 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fdlint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0.pre
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- qhwa,bencode
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gli
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.9.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.9.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: colored
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: string_utf8
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.1
|
14
55
|
- !ruby/object:Gem::Dependency
|
15
56
|
name: rake
|
16
57
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
58
|
requirements:
|
19
|
-
- -
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.2.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.2.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: test-unit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
20
74
|
- !ruby/object:Gem::Version
|
21
75
|
version: '0'
|
22
76
|
type: :development
|
23
77
|
prerelease: false
|
24
78
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
79
|
requirements:
|
27
|
-
- -
|
80
|
+
- - ">="
|
28
81
|
- !ruby/object:Gem::Version
|
29
82
|
version: '0'
|
30
83
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
84
|
+
name: bundler
|
32
85
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
86
|
requirements:
|
35
|
-
- -
|
87
|
+
- - ">="
|
36
88
|
- !ruby/object:Gem::Version
|
37
89
|
version: '0'
|
38
90
|
type: :development
|
39
91
|
prerelease: false
|
40
92
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
93
|
requirements:
|
43
|
-
- -
|
94
|
+
- - ">="
|
44
95
|
- !ruby/object:Gem::Version
|
45
96
|
version: '0'
|
46
97
|
description:
|
@@ -51,251 +102,248 @@ extensions: []
|
|
51
102
|
extra_rdoc_files:
|
52
103
|
- README.md
|
53
104
|
files:
|
105
|
+
- Gemfile
|
106
|
+
- Gemfile.lock
|
54
107
|
- README.md
|
55
108
|
- Rakefile
|
56
|
-
- Gemfile.lock
|
57
|
-
- Gemfile
|
58
109
|
- bin/fdlint
|
110
|
+
- lib/fdlint.rb
|
111
|
+
- lib/fdlint/cli.rb
|
112
|
+
- lib/fdlint/file_validator.rb
|
113
|
+
- lib/fdlint/helper/code_type.rb
|
114
|
+
- lib/fdlint/helper/file_reader.rb
|
115
|
+
- lib/fdlint/helper/logger.rb
|
116
|
+
- lib/fdlint/log_entry.rb
|
117
|
+
- lib/fdlint/parser.rb
|
118
|
+
- lib/fdlint/parser/base_parser.rb
|
119
|
+
- lib/fdlint/parser/css/css_parser.rb
|
120
|
+
- lib/fdlint/parser/css/struct.rb
|
121
|
+
- lib/fdlint/parser/encoding_error.rb
|
122
|
+
- lib/fdlint/parser/html/html_parser.rb
|
123
|
+
- lib/fdlint/parser/html/query.rb
|
124
|
+
- lib/fdlint/parser/html/rule/check_tag_rule.rb
|
125
|
+
- lib/fdlint/parser/html/struct.rb
|
126
|
+
- lib/fdlint/parser/js/expr/expr.rb
|
127
|
+
- lib/fdlint/parser/js/expr/left_hand.rb
|
128
|
+
- lib/fdlint/parser/js/expr/operate.rb
|
129
|
+
- lib/fdlint/parser/js/expr/primary.rb
|
130
|
+
- lib/fdlint/parser/js/js_parser.rb
|
131
|
+
- lib/fdlint/parser/js/stat/if.rb
|
132
|
+
- lib/fdlint/parser/js/stat/iter.rb
|
133
|
+
- lib/fdlint/parser/js/stat/stat.rb
|
134
|
+
- lib/fdlint/parser/js/stat/switch.rb
|
135
|
+
- lib/fdlint/parser/js/stat/try.rb
|
136
|
+
- lib/fdlint/parser/js/stat/var.rb
|
137
|
+
- lib/fdlint/parser/js/struct.rb
|
138
|
+
- lib/fdlint/parser/node.rb
|
139
|
+
- lib/fdlint/parser/parse_error.rb
|
140
|
+
- lib/fdlint/parser/parser_visitable.rb
|
141
|
+
- lib/fdlint/parser/position_info.rb
|
142
|
+
- lib/fdlint/printer.rb
|
143
|
+
- lib/fdlint/printer/base_printer.rb
|
144
|
+
- lib/fdlint/printer/console_printer.rb
|
145
|
+
- lib/fdlint/printer/nocolor_printer.rb
|
146
|
+
- lib/fdlint/printer/vim_printer.rb
|
147
|
+
- lib/fdlint/rule.rb
|
148
|
+
- lib/fdlint/rule/dsl.rb
|
149
|
+
- lib/fdlint/rule/validation.rb
|
150
|
+
- lib/fdlint/support/core/array.rb
|
151
|
+
- lib/fdlint/support/core/file.rb
|
152
|
+
- lib/fdlint/support/core/hash.rb
|
153
|
+
- lib/fdlint/support/core/nil.rb
|
154
|
+
- lib/fdlint/support/core/string.rb
|
155
|
+
- lib/fdlint/support/core_ext.rb
|
156
|
+
- lib/fdlint/validator.rb
|
157
|
+
- lib/fdlint/version.rb
|
158
|
+
- rules.d/css.rule.rb
|
159
|
+
- rules.d/filename.rule.rb
|
160
|
+
- rules.d/html.rule.rb
|
161
|
+
- rules.d/js.jquery.rule.rb
|
162
|
+
- rules.d/js.rule.rb
|
163
|
+
- test/all_tests.rb
|
164
|
+
- test/cli/cli_test.rb
|
165
|
+
- test/cli/log_level_test.rb
|
166
|
+
- test/cli/output_format_test.rb
|
167
|
+
- test/cli/type_test.rb
|
168
|
+
- test/css/mac_line_end_support_test.rb
|
169
|
+
- test/css/parser_test.rb
|
170
|
+
- test/css/rule/check_encoding_test.rb
|
171
|
+
- test/css/rule/check_list_rule_test.rb
|
172
|
+
- test/css/rule/compression_test.rb
|
173
|
+
- test/css/rule/file_name_test.rb
|
174
|
+
- test/default_test.rb
|
175
|
+
- test/fixtures/css/broken.css
|
176
|
+
- test/fixtures/css/cbu/36.css
|
177
|
+
- test/fixtures/css/cbu/china_top.css
|
178
|
+
- test/fixtures/css/cbu/default-merge.css
|
179
|
+
- test/fixtures/css/cbu/default.css
|
180
|
+
- test/fixtures/css/cbu/diy-merge.css
|
181
|
+
- test/fixtures/css/cbu/fns-v1.css
|
182
|
+
- test/fixtures/css/cbu/index_v0.1.css
|
183
|
+
- test/fixtures/css/cbu/merge.css
|
184
|
+
- test/fixtures/css/cbu/min.css
|
185
|
+
- test/fixtures/css/cbu/my_home_admin.css
|
186
|
+
- test/fixtures/css/cbu/nav.css
|
187
|
+
- test/fixtures/css/cbu/pic_list.css
|
188
|
+
- test/fixtures/css/cbu/quote-edit.css
|
189
|
+
- test/fixtures/css/cbu/selloffer.shopwindow.css
|
190
|
+
- test/fixtures/css/cbu/v1.css
|
191
|
+
- test/fixtures/css/css3.css
|
192
|
+
- test/fixtures/css/empty-min.css
|
193
|
+
- test/fixtures/css/empty.css
|
194
|
+
- test/fixtures/css/font-family.css
|
195
|
+
- test/fixtures/css/gb-good.css
|
196
|
+
- test/fixtures/css/gb_using_star.css
|
197
|
+
- test/fixtures/css/import.css
|
198
|
+
- test/fixtures/css/mac-line-sep-err-min.css
|
199
|
+
- test/fixtures/css/mac-line-sep-err.css
|
200
|
+
- test/fixtures/css/mac-line-sep-good-min.css
|
201
|
+
- test/fixtures/css/mac-line-sep-good.css
|
202
|
+
- test/fixtures/css/multi-encoding-in-a-file.css
|
203
|
+
- test/fixtures/css/simple.css
|
204
|
+
- test/fixtures/css/using_expr.css
|
205
|
+
- test/fixtures/css/using_hack.css
|
206
|
+
- test/fixtures/css/using_id.css
|
207
|
+
- test/fixtures/css/using_star.css
|
208
|
+
- test/fixtures/css/utf8_good.css
|
209
|
+
- test/fixtures/css/utf8_good_declaring_charset.css
|
210
|
+
- test/fixtures/css/utf8_using_star.css
|
211
|
+
- test/fixtures/html/1-1.html
|
212
|
+
- test/fixtures/html/1-2.html
|
213
|
+
- test/fixtures/html/cms.html
|
214
|
+
- test/fixtures/html/css_out_of_head.html
|
215
|
+
- test/fixtures/html/fdev-template.html
|
216
|
+
- test/fixtures/html/google.com.html
|
217
|
+
- test/fixtures/html/mixed_log_levels.html
|
218
|
+
- test/fixtures/html/mixed_types.html
|
219
|
+
- test/fixtures/html/no_dtd.html
|
220
|
+
- test/fixtures/html/readme.html
|
221
|
+
- test/fixtures/html/review.board.html
|
222
|
+
- test/fixtures/html/syntax_err.html
|
223
|
+
- test/fixtures/html/train/detail图文结合.html
|
224
|
+
- test/fixtures/html/train/detail的Flash.html
|
225
|
+
- test/fixtures/html/train/detail的Vedio.html
|
226
|
+
- test/fixtures/html/train/index.html
|
227
|
+
- test/fixtures/html/train/test.html
|
228
|
+
- test/fixtures/html/train/修改一级分类.html
|
229
|
+
- test/fixtures/html/train/修改子分类.html
|
230
|
+
- test/fixtures/html/train/修改课程.html
|
231
|
+
- test/fixtures/html/train/博客设置.html
|
232
|
+
- test/fixtures/html/train/浏览记录.html
|
233
|
+
- test/fixtures/html/train/添加一级分类.html
|
234
|
+
- test/fixtures/html/train/添加子分类.html
|
235
|
+
- test/fixtures/html/train/添加课程.html
|
236
|
+
- test/fixtures/html/train/登录.html
|
237
|
+
- test/fixtures/html/train/管理分类.html
|
238
|
+
- test/fixtures/html/train/管理反馈.html
|
239
|
+
- test/fixtures/html/train/管理课程.html
|
240
|
+
- test/fixtures/html/train/管理账户.html
|
241
|
+
- test/fixtures/html/train/网上培训home页.html
|
242
|
+
- test/fixtures/html/train/网商培训list页.html
|
243
|
+
- test/fixtures/html/train/设置首页推荐.html
|
244
|
+
- test/fixtures/html/train/说明.txt
|
245
|
+
- test/fixtures/html/train/首页广告设置.html
|
246
|
+
- test/fixtures/html/unescaped.html
|
247
|
+
- test/fixtures/html/view.vm
|
248
|
+
- test/fixtures/js/jquery-1.7.js
|
249
|
+
- test/fixtures/js/scope-test.js
|
250
|
+
- test/helper.rb
|
251
|
+
- test/html/mixed_type_test.rb
|
252
|
+
- test/html/parser/parse_comment_test.rb
|
253
|
+
- test/html/parser/parse_dtd_test.rb
|
254
|
+
- test/html/parser/parse_script_tag_test.rb
|
255
|
+
- test/html/parser/parse_with_auto_close_tag_test.rb
|
256
|
+
- test/html/parser/parse_with_diff_case_test.rb
|
257
|
+
- test/html/parser/parse_with_emtpy_test.rb
|
258
|
+
- test/html/parser/parse_with_multi_children_test.rb
|
259
|
+
- test/html/parser/parse_with_multi_line_test.rb
|
260
|
+
- test/html/parser/parse_with_prop_test.rb
|
261
|
+
- test/html/parser/parse_with_script_tag_test.rb
|
262
|
+
- test/html/parser/parse_with_selfclosing_test.rb
|
263
|
+
- test/html/parser/parse_with_simple_tag_test.rb
|
264
|
+
- test/html/parser/parse_with_simple_tree_test.rb
|
265
|
+
- test/html/parser/parse_with_style_tag_test.rb
|
266
|
+
- test/html/parser/parse_with_text_test.rb
|
267
|
+
- test/html/parser_test.rb
|
268
|
+
- test/html/query_test.rb
|
59
269
|
- test/html/rule/check_block_level_element_test.rb
|
60
|
-
- test/html/rule/
|
61
|
-
- test/html/rule/
|
270
|
+
- test/html/rule/check_button_test.rb
|
271
|
+
- test/html/rule/check_class_count_test.rb
|
62
272
|
- test/html/rule/check_css_in_head_test.rb
|
63
|
-
- test/html/rule/check_unescape_char_test.rb
|
64
|
-
- test/html/rule/check_html_template_test.rb
|
65
|
-
- test/html/rule/check_prop_have_value_test.rb
|
66
|
-
- test/html/rule/check_unique_import_test.rb
|
67
273
|
- test/html/rule/check_dtd_test.rb
|
68
274
|
- test/html/rule/check_form_element_name_test.rb
|
69
|
-
- test/html/rule/
|
70
|
-
- test/html/rule/
|
275
|
+
- test/html/rule/check_head_contain_meta_and_title_test.rb
|
276
|
+
- test/html/rule/check_html_template_test.rb
|
277
|
+
- test/html/rule/check_hyperlink_with_target_test.rb
|
278
|
+
- test/html/rule/check_hyperlink_with_title_test.rb
|
71
279
|
- test/html/rule/check_id_n_class_downcase_test.rb
|
72
|
-
- test/html/rule/check_tag_downcase_test.rb
|
73
|
-
- test/html/rule/check_tag_closed_test.rb
|
74
280
|
- test/html/rule/check_img_with_alt_prop_test.rb
|
75
|
-
- test/html/rule/
|
76
|
-
- test/html/rule/
|
281
|
+
- test/html/rule/check_no_import_css_test.rb
|
282
|
+
- test/html/rule/check_prop_have_value_test.rb
|
283
|
+
- test/html/rule/check_prop_seperator_test.rb
|
77
284
|
- test/html/rule/check_style_prop_test.rb
|
78
|
-
- test/html/rule/
|
79
|
-
- test/html/
|
285
|
+
- test/html/rule/check_tag_closed_test.rb
|
286
|
+
- test/html/rule/check_tag_downcase_test.rb
|
287
|
+
- test/html/rule/check_unescape_char_test.rb
|
288
|
+
- test/html/rule/check_unique_import_test.rb
|
80
289
|
- test/html/rule_test.rb
|
81
|
-
- test/
|
82
|
-
- test/
|
83
|
-
- test/
|
84
|
-
- test/
|
85
|
-
- test/
|
86
|
-
- test/
|
87
|
-
- test/html/parser/parse_with_simple_tag_test.rb
|
88
|
-
- test/html/parser/parse_with_diff_case_test.rb
|
89
|
-
- test/html/parser/parse_dtd_test.rb
|
90
|
-
- test/html/parser/parse_with_prop_test.rb
|
91
|
-
- test/html/parser/parse_with_selfclosing_test.rb
|
92
|
-
- test/html/parser/parse_with_script_tag_test.rb
|
93
|
-
- test/html/parser/parse_with_auto_close_tag_test.rb
|
94
|
-
- test/html/parser/parse_with_multi_children_test.rb
|
95
|
-
- test/html/parser/parse_script_tag_test.rb
|
96
|
-
- test/html/parser/parse_with_emtpy_test.rb
|
97
|
-
- test/html/mixed_type_test.rb
|
98
|
-
- test/js/stat/if.rb
|
99
|
-
- test/js/stat/iter.rb
|
100
|
-
- test/js/stat/try.rb
|
101
|
-
- test/js/stat/var.rb
|
102
|
-
- test/js/stat/switch.rb
|
103
|
-
- test/js/stat/stat.rb
|
104
|
-
- test/js/rule/use_strict_equal_test.rb
|
105
|
-
- test/js/rule/jq_check_test.rb
|
106
|
-
- test/js/rule/base_test.rb
|
107
|
-
- test/js/rule/stat_if_with_muti_else_test.rb
|
290
|
+
- test/js/expr/expr.rb
|
291
|
+
- test/js/expr/left_hand.rb
|
292
|
+
- test/js/expr/operate.rb
|
293
|
+
- test/js/expr/primary.rb
|
294
|
+
- test/js/parser_test.rb
|
295
|
+
- test/js/rule/alert_check_test.rb
|
108
296
|
- test/js/rule/all_test.rb
|
109
|
-
- test/js/rule/
|
110
|
-
- test/js/rule/nest_try_catch_test.rb
|
297
|
+
- test/js/rule/base_test.rb
|
111
298
|
- test/js/rule/file_checker_test.rb
|
112
|
-
- test/js/rule/
|
113
|
-
- test/js/rule/
|
114
|
-
- test/js/rule/
|
299
|
+
- test/js/rule/jq_check_test.rb
|
300
|
+
- test/js/rule/nest_try_catch_test.rb
|
301
|
+
- test/js/rule/new_object_and_new_array_test.rb
|
115
302
|
- test/js/rule/no_eval_test.rb
|
303
|
+
- test/js/rule/no_global_test.rb
|
304
|
+
- test/js/rule/private_method_check_test.rb
|
116
305
|
- test/js/rule/semicolon_test.rb
|
117
|
-
- test/js/rule/
|
118
|
-
- test/js/
|
119
|
-
- test/js/
|
120
|
-
- test/js/expr/primary.rb
|
121
|
-
- test/js/expr/left_hand.rb
|
122
|
-
- test/js/parser_test.rb
|
306
|
+
- test/js/rule/stat_if_with_brace_test.rb
|
307
|
+
- test/js/rule/stat_if_with_muti_else_test.rb
|
308
|
+
- test/js/rule/use_strict_equal_test.rb
|
123
309
|
- test/js/rule_test.rb
|
310
|
+
- test/js/stat/if.rb
|
311
|
+
- test/js/stat/iter.rb
|
312
|
+
- test/js/stat/stat.rb
|
313
|
+
- test/js/stat/switch.rb
|
314
|
+
- test/js/stat/try.rb
|
315
|
+
- test/js/stat/var.rb
|
316
|
+
- test/parser_visitable_test.rb
|
124
317
|
- test/position_info_test.rb
|
125
|
-
- test/runner/log_level_test.rb
|
126
|
-
- test/fixtures/html/css_out_of_head.html
|
127
|
-
- test/fixtures/html/unescaped.html
|
128
|
-
- test/fixtures/html/readme.html
|
129
|
-
- test/fixtures/html/mixed_types.html
|
130
|
-
- test/fixtures/html/view.vm
|
131
|
-
- test/fixtures/html/1-2.html
|
132
|
-
- test/fixtures/html/fdev-template.html
|
133
|
-
- test/fixtures/html/syntax_err.html
|
134
|
-
- test/fixtures/html/google.com.html
|
135
|
-
- test/fixtures/html/no_dtd.html
|
136
|
-
- test/fixtures/html/mixed_log_levels.html
|
137
|
-
- test/fixtures/html/cms.html
|
138
|
-
- test/fixtures/html/train/说明.txt
|
139
|
-
- test/fixtures/html/train/管理反馈.html
|
140
|
-
- test/fixtures/html/train/修改子分类.html
|
141
|
-
- test/fixtures/html/train/网上培训home页.html
|
142
|
-
- test/fixtures/html/train/首页广告设置.html
|
143
|
-
- test/fixtures/html/train/修改一级分类.html
|
144
|
-
- test/fixtures/html/train/设置首页推荐.html
|
145
|
-
- test/fixtures/html/train/浏览记录.html
|
146
|
-
- test/fixtures/html/train/detail图文结合.html
|
147
|
-
- test/fixtures/html/train/添加一级分类.html
|
148
|
-
- test/fixtures/html/train/登录.html
|
149
|
-
- test/fixtures/html/train/添加课程.html
|
150
|
-
- test/fixtures/html/train/detail的Flash.html
|
151
|
-
- test/fixtures/html/train/网商培训list页.html
|
152
|
-
- test/fixtures/html/train/index.html
|
153
|
-
- test/fixtures/html/train/test.html
|
154
|
-
- test/fixtures/html/train/博客设置.html
|
155
|
-
- test/fixtures/html/train/管理分类.html
|
156
|
-
- test/fixtures/html/train/管理账户.html
|
157
|
-
- test/fixtures/html/train/修改课程.html
|
158
|
-
- test/fixtures/html/train/管理课程.html
|
159
|
-
- test/fixtures/html/train/添加子分类.html
|
160
|
-
- test/fixtures/html/train/detail的Vedio.html
|
161
|
-
- test/fixtures/html/review.board.html
|
162
|
-
- test/fixtures/html/1-1.html
|
163
|
-
- test/fixtures/js/scope-test.js
|
164
|
-
- test/fixtures/js/jquery-1.7.js
|
165
|
-
- test/fixtures/css/mac-line-sep-err-min.css
|
166
|
-
- test/fixtures/css/mac-line-sep-good-min.css
|
167
|
-
- test/fixtures/css/import.css
|
168
|
-
- test/fixtures/css/mac-line-sep-err.css
|
169
|
-
- test/fixtures/css/multi-encoding-in-a-file.css
|
170
|
-
- test/fixtures/css/gb_using_star.css
|
171
|
-
- test/fixtures/css/utf8_good_declaring_charset.css
|
172
|
-
- test/fixtures/css/utf8_good.css
|
173
|
-
- test/fixtures/css/utf8_using_star.css
|
174
|
-
- test/fixtures/css/using_expr.css
|
175
|
-
- test/fixtures/css/using_star.css
|
176
|
-
- test/fixtures/css/simple.css
|
177
|
-
- test/fixtures/css/broken.css
|
178
|
-
- test/fixtures/css/empty-min.css
|
179
|
-
- test/fixtures/css/using_hack.css
|
180
|
-
- test/fixtures/css/empty.css
|
181
|
-
- test/fixtures/css/gb-good.css
|
182
|
-
- test/fixtures/css/mac-line-sep-good.css
|
183
|
-
- test/fixtures/css/font-family.css
|
184
|
-
- test/fixtures/css/using_id.css
|
185
|
-
- test/fixtures/css/cbu/merge.css
|
186
|
-
- test/fixtures/css/cbu/my_home_admin.css
|
187
|
-
- test/fixtures/css/cbu/v1.css
|
188
|
-
- test/fixtures/css/cbu/min.css
|
189
|
-
- test/fixtures/css/cbu/pic_list.css
|
190
|
-
- test/fixtures/css/cbu/quote-edit.css
|
191
|
-
- test/fixtures/css/cbu/diy-merge.css
|
192
|
-
- test/fixtures/css/cbu/index_v0.1.css
|
193
|
-
- test/fixtures/css/cbu/selloffer.shopwindow.css
|
194
|
-
- test/fixtures/css/cbu/36.css
|
195
|
-
- test/fixtures/css/cbu/default.css
|
196
|
-
- test/fixtures/css/cbu/china_top.css
|
197
|
-
- test/fixtures/css/cbu/fns-v1.css
|
198
|
-
- test/fixtures/css/cbu/default-merge.css
|
199
|
-
- test/fixtures/css/cbu/nav.css
|
200
|
-
- test/fixtures/css/css3.css
|
201
|
-
- test/helper.rb
|
202
318
|
- test/rule_dsl/dsl_basic_test.rb
|
203
319
|
- test/rule_dsl/importing_test.rb
|
204
|
-
- test/
|
205
|
-
- test/
|
206
|
-
- test/cli/cli_test.rb
|
207
|
-
- test/cli/type_test.rb
|
208
|
-
- test/cli/log_level_test.rb
|
209
|
-
- test/parser_visitable_test.rb
|
210
|
-
- test/css/rule/file_name_test.rb
|
211
|
-
- test/css/rule/compression_test.rb
|
212
|
-
- test/css/rule/check_list_rule_test.rb
|
213
|
-
- test/css/rule/check_encoding_test.rb
|
214
|
-
- test/css/parser_test.rb
|
215
|
-
- test/css/mac_line_end_support_test.rb
|
216
|
-
- lib/html/rule/check_tag_rule.rb
|
217
|
-
- lib/html/parser.rb
|
218
|
-
- lib/html/query.rb
|
219
|
-
- lib/html/struct.rb
|
220
|
-
- lib/js/stat/if.rb
|
221
|
-
- lib/js/stat/iter.rb
|
222
|
-
- lib/js/stat/try.rb
|
223
|
-
- lib/js/stat/var.rb
|
224
|
-
- lib/js/stat/switch.rb
|
225
|
-
- lib/js/stat/stat.rb
|
226
|
-
- lib/js/rule/checklist.rb
|
227
|
-
- lib/js/rule/helper.rb
|
228
|
-
- lib/js/rule/all.rb
|
229
|
-
- lib/js/rule/no_global.rb
|
230
|
-
- lib/js/rule/file_checker.rb
|
231
|
-
- lib/js/expr/operate.rb
|
232
|
-
- lib/js/expr/expr.rb
|
233
|
-
- lib/js/expr/primary.rb
|
234
|
-
- lib/js/expr/left_hand.rb
|
235
|
-
- lib/js/parser.rb
|
236
|
-
- lib/js/struct.rb
|
237
|
-
- lib/parser_visitable.rb
|
238
|
-
- lib/parse_error.rb
|
239
|
-
- lib/rule_helper.rb
|
240
|
-
- lib/encoding_error.rb
|
241
|
-
- lib/position_info.rb
|
242
|
-
- lib/helper/file_reader.rb
|
243
|
-
- lib/helper/color_string.rb
|
244
|
-
- lib/helper/code_type.rb
|
245
|
-
- lib/helper/strenc.rb
|
246
|
-
- lib/cmd_runner.rb
|
247
|
-
- lib/runner.rb
|
248
|
-
- lib/context.rb
|
249
|
-
- lib/base_parser.rb
|
250
|
-
- lib/file_validator.rb
|
251
|
-
- lib/rule.rb
|
252
|
-
- lib/log_entry.rb
|
253
|
-
- lib/node.rb
|
254
|
-
- lib/printer/nocolor_printer.rb
|
255
|
-
- lib/printer/vim_printer.rb
|
256
|
-
- lib/printer/base_printer.rb
|
257
|
-
- lib/printer/console_printer.rb
|
258
|
-
- lib/css/rule/checklist.rb
|
259
|
-
- lib/css/rule/check_compression_rule.rb
|
260
|
-
- lib/css/parser.rb
|
261
|
-
- lib/css/reader.rb
|
262
|
-
- lib/css/struct.rb
|
263
|
-
- rules.d/js.file.rule
|
264
|
-
- rules.d/html.tag.rule
|
265
|
-
- rules.d/html.dtd.rule
|
266
|
-
- rules.d/css.rule
|
267
|
-
- rules.d/js.mergefile.rule
|
268
|
-
- rules.d/html.prop.rule
|
269
|
-
- rules.d/js.rule
|
270
|
-
- rules.d/js.jquery.rule
|
320
|
+
- test/runner/log_level_test.rb
|
321
|
+
- test/test_helper.rb
|
271
322
|
homepage: https://github.com/qhwa/fdlint
|
272
323
|
licenses: []
|
324
|
+
metadata: {}
|
273
325
|
post_install_message:
|
274
326
|
rdoc_options:
|
275
|
-
- --main
|
327
|
+
- "--main"
|
276
328
|
- README.md
|
277
329
|
require_paths:
|
278
330
|
- lib
|
331
|
+
- lib
|
279
332
|
required_ruby_version: !ruby/object:Gem::Requirement
|
280
|
-
none: false
|
281
333
|
requirements:
|
282
|
-
- -
|
334
|
+
- - ">="
|
283
335
|
- !ruby/object:Gem::Version
|
284
336
|
version: '0'
|
285
|
-
segments:
|
286
|
-
- 0
|
287
|
-
hash: -1081230500175911799
|
288
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
289
|
-
none: false
|
290
338
|
requirements:
|
291
|
-
- -
|
339
|
+
- - ">"
|
292
340
|
- !ruby/object:Gem::Version
|
293
|
-
version:
|
341
|
+
version: 1.3.1
|
294
342
|
requirements: []
|
295
343
|
rubyforge_project:
|
296
|
-
rubygems_version:
|
344
|
+
rubygems_version: 2.2.2
|
297
345
|
signing_key:
|
298
|
-
specification_version:
|
346
|
+
specification_version: 4
|
299
347
|
summary: Code reviewer for web developing. Check your HTML/JS/CSS codes against bad
|
300
348
|
codes.
|
301
349
|
test_files: []
|