ninjs 0.10.2 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/Gemfile +1 -0
  2. data/Gemfile.lock +64 -0
  3. data/Rakefile +4 -1
  4. data/VERSION +1 -1
  5. data/bin/ninjs +14 -5
  6. data/lib/ninjs.rb +0 -3
  7. data/lib/ninjs/command.rb +67 -110
  8. data/lib/ninjs/configuration.rb +33 -39
  9. data/lib/ninjs/project.rb +14 -31
  10. data/ninjs.conf +7 -0
  11. data/ninjs.gemspec +63 -5
  12. data/repository/jquery/1.5.js +16 -0
  13. data/repository/jquery/latest.js +1 -1
  14. data/repository/jquery/mobile/1.0a3.js +123 -0
  15. data/repository/jquery/mobile/1.0a3/assets/css/jquery.mobile.css +1652 -0
  16. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/ajax-loader.png +0 -0
  17. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-off.png +0 -0
  18. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-on.png +0 -0
  19. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-off.png +0 -0
  20. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-on.png +0 -0
  21. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icon-search-black.png +0 -0
  22. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-black.png +0 -0
  23. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-white.png +0 -0
  24. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-black.png +0 -0
  25. data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-white.png +0 -0
  26. data/repository/jquery/mobile/latest.js +1 -0
  27. data/spec/fixtures/global.js +7 -0
  28. data/spec/fixtures/global.module.js +7 -0
  29. data/spec/fixtures/myapplication.js +576 -0
  30. data/spec/fixtures/nin.js +573 -0
  31. data/spec/fixtures/ninjs.conf +6 -0
  32. data/spec/fixtures/test.elements.js +4 -0
  33. data/spec/fixtures/test.js +15 -0
  34. data/spec/fixtures/test.model.js +3 -0
  35. data/spec/fixtures/test.module.js +10 -0
  36. data/spec/fixtures/updated.myapplication.js +27 -0
  37. data/spec/fixtures/utilities.js +162 -0
  38. data/spec/ninjs_spec.rb +257 -0
  39. data/spec/spec_helper.rb +2 -1
  40. data/tmp/ff9e83aa019b712b90200b8d1b8fa0c7e14576af.json +1 -0
  41. data/tmp/metric_fu/_data/20110305.yml +1548 -0
  42. data/tmp/metric_fu/output/bluff-min.js +1 -0
  43. data/tmp/metric_fu/output/churn.html +692 -0
  44. data/tmp/metric_fu/output/excanvas.js +35 -0
  45. data/tmp/metric_fu/output/flay.html +566 -0
  46. data/tmp/metric_fu/output/flay.js +11 -0
  47. data/tmp/metric_fu/output/flog.html +2392 -0
  48. data/tmp/metric_fu/output/flog.js +12 -0
  49. data/tmp/metric_fu/output/hotspots.html +3607 -0
  50. data/tmp/metric_fu/output/index.html +572 -0
  51. data/tmp/metric_fu/output/js-class.js +1 -0
  52. data/tmp/metric_fu/output/lib_ninjs.rb.html +49 -0
  53. data/tmp/metric_fu/output/lib_ninjs_command.rb.html +137 -0
  54. data/tmp/metric_fu/output/lib_ninjs_configuration.rb.html +107 -0
  55. data/tmp/metric_fu/output/lib_ninjs_dependencies.rb.html +34 -0
  56. data/tmp/metric_fu/output/lib_ninjs_helpers.rb.html +34 -0
  57. data/tmp/metric_fu/output/lib_ninjs_manifest.rb.html +27 -0
  58. data/tmp/metric_fu/output/lib_ninjs_project.rb.html +236 -0
  59. data/tmp/metric_fu/output/rails_best_practices.js +11 -0
  60. data/tmp/metric_fu/output/rcov.html +566 -0
  61. data/tmp/metric_fu/output/rcov.js +11 -0
  62. data/tmp/metric_fu/output/reek.html +1294 -0
  63. data/tmp/metric_fu/output/reek.js +20 -0
  64. data/tmp/metric_fu/output/roodi.html +599 -0
  65. data/tmp/metric_fu/output/roodi.js +11 -0
  66. data/tmp/metric_fu/report.yml +1548 -0
  67. data/tmp/metric_fu/scratch/rcov/rcov.txt +1 -0
  68. metadata +94 -27
  69. data/spec/test_spec.rb +0 -5
@@ -0,0 +1,11 @@
1
+ var g = new Bluff.Line('graph', "1000x600");
2
+ g.theme_37signals();
3
+ g.tooltips = true;
4
+ g.title_font_size = "24px"
5
+ g.legend_font_size = "12px"
6
+ g.marker_font_size = "10px"
7
+
8
+ g.title = 'Roodi: design problems';
9
+ g.data('roodi', [6]);
10
+ g.labels = {"0":"3/5"};
11
+ g.draw();
@@ -0,0 +1,1548 @@
1
+ ---
2
+ :churn:
3
+ :changes:
4
+ - :file_path: README.textile
5
+ :times_changed: 14
6
+ - :file_path: ninjs.gemspec
7
+ :times_changed: 12
8
+ - :file_path: lib/ninjs/project.rb
9
+ :times_changed: 10
10
+ - :file_path: repository/ninjs/core/nin.js
11
+ :times_changed: 9
12
+ - :file_path: bin/ninjs
13
+ :times_changed: 7
14
+ - :file_path: repository/ninjs/core/existence.js
15
+ :times_changed: 5
16
+ - :file_path: Rakefile
17
+ :times_changed: 4
18
+ - :file_path: repository/ninjs/core/module.js
19
+ :times_changed: 4
20
+ - :file_path: lib/ninjs/configuration.rb
21
+ :times_changed: 4
22
+ - :file_path: lib/ninjs/command.rb
23
+ :times_changed: 4
24
+ - :file_path: lib/ninjs/dependencies.rb
25
+ :times_changed: 3
26
+ - :file_path: VERSION
27
+ :times_changed: 3
28
+ - :file_path: lib/ninjs.rb
29
+ :times_changed: 3
30
+ - :file_path: repository/ninjs/tests/index.html
31
+ :times_changed: 3
32
+ - :file_path: repository/ninjs/tests/ninjs.test.js
33
+ :times_changed: 3
34
+ - :file_path: Gemfile
35
+ :times_changed: 3
36
+ - :file_path: spec/ninjs_spec.rb
37
+ :times_changed: 3
38
+ - :file_path: README
39
+ :times_changed: 3
40
+ :class_churn: []
41
+
42
+ :method_churn: []
43
+
44
+ :changed_files:
45
+ - bin/ninjs
46
+ :changed_classes: []
47
+
48
+ :changed_methods: []
49
+
50
+ :flog:
51
+ :total: 517.0986661748072
52
+ :average: 11.7522424130638
53
+ :method_containers:
54
+ - :name: Ninjs::Command
55
+ :path: lib/ninjs/command.rb
56
+ :total_score: 204.70014703753415
57
+ :highest_score: 142.7930320428838
58
+ :average_score: 29.242878148219166
59
+ :methods:
60
+ Ninjs::Command#watch:
61
+ :operators:
62
+ :require: 1.2000000000000002
63
+ :assignment: 25.5
64
+ :getwd: 1.4000000000000001
65
+ :<<: 1.2000000000000002
66
+ :branch: 10.700000000000003
67
+ :exists?: 1.2000000000000002
68
+ :raise: 1.3000000000000003
69
+ :puts: 4.800000000000002
70
+ :new: 2.4000000000000004
71
+ :update: 6.400000000000002
72
+ :directories: 1.4000000000000001
73
+ :reject: 1.2000000000000002
74
+ :match: 1.3000000000000003
75
+ :each: 2.5000000000000004
76
+ :base_directory: 1.2000000000000002
77
+ :monitor: 1.2000000000000002
78
+ :path: 1.4000000000000004
79
+ :glob: 1.6000000000000005
80
+ :create: 1.6000000000000008
81
+ :score: 43.28544790111338
82
+ :path: lib/ninjs/command.rb:3
83
+ Ninjs::Command#create:
84
+ :operators:
85
+ :assignment: 2.400000000000001
86
+ :branch: 2.400000000000001
87
+ :nil?: 1.2000000000000004
88
+ :raise: 1.3000000000000005
89
+ :new: 2.600000000000001
90
+ :create: 1.2000000000000004
91
+ :score: 7.15611626512594
92
+ :path: lib/ninjs/command.rb:45
93
+ Ninjs::Command#compile:
94
+ :operators:
95
+ :assignment: 2.400000000000001
96
+ :getwd: 1.4000000000000004
97
+ :<<: 1.2000000000000004
98
+ :branch: 1.2000000000000004
99
+ :exists?: 1.2000000000000004
100
+ :raise: 1.3000000000000005
101
+ :new: 1.2000000000000004
102
+ :update: 1.2000000000000004
103
+ :score: 7.965550828411054
104
+ :path: lib/ninjs/command.rb:51
105
+ Ninjs::Command#import:
106
+ :operators:
107
+ :import: 1.2000000000000004
108
+ :score: 1.2000000000000004
109
+ :path: lib/ninjs/command.rb:58
110
+ Ninjs::Command#help:
111
+ :operators:
112
+ :puts: 1.2000000000000004
113
+ :score: 1.2000000000000004
114
+ :path: lib/ninjs/command.rb:62
115
+ Ninjs::Command#generate:
116
+ :operators:
117
+ :assignment: 13.000000000000007
118
+ :branch: 20.600000000000016
119
+ :getwd: 1.6000000000000005
120
+ :<<: 14.50000000000001
121
+ :exists?: 6.200000000000005
122
+ :raise: 1.5000000000000007
123
+ :new: 1.4000000000000006
124
+ :===: 4.5000000000000036
125
+ :downcase: 23.00000000000002
126
+ :open: 5.100000000000005
127
+ :config: 14.300000000000011
128
+ :name: 13.300000000000011
129
+ :+: 49.600000000000044
130
+ :puts: 5.7000000000000055
131
+ :score: 142.7930320428838
132
+ :path: lib/ninjs/command.rb:88
133
+ Ninjs::Command#none:
134
+ :operators:
135
+ :module_function: 1.1000000000000014
136
+ :score: 1.1000000000000014
137
+ :path:
138
+ - :name: Ninjs::Project
139
+ :path: lib/ninjs/project.rb
140
+ :total_score: 215.30408233997946
141
+ :highest_score: 20.389458060478237
142
+ :average_score: 10.252575349522832
143
+ :methods:
144
+ Ninjs::Project#none:
145
+ :operators:
146
+ :attr_reader: 1.1000000000000014
147
+ :attr_writer: 1.1000000000000014
148
+ :score: 2.200000000000003
149
+ :path:
150
+ Ninjs::Project#initialize:
151
+ :operators:
152
+ :assignment: 7.200000000000008
153
+ :add_slashes: 1.2000000000000015
154
+ :getwd: 1.4000000000000015
155
+ :+: 1.2000000000000015
156
+ :new: 2.400000000000003
157
+ :score: 9.501578816175774
158
+ :path: lib/ninjs/project.rb:10
159
+ Ninjs::Project#add_slashes:
160
+ :operators:
161
+ :branch: 2.400000000000003
162
+ :match: 2.400000000000003
163
+ :assignment: 2.600000000000003
164
+ :+: 1.3000000000000016
165
+ :<<: 1.3000000000000016
166
+ :score: 6.12535713244543
167
+ :path: lib/ninjs/project.rb:17
168
+ Ninjs::Project#create:
169
+ :operators:
170
+ :name: 1.4000000000000015
171
+ :puts: 2.400000000000003
172
+ :create_project_structure: 1.2000000000000015
173
+ :create: 1.2000000000000015
174
+ :create_ninjs_lib_file: 1.2000000000000015
175
+ :create_utility_lib_file: 1.2000000000000015
176
+ :create_ninjs_application_file: 1.2000000000000015
177
+ :import_test_files: 1.2000000000000015
178
+ :score: 11.00000000000001
179
+ :path: lib/ninjs/project.rb:23
180
+ Ninjs::Project#create_project_structure:
181
+ :operators:
182
+ :branch: 5.200000000000006
183
+ :exists?: 4.000000000000005
184
+ :mkdir: 2.8000000000000034
185
+ :directories: 1.4000000000000015
186
+ :each: 1.2000000000000015
187
+ :assignment: 1.3000000000000016
188
+ :puts: 1.5000000000000018
189
+ :score: 12.146604463799763
190
+ :path: lib/ninjs/project.rb:34
191
+ Ninjs::Project#create_ninjs_lib_file:
192
+ :operators:
193
+ :assignment: 1.2000000000000015
194
+ :base_directory: 1.4000000000000015
195
+ :asset_root: 1.4000000000000015
196
+ :new: 1.2000000000000015
197
+ :concatenation: 1.4000000000000015
198
+ :save_to: 1.2000000000000015
199
+ :puts: 1.2000000000000015
200
+ :score: 7.891767862779552
201
+ :path: lib/ninjs/project.rb:42
202
+ Ninjs::Project#create_utility_lib_file:
203
+ :operators:
204
+ :assignment: 1.2000000000000015
205
+ :base_directory: 1.4000000000000015
206
+ :asset_root: 1.4000000000000015
207
+ :new: 1.2000000000000015
208
+ :concatenation: 1.4000000000000015
209
+ :save_to: 1.2000000000000015
210
+ :puts: 1.2000000000000015
211
+ :score: 7.891767862779552
212
+ :path: lib/ninjs/project.rb:55
213
+ Ninjs::Project#create_ninjs_application_file:
214
+ :operators:
215
+ :assignment: 2.500000000000003
216
+ :app_filename: 1.2000000000000015
217
+ :branch: 1.2000000000000015
218
+ :open: 3.2000000000000033
219
+ :now: 1.8000000000000018
220
+ :to_s: 1.6000000000000019
221
+ :<<: 4.2000000000000055
222
+ :readlines: 1.8000000000000018
223
+ :join: 1.6000000000000019
224
+ :name: 1.6000000000000019
225
+ :base_url: 1.6000000000000019
226
+ :test_path: 1.6000000000000019
227
+ :score: 20.389458060478237
228
+ :path: lib/ninjs/project.rb:68
229
+ Ninjs::Project#import_test_files:
230
+ :operators:
231
+ :base_directory: 7.000000000000009
232
+ :cp: 6.000000000000009
233
+ :score: 13.000000000000018
234
+ :path: lib/ninjs/project.rb:78
235
+ Ninjs::Project#update:
236
+ :operators:
237
+ :get_updated_modules: 1.2000000000000017
238
+ :compile_modules: 1.2000000000000017
239
+ :update_application_file: 1.2000000000000017
240
+ :branch: 2.4000000000000035
241
+ :output: 1.4000000000000017
242
+ :==: 1.2000000000000017
243
+ :compress_application: 1.3000000000000018
244
+ :puts: 1.3000000000000018
245
+ :assignment: 1.2000000000000017
246
+ :score: 9.200000000000014
247
+ :path: lib/ninjs/project.rb:86
248
+ Ninjs::Project#get_directory_script_files:
249
+ :operators:
250
+ :assignment: 2.5000000000000036
251
+ :new: 1.2000000000000017
252
+ :branch: 2.5000000000000036
253
+ :[]: 1.4000000000000017
254
+ :each: 1.2000000000000017
255
+ :match: 1.3000000000000018
256
+ :<<: 1.400000000000002
257
+ :score: 7.399324293474381
258
+ :path: lib/ninjs/project.rb:95
259
+ Ninjs::Project#get_files_timestamps:
260
+ :operators:
261
+ :assignment: 3.800000000000005
262
+ :new: 2.9000000000000035
263
+ :branch: 1.2000000000000017
264
+ :each: 1.2000000000000017
265
+ :mtime: 1.5000000000000018
266
+ :to_s: 1.3000000000000018
267
+ :score: 7.968061244744556
268
+ :path: lib/ninjs/project.rb:102
269
+ Ninjs::Project#get_updated_modules:
270
+ :operators:
271
+ :assignment: 3.9000000000000057
272
+ :new: 1.2000000000000017
273
+ :branch: 2.6000000000000036
274
+ :[]: 1.4000000000000017
275
+ :each: 1.2000000000000017
276
+ :+: 1.6000000000000019
277
+ :gsub: 1.400000000000002
278
+ :match: 1.400000000000002
279
+ :<<: 1.500000000000002
280
+ :score: 10.773114684249876
281
+ :path: lib/ninjs/project.rb:110
282
+ Ninjs::Project#compile_modules:
283
+ :operators:
284
+ :branch: 1.2000000000000017
285
+ :each: 1.2000000000000017
286
+ :assignment: 2.7000000000000037
287
+ :create_module_filename: 1.400000000000002
288
+ :create_module_file: 1.400000000000002
289
+ :score: 4.972926703662549
290
+ :path: lib/ninjs/project.rb:119
291
+ Ninjs::Project#create_module_file:
292
+ :operators:
293
+ :branch: 2.6000000000000036
294
+ :assignment: 8.300000000000011
295
+ :base_directory: 1.6000000000000019
296
+ :asset_root: 1.6000000000000019
297
+ :new: 1.400000000000002
298
+ :concatenation: 1.400000000000002
299
+ :exists?: 1.400000000000002
300
+ :save_to: 1.400000000000002
301
+ :install_assets: 1.400000000000002
302
+ :message: 1.6000000000000019
303
+ :puts: 1.400000000000002
304
+ :score: 15.807909412695933
305
+ :path: lib/ninjs/project.rb:126
306
+ Ninjs::Project#update_application_file:
307
+ :operators:
308
+ :assignment: 2.5000000000000036
309
+ :app_filename: 1.2000000000000017
310
+ :branch: 1.2000000000000017
311
+ :open: 1.2000000000000017
312
+ :write_dependencies: 1.400000000000002
313
+ :write_core: 1.400000000000002
314
+ :write_autoload: 1.400000000000002
315
+ :compile_application_file: 1.2000000000000017
316
+ :score: 8.278284846512603
317
+ :path: lib/ninjs/project.rb:149
318
+ Ninjs::Project#write_dependencies:
319
+ :operators:
320
+ :branch: 4.000000000000005
321
+ :dependencies: 1.4000000000000017
322
+ :each: 1.2000000000000017
323
+ :assignment: 1.3000000000000018
324
+ :<<: 4.400000000000006
325
+ :match: 2.800000000000004
326
+ :score: 10.664426848171463
327
+ :path: lib/ninjs/project.rb:161
328
+ Ninjs::Project#write_core:
329
+ :operators:
330
+ :<<: 3.600000000000005
331
+ :name: 1.4000000000000017
332
+ :base_url: 1.4000000000000017
333
+ :test_path: 1.4000000000000017
334
+ :score: 7.800000000000011
335
+ :path: lib/ninjs/project.rb:169
336
+ Ninjs::Project#write_autoload:
337
+ :operators:
338
+ :branch: 4.000000000000005
339
+ :autoload: 1.4000000000000017
340
+ :each: 1.2000000000000017
341
+ :assignment: 1.3000000000000018
342
+ :<<: 4.400000000000006
343
+ :match: 2.800000000000004
344
+ :score: 10.664426848171463
345
+ :path: lib/ninjs/project.rb:175
346
+ Ninjs::Project#compile_application_file:
347
+ :operators:
348
+ :branch: 1.2000000000000017
349
+ :assignment: 5.500000000000008
350
+ :base_directory: 1.6000000000000019
351
+ :asset_root: 1.6000000000000019
352
+ :new: 1.400000000000002
353
+ :concatenation: 1.400000000000002
354
+ :install_assets: 1.400000000000002
355
+ :save_to: 1.400000000000002
356
+ :message: 1.6000000000000019
357
+ :puts: 1.400000000000002
358
+ :score: 13.074020039758254
359
+ :path: lib/ninjs/project.rb:183
360
+ Ninjs::Project#compress_application:
361
+ :operators:
362
+ :assignment: 9.300000000000013
363
+ :+: 2.6000000000000036
364
+ :entries: 1.2000000000000017
365
+ :branch: 3.800000000000005
366
+ :reject!: 1.2000000000000017
367
+ :each: 1.2000000000000017
368
+ :open: 3.2000000000000037
369
+ :readlines: 1.6000000000000019
370
+ :join: 1.400000000000002
371
+ :minify: 1.700000000000002
372
+ :<<: 1.500000000000002
373
+ :score: 18.555053220079994
374
+ :path: lib/ninjs/project.rb:201
375
+ - :name: main
376
+ :path: ""
377
+ :total_score: 19.450963986394108
378
+ :highest_score: 19.450963986394108
379
+ :average_score: 19.450963986394108
380
+ :methods:
381
+ main#none:
382
+ :operators:
383
+ :branch: 2.1000000000000014
384
+ :each: 1.1
385
+ :assignment: 1.2000000000000002
386
+ :lib_directory: 1.4000000000000001
387
+ :require: 16.800000000000015
388
+ :score: 19.450963986394108
389
+ :path:
390
+ - :name: Ninjs::Configuration
391
+ :path: lib/ninjs/configuration.rb
392
+ :total_score: 53.42142644999244
393
+ :highest_score: 19.254090474494003
394
+ :average_score: 7.631632349998919
395
+ :methods:
396
+ Ninjs::Configuration#none:
397
+ :operators:
398
+ :attr_reader: 1.1000000000000014
399
+ :score: 1.1000000000000014
400
+ :path:
401
+ Ninjs::Configuration#initialize:
402
+ :operators:
403
+ :assignment: 7.500000000000009
404
+ :gsub: 1.4000000000000015
405
+ :downcase: 1.2000000000000015
406
+ :branch: 2.400000000000003
407
+ :each: 1.2000000000000015
408
+ :instance_variable_set: 1.3000000000000016
409
+ :exists?: 1.2000000000000015
410
+ :read: 1.3000000000000016
411
+ :score: 10.943948099292152
412
+ :path: lib/ninjs/configuration.rb:15
413
+ Ninjs::Configuration#create:
414
+ :operators:
415
+ :assignment: 1.2000000000000015
416
+ :conf_content: 1.2000000000000015
417
+ :create_conf_file: 1.2000000000000015
418
+ :score: 2.6832815729997512
419
+ :path: lib/ninjs/configuration.rb:37
420
+ Ninjs::Configuration#conf_content:
421
+ :operators:
422
+ :assignment: 1.2000000000000015
423
+ :[]: 8.80000000000001
424
+ :join: 2.400000000000003
425
+ :score: 11.264102272262992
426
+ :path: lib/ninjs/configuration.rb:42
427
+ Ninjs::Configuration#create_conf_file:
428
+ :operators:
429
+ :branch: 1.2000000000000015
430
+ :open: 1.2000000000000015
431
+ :assignment: 1.3000000000000016
432
+ :conf_content: 1.5000000000000016
433
+ :<<: 1.3000000000000016
434
+ :puts: 1.2000000000000015
435
+ :score: 5.49272245794379
436
+ :path: lib/ninjs/configuration.rb:56
437
+ Ninjs::Configuration#update:
438
+ :operators:
439
+ :assignment: 1.2000000000000015
440
+ :conf_content: 1.2000000000000015
441
+ :create_conf_file: 1.2000000000000015
442
+ :score: 2.6832815729997512
443
+ :path: lib/ninjs/configuration.rb:64
444
+ Ninjs::Configuration#read:
445
+ :operators:
446
+ :assignment: 10.800000000000011
447
+ :load_file: 1.2000000000000015
448
+ :[]: 10.20000000000001
449
+ :downcase: 1.2000000000000015
450
+ :branch: 4.800000000000006
451
+ :new: 2.600000000000003
452
+ :score: 19.254090474494003
453
+ :path: lib/ninjs/configuration.rb:78
454
+ - :name: Ninjs::Helpers
455
+ :path: lib/ninjs/helpers.rb
456
+ :total_score: 8.822046360907203
457
+ :highest_score: 7.722046360907202
458
+ :average_score: 4.4110231804536015
459
+ :methods:
460
+ Ninjs::Helpers#create_module_filename:
461
+ :operators:
462
+ :assignment: 3.7000000000000046
463
+ :split: 1.2000000000000015
464
+ :new: 1.2000000000000015
465
+ :branch: 2.500000000000003
466
+ :each: 1.2000000000000015
467
+ :match: 1.3000000000000016
468
+ :<<: 1.4000000000000017
469
+ :score: 7.722046360907202
470
+ :path: lib/ninjs/helpers.rb:4
471
+ Ninjs::Helpers#none:
472
+ :operators:
473
+ :module_function: 1.1000000000000014
474
+ :score: 1.1000000000000014
475
+ :path:
476
+ - :name: Ninjs
477
+ :path: lib/ninjs.rb
478
+ :total_score: 14.3
479
+ :highest_score: 4.5
480
+ :average_score: 2.8600000000000003
481
+ :methods:
482
+ Ninjs#base_directory:
483
+ :operators:
484
+ :dirname: 1.7000000000000002
485
+ :join: 1.5000000000000002
486
+ :expand_path: 1.3000000000000003
487
+ :score: 4.5
488
+ :path: lib/ninjs.rb:6
489
+ Ninjs#lib_directory:
490
+ :operators:
491
+ :dirname: 1.7000000000000002
492
+ :join: 1.5000000000000002
493
+ :expand_path: 1.3000000000000003
494
+ :score: 4.5
495
+ :path: lib/ninjs.rb:10
496
+ Ninjs#root_directory:
497
+ :operators:
498
+ :getwd: 1.3000000000000003
499
+ :score: 1.3000000000000003
500
+ :path: lib/ninjs.rb:14
501
+ Ninjs#repository_root:
502
+ :operators:
503
+ :base_directory: 1.5000000000000002
504
+ :+: 1.3000000000000003
505
+ :score: 2.8000000000000007
506
+ :path: lib/ninjs.rb:18
507
+ Ninjs#none:
508
+ :operators:
509
+ :module_function: 1.2000000000000002
510
+ :score: 1.2000000000000002
511
+ :path:
512
+ - :name: Ninjs::Manifest
513
+ :path: ""
514
+ :total_score: 1.1000000000000014
515
+ :highest_score: 1.1000000000000014
516
+ :average_score: 1.1000000000000014
517
+ :methods:
518
+ Ninjs::Manifest#none:
519
+ :operators:
520
+ :module_function: 1.1000000000000014
521
+ :score: 1.1000000000000014
522
+ :path:
523
+ :flay:
524
+ :total_score: "0"
525
+ :matches: []
526
+
527
+ :reek:
528
+ :matches:
529
+ - :file_path: lib/ninjs.rb
530
+ :code_smells:
531
+ - :method: Ninjs#base_directory
532
+ :message: doesn't depend on instance state
533
+ :type: LowCohesion
534
+ - :method: Ninjs#lib_directory
535
+ :message: doesn't depend on instance state
536
+ :type: LowCohesion
537
+ - :file_path: lib/ninjs/command.rb
538
+ :code_smells:
539
+ - :method: Ninjs::Command#create
540
+ :message: has boolean parameter 'directory'
541
+ :type: ControlCouple
542
+ - :method: Ninjs::Command#create
543
+ :message: is controlled by argument directory
544
+ :type: ControlCouple
545
+ - :method: Ninjs::Command#generate
546
+ :message: calls ((project.config.name + ".") + name) 4 times
547
+ :type: Duplication
548
+ - :method: Ninjs::Command#generate
549
+ :message: calls (project.config.name + ".") 4 times
550
+ :type: Duplication
551
+ - :method: Ninjs::Command#generate
552
+ :message: calls name.downcase 11 times
553
+ :type: Duplication
554
+ - :method: Ninjs::Command#generate
555
+ :message: calls project.config 5 times
556
+ :type: Duplication
557
+ - :method: Ninjs::Command#generate
558
+ :message: calls project.config.name 5 times
559
+ :type: Duplication
560
+ - :method: Ninjs::Command#generate
561
+ :message: has 6 parameters
562
+ :type: LongParameterList
563
+ - :method: Ninjs::Command#generate
564
+ :message: has approx 16 statements
565
+ :type: LongMethod
566
+ - :method: Ninjs::Command#generate
567
+ :message: has boolean parameter 'create_elements'
568
+ :type: ControlCouple
569
+ - :method: Ninjs::Command#generate
570
+ :message: has boolean parameter 'create_models'
571
+ :type: ControlCouple
572
+ - :method: Ninjs::Command#generate
573
+ :message: has boolean parameter 'elements'
574
+ :type: ControlCouple
575
+ - :method: Ninjs::Command#generate
576
+ :message: has boolean parameter 'models'
577
+ :type: ControlCouple
578
+ - :method: Ninjs::Command#generate
579
+ :message: is controlled by argument elements
580
+ :type: ControlCouple
581
+ - :method: Ninjs::Command#generate
582
+ :message: is controlled by argument models
583
+ :type: ControlCouple
584
+ - :method: Ninjs::Command#generate
585
+ :message: refers to name more than self
586
+ :type: LowCohesion
587
+ - :method: Ninjs::Command#watch
588
+ :message: calls project.update 3 times
589
+ :type: Duplication
590
+ - :method: Ninjs::Command#watch
591
+ :message: contains iterators nested 4 deep
592
+ :type: NestedIterators
593
+ - :method: Ninjs::Command#watch
594
+ :message: has approx 19 statements
595
+ :type: LongMethod
596
+ - :method: Ninjs::Command#watch
597
+ :message: has the variable name 'g'
598
+ :type: UncommunicativeName
599
+ - :file_path: lib/ninjs/configuration.rb
600
+ :code_smells:
601
+ - :method: Ninjs::Configuration
602
+ :message: has at least 10 instance variables
603
+ :type: LargeClass
604
+ - :method: Ninjs::Configuration
605
+ :message: has no descriptive comment
606
+ :type: IrresponsibleModule
607
+ - :method: Ninjs::Configuration#conf_content
608
+ :message: doesn't depend on instance state
609
+ :type: LowCohesion
610
+ - :method: Ninjs::Configuration#conf_content
611
+ :message: refers to options more than self
612
+ :type: LowCohesion
613
+ - :method: Ninjs::Configuration#read
614
+ :message: calls config["name"] twice
615
+ :type: Duplication
616
+ - :method: Ninjs::Configuration#read
617
+ :message: has approx 9 statements
618
+ :type: LongMethod
619
+ - :file_path: lib/ninjs/dependencies.rb
620
+ :code_smells: []
621
+
622
+ - :file_path: lib/ninjs/helpers.rb
623
+ :code_smells:
624
+ - :method: Ninjs::Helpers#create_module_filename
625
+ :message: doesn't depend on instance state
626
+ :type: LowCohesion
627
+ - :method: Ninjs::Helpers#create_module_filename
628
+ :message: refers to module_filename more than self
629
+ :type: LowCohesion
630
+ - :method: Ninjs::Helpers#create_module_filename
631
+ :message: refers to module_name more than self
632
+ :type: LowCohesion
633
+ - :method: Ninjs::Helpers#create_module_filename
634
+ :message: refers to piece more than self
635
+ :type: LowCohesion
636
+ - :method: Ninjs::Helpers#create_module_filename
637
+ :message: refers to split more than self
638
+ :type: LowCohesion
639
+ - :file_path: lib/ninjs/manifest.rb
640
+ :code_smells: []
641
+
642
+ - :file_path: lib/ninjs/project.rb
643
+ :code_smells:
644
+ - :method: Ninjs::Project
645
+ :message: has no descriptive comment
646
+ :type: IrresponsibleModule
647
+ - :method: Ninjs::Project#add_slashes
648
+ :message: doesn't depend on instance state
649
+ :type: LowCohesion
650
+ - :method: Ninjs::Project#add_slashes
651
+ :message: refers to dir more than self
652
+ :type: LowCohesion
653
+ - :method: Ninjs::Project#compile_application_file
654
+ :message: has approx 6 statements
655
+ :type: LongMethod
656
+ - :method: Ninjs::Project#compress_application
657
+ :message: contains iterators nested 2 deep
658
+ :type: NestedIterators
659
+ - :method: Ninjs::Project#compress_application
660
+ :message: has approx 7 statements
661
+ :type: LongMethod
662
+ - :method: Ninjs::Project#compress_application
663
+ :message: refers to modules more than self
664
+ :type: LowCohesion
665
+ - :method: Ninjs::Project#create
666
+ :message: has approx 8 statements
667
+ :type: LongMethod
668
+ - :method: Ninjs::Project#create_module_file
669
+ :message: has approx 9 statements
670
+ :type: LongMethod
671
+ - :method: Ninjs::Project#create_project_structure
672
+ :message: calls File.exists?("#{@project_path}#{folder}") twice
673
+ :type: Duplication
674
+ - :method: Ninjs::Project#get_files_timestamps
675
+ :message: doesn't depend on instance state
676
+ :type: LowCohesion
677
+ - :method: Ninjs::Project#get_files_timestamps
678
+ :message: refers to files more than self
679
+ :type: LowCohesion
680
+ - :method: Ninjs::Project#get_files_timestamps
681
+ :message: refers to timestamped_files more than self
682
+ :type: LowCohesion
683
+ - :method: Ninjs::Project#import_test_files
684
+ :message: calls Ninjs.base_directory 5 times
685
+ :type: Duplication
686
+ - :method: Ninjs::Project#update
687
+ :message: has approx 6 statements
688
+ :type: LongMethod
689
+ - :method: Ninjs::Project#update_application_file
690
+ :message: has approx 6 statements
691
+ :type: LongMethod
692
+ - :method: Ninjs::Project#write_autoload
693
+ :message: refers to file more than self
694
+ :type: LowCohesion
695
+ - :method: Ninjs::Project#write_dependencies
696
+ :message: refers to file more than self
697
+ :type: LowCohesion
698
+ :roodi:
699
+ :total:
700
+ - Found 6 errors.
701
+ :problems:
702
+ - :file: lib/ninjs/command.rb
703
+ :line: "88"
704
+ :problem: Method name "generate" cyclomatic complexity is 11. It should be 8 or less.
705
+ - :file: lib/ninjs/command.rb
706
+ :line: "115"
707
+ :problem: Rescue block should not be empty.
708
+ - :file: lib/ninjs/command.rb
709
+ :line: "3"
710
+ :problem: Method "watch" has 39 lines. It should have 20 or less.
711
+ - :file: lib/ninjs/command.rb
712
+ :line: "62"
713
+ :problem: Method "help" has 23 lines. It should have 20 or less.
714
+ - :file: lib/ninjs/command.rb
715
+ :line: "88"
716
+ :problem: Method "generate" has 27 lines. It should have 20 or less.
717
+ - :file: lib/ninjs/command.rb
718
+ :line: "88"
719
+ :problem: Method name "generate" has 6 parameters. It should have 5 or less.
720
+ :rcov:
721
+ :global_percent_run: 0.0
722
+ :hotspots:
723
+ :files:
724
+ - :location: !ruby/object:MetricFu::Location
725
+ class_name:
726
+ file_path: lib/ninjs/command.rb:88
727
+ hash: 4160200194027684269
728
+ method_name:
729
+ :details:
730
+ :flog: complexity is 142.8
731
+ - :location: !ruby/object:MetricFu::Location
732
+ class_name:
733
+ file_path: lib/ninjs/command.rb:3
734
+ hash: 2671218638320020217
735
+ method_name:
736
+ :details:
737
+ :flog: complexity is 43.3
738
+ - :location: !ruby/object:MetricFu::Location
739
+ class_name:
740
+ file_path: lib/ninjs/project.rb:68
741
+ hash: 1370677261991847343
742
+ method_name:
743
+ :details:
744
+ :flog: complexity is 20.4
745
+ - :location: !ruby/object:MetricFu::Location
746
+ class_name:
747
+ file_path: lib/ninjs/configuration.rb:78
748
+ hash: 4525749970142265771
749
+ method_name:
750
+ :details:
751
+ :flog: complexity is 19.3
752
+ - :location: !ruby/object:MetricFu::Location
753
+ class_name:
754
+ file_path: lib/ninjs/project.rb:201
755
+ hash: -1339276930340788996
756
+ method_name:
757
+ :details:
758
+ :flog: complexity is 18.6
759
+ - :location: !ruby/object:MetricFu::Location
760
+ class_name:
761
+ file_path: lib/ninjs/project.rb:126
762
+ hash: -2784154752066157526
763
+ method_name:
764
+ :details:
765
+ :flog: complexity is 15.8
766
+ - :location: !ruby/object:MetricFu::Location
767
+ class_name:
768
+ file_path: lib/ninjs/project.rb:183
769
+ hash: -4226131583629015859
770
+ method_name:
771
+ :details:
772
+ :flog: complexity is 13.1
773
+ - :location: !ruby/object:MetricFu::Location
774
+ class_name:
775
+ file_path: lib/ninjs/project.rb:78
776
+ hash: 688363903816723712
777
+ method_name:
778
+ :details:
779
+ :flog: complexity is 13.0
780
+ - :location: !ruby/object:MetricFu::Location
781
+ class_name:
782
+ file_path: lib/ninjs/project.rb:34
783
+ hash: -1748487746572088963
784
+ method_name:
785
+ :details:
786
+ :flog: complexity is 12.1
787
+ - :location: !ruby/object:MetricFu::Location
788
+ class_name:
789
+ file_path: lib/ninjs/configuration.rb:42
790
+ hash: -4301521634910444285
791
+ method_name:
792
+ :details:
793
+ :flog: complexity is 11.3
794
+ - :location: !ruby/object:MetricFu::Location
795
+ class_name:
796
+ file_path: lib/ninjs/project.rb:23
797
+ hash: 2580929902857861362
798
+ method_name:
799
+ :details:
800
+ :flog: complexity is 11.0
801
+ - :location: !ruby/object:MetricFu::Location
802
+ class_name:
803
+ file_path: lib/ninjs/configuration.rb:15
804
+ hash: 2698556761195137943
805
+ method_name:
806
+ :details:
807
+ :flog: complexity is 10.9
808
+ - :location: !ruby/object:MetricFu::Location
809
+ class_name:
810
+ file_path: lib/ninjs/project.rb:110
811
+ hash: 3743755693735728302
812
+ method_name:
813
+ :details:
814
+ :flog: complexity is 10.8
815
+ - :location: !ruby/object:MetricFu::Location
816
+ class_name:
817
+ file_path: lib/ninjs/project.rb:175
818
+ hash: -3064516540422809369
819
+ method_name:
820
+ :details:
821
+ :flog: complexity is 10.7
822
+ - :location: !ruby/object:MetricFu::Location
823
+ class_name:
824
+ file_path: lib/ninjs/project.rb:161
825
+ hash: 23349595079583399
826
+ method_name:
827
+ :details:
828
+ :flog: complexity is 10.7
829
+ - :location: !ruby/object:MetricFu::Location
830
+ class_name:
831
+ file_path: lib/ninjs/project.rb:10
832
+ hash: 1838059108463636271
833
+ method_name:
834
+ :details:
835
+ :flog: complexity is 9.5
836
+ - :location: !ruby/object:MetricFu::Location
837
+ class_name:
838
+ file_path: lib/ninjs/project.rb:86
839
+ hash: 3593632674147815245
840
+ method_name:
841
+ :details:
842
+ :flog: complexity is 9.2
843
+ - :location: !ruby/object:MetricFu::Location
844
+ class_name:
845
+ file_path: lib/ninjs/project.rb:149
846
+ hash: 2599597900673248510
847
+ method_name:
848
+ :details:
849
+ :flog: complexity is 8.3
850
+ - :location: !ruby/object:MetricFu::Location
851
+ class_name:
852
+ file_path: lib/ninjs/project.rb:102
853
+ hash: 2496504256826942604
854
+ method_name:
855
+ :details:
856
+ :flog: complexity is 8.0
857
+ - :location: !ruby/object:MetricFu::Location
858
+ class_name:
859
+ file_path: lib/ninjs/command.rb:51
860
+ hash: -2385320271882282031
861
+ method_name:
862
+ :details:
863
+ :flog: complexity is 8.0
864
+ - :location: !ruby/object:MetricFu::Location
865
+ class_name:
866
+ file_path: lib/ninjs/project.rb:55
867
+ hash: 4597108490876768486
868
+ method_name:
869
+ :details:
870
+ :flog: complexity is 7.9
871
+ - :location: !ruby/object:MetricFu::Location
872
+ class_name:
873
+ file_path: lib/ninjs/project.rb:42
874
+ hash: 2383652418191934188
875
+ method_name:
876
+ :details:
877
+ :flog: complexity is 7.9
878
+ - :location: !ruby/object:MetricFu::Location
879
+ class_name:
880
+ file_path: lib/ninjs/project.rb:169
881
+ hash: 848878807115442343
882
+ method_name:
883
+ :details:
884
+ :flog: complexity is 7.8
885
+ - :location: !ruby/object:MetricFu::Location
886
+ class_name:
887
+ file_path: lib/ninjs/helpers.rb:4
888
+ hash: 3619538850581729233
889
+ method_name:
890
+ :details:
891
+ :flog: complexity is 7.7
892
+ - :location: !ruby/object:MetricFu::Location
893
+ class_name:
894
+ file_path: lib/ninjs/project.rb:95
895
+ hash: -861151061066470065
896
+ method_name:
897
+ :details:
898
+ :flog: complexity is 7.4
899
+ - :location: !ruby/object:MetricFu::Location
900
+ class_name:
901
+ file_path: lib/ninjs/command.rb:45
902
+ hash: 385181851232458588
903
+ method_name:
904
+ :details:
905
+ :flog: complexity is 7.2
906
+ - :location: !ruby/object:MetricFu::Location
907
+ class_name:
908
+ file_path: lib/ninjs/project.rb:17
909
+ hash: 2601449699093978840
910
+ method_name:
911
+ :details:
912
+ :flog: complexity is 6.1
913
+ - :location: !ruby/object:MetricFu::Location
914
+ class_name:
915
+ file_path: lib/ninjs/configuration.rb:56
916
+ hash: 3492432701895547514
917
+ method_name:
918
+ :details:
919
+ :flog: complexity is 5.5
920
+ - :location: !ruby/object:MetricFu::Location
921
+ class_name:
922
+ file_path: lib/ninjs/project.rb:119
923
+ hash: -4545250013754625588
924
+ method_name:
925
+ :details:
926
+ :flog: complexity is 5.0
927
+ - :location: !ruby/object:MetricFu::Location
928
+ class_name:
929
+ file_path: lib/ninjs.rb:6
930
+ hash: 4027275305244597722
931
+ method_name:
932
+ :details:
933
+ :flog: complexity is 4.5
934
+ - :location: !ruby/object:MetricFu::Location
935
+ class_name:
936
+ file_path: lib/ninjs.rb:10
937
+ hash: 2183995766310003999
938
+ method_name:
939
+ :details:
940
+ :flog: complexity is 4.5
941
+ - :location: !ruby/object:MetricFu::Location
942
+ class_name:
943
+ file_path: lib/ninjs.rb:18
944
+ hash: 3630714244516488800
945
+ method_name:
946
+ :details:
947
+ :flog: complexity is 2.8
948
+ - :location: !ruby/object:MetricFu::Location
949
+ class_name:
950
+ file_path: lib/ninjs/configuration.rb:37
951
+ hash: -3367395183519064177
952
+ method_name:
953
+ :details:
954
+ :flog: complexity is 2.7
955
+ - :location: !ruby/object:MetricFu::Location
956
+ class_name:
957
+ file_path: lib/ninjs/configuration.rb:64
958
+ hash: -3849626967315785461
959
+ method_name:
960
+ :details:
961
+ :flog: complexity is 2.7
962
+ - :location: !ruby/object:MetricFu::Location
963
+ class_name:
964
+ file_path: lib/ninjs.rb:14
965
+ hash: -3566992955101204532
966
+ method_name:
967
+ :details:
968
+ :flog: complexity is 1.3
969
+ - :location: !ruby/object:MetricFu::Location
970
+ class_name:
971
+ file_path: lib/ninjs/command.rb
972
+ hash: 1226268473562701990
973
+ method_name:
974
+ :details:
975
+ :reek: found 20 code smells
976
+ :roodi: found 6 design problems
977
+ :churn: detected high level of churn (changed 4 times)
978
+ - :location: !ruby/object:MetricFu::Location
979
+ class_name:
980
+ file_path: lib/ninjs/command.rb:62
981
+ hash: -4423449451050696449
982
+ method_name:
983
+ :details:
984
+ :flog: complexity is 1.2
985
+ - :location: !ruby/object:MetricFu::Location
986
+ class_name:
987
+ file_path: lib/ninjs/command.rb:58
988
+ hash: -4204250169834615733
989
+ method_name:
990
+ :details:
991
+ :flog: complexity is 1.2
992
+ - :location: !ruby/object:MetricFu::Location
993
+ class_name:
994
+ file_path: lib/ninjs/project.rb
995
+ hash: 3647023904340769622
996
+ method_name:
997
+ :details:
998
+ :reek: found 18 code smells
999
+ :churn: detected high level of churn (changed 10 times)
1000
+ - :location: !ruby/object:MetricFu::Location
1001
+ class_name:
1002
+ file_path: lib/ninjs/configuration.rb
1003
+ hash: 2532969590475840271
1004
+ method_name:
1005
+ :details:
1006
+ :reek: found 6 code smells
1007
+ :churn: detected high level of churn (changed 4 times)
1008
+ - :location: !ruby/object:MetricFu::Location
1009
+ class_name:
1010
+ file_path: lib/ninjs.rb
1011
+ hash: -980950195912966806
1012
+ method_name:
1013
+ :details:
1014
+ :reek: found 2 code smells
1015
+ :churn: detected high level of churn (changed 3 times)
1016
+ - :location: !ruby/object:MetricFu::Location
1017
+ class_name:
1018
+ file_path: README
1019
+ hash: 2754479100159009457
1020
+ method_name:
1021
+ :details:
1022
+ :churn: detected high level of churn (changed 3 times)
1023
+ - :location: !ruby/object:MetricFu::Location
1024
+ class_name:
1025
+ file_path: README.textile
1026
+ hash: -3177939569131735759
1027
+ method_name:
1028
+ :details:
1029
+ :churn: detected high level of churn (changed 14 times)
1030
+ - :location: !ruby/object:MetricFu::Location
1031
+ class_name:
1032
+ file_path: ninjs.gemspec
1033
+ hash: -4285425189486032040
1034
+ method_name:
1035
+ :details:
1036
+ :churn: detected high level of churn (changed 12 times)
1037
+ - :location: !ruby/object:MetricFu::Location
1038
+ class_name:
1039
+ file_path: repository/ninjs/core/nin.js
1040
+ hash: 12498864664132727
1041
+ method_name:
1042
+ :details:
1043
+ :churn: detected high level of churn (changed 9 times)
1044
+ - :location: !ruby/object:MetricFu::Location
1045
+ class_name:
1046
+ file_path: bin/ninjs
1047
+ hash: 2227688542629874526
1048
+ method_name:
1049
+ :details:
1050
+ :churn: detected high level of churn (changed 7 times)
1051
+ - :location: !ruby/object:MetricFu::Location
1052
+ class_name:
1053
+ file_path: repository/ninjs/core/existence.js
1054
+ hash: -1582276373863666675
1055
+ method_name:
1056
+ :details:
1057
+ :churn: detected high level of churn (changed 5 times)
1058
+ - :location: !ruby/object:MetricFu::Location
1059
+ class_name:
1060
+ file_path: Rakefile
1061
+ hash: 1232634944947432315
1062
+ method_name:
1063
+ :details:
1064
+ :churn: detected high level of churn (changed 4 times)
1065
+ - :location: !ruby/object:MetricFu::Location
1066
+ class_name:
1067
+ file_path: spec/ninjs_spec.rb
1068
+ hash: -2958035423458474119
1069
+ method_name:
1070
+ :details:
1071
+ :churn: detected high level of churn (changed 3 times)
1072
+ - :location: !ruby/object:MetricFu::Location
1073
+ class_name:
1074
+ file_path: lib/ninjs/dependencies.rb
1075
+ hash: -70692012102886597
1076
+ method_name:
1077
+ :details:
1078
+ :churn: detected high level of churn (changed 3 times)
1079
+ - :location: !ruby/object:MetricFu::Location
1080
+ class_name:
1081
+ file_path: VERSION
1082
+ hash: -4198439901803279942
1083
+ method_name:
1084
+ :details:
1085
+ :churn: detected high level of churn (changed 3 times)
1086
+ - :location: !ruby/object:MetricFu::Location
1087
+ class_name:
1088
+ file_path: repository/ninjs/tests/index.html
1089
+ hash: 1597181272349808981
1090
+ method_name:
1091
+ :details:
1092
+ :churn: detected high level of churn (changed 3 times)
1093
+ - :location: !ruby/object:MetricFu::Location
1094
+ class_name:
1095
+ file_path: repository/ninjs/tests/ninjs.test.js
1096
+ hash: -678008153188994507
1097
+ method_name:
1098
+ :details:
1099
+ :churn: detected high level of churn (changed 3 times)
1100
+ - :location: !ruby/object:MetricFu::Location
1101
+ class_name:
1102
+ file_path: Gemfile
1103
+ hash: -2221263891863284361
1104
+ method_name:
1105
+ :details:
1106
+ :churn: detected high level of churn (changed 3 times)
1107
+ - :location: !ruby/object:MetricFu::Location
1108
+ class_name:
1109
+ file_path: repository/ninjs/core/module.js
1110
+ hash: -2239956335252670192
1111
+ method_name:
1112
+ :details:
1113
+ :churn: detected high level of churn (changed 4 times)
1114
+ - :location: !ruby/object:MetricFu::Location
1115
+ class_name:
1116
+ file_path: lib/ninjs/helpers.rb
1117
+ hash: 2097503988646729815
1118
+ method_name:
1119
+ :details:
1120
+ :reek: found 5 code smells
1121
+ :classes:
1122
+ - :location: !ruby/object:MetricFu::Location
1123
+ class_name: Command
1124
+ file_path: lib/ninjs/command.rb
1125
+ hash: 2838011799841310046
1126
+ method_name:
1127
+ :details:
1128
+ :reek: found 20 code smells
1129
+ :flog: average complexity is 29.2
1130
+ - :location: !ruby/object:MetricFu::Location
1131
+ class_name: main
1132
+ file_path:
1133
+ hash: -1148100423008014950
1134
+ method_name:
1135
+ :details:
1136
+ :flog: complexity is 19.5
1137
+ - :location: !ruby/object:MetricFu::Location
1138
+ class_name: Project
1139
+ file_path: lib/ninjs/project.rb
1140
+ hash: 1378710076057241310
1141
+ method_name:
1142
+ :details:
1143
+ :reek: found 18 code smells
1144
+ :flog: average complexity is 10.3
1145
+ - :location: !ruby/object:MetricFu::Location
1146
+ class_name: Configuration
1147
+ file_path: lib/ninjs/configuration.rb
1148
+ hash: 4246751921894336807
1149
+ method_name:
1150
+ :details:
1151
+ :reek: found 6 code smells
1152
+ :flog: average complexity is 7.6
1153
+ - :location: !ruby/object:MetricFu::Location
1154
+ class_name: Helpers
1155
+ file_path: lib/ninjs/helpers.rb
1156
+ hash: -4269368850743753410
1157
+ method_name:
1158
+ :details:
1159
+ :reek: found 5 code smells
1160
+ :flog: average complexity is 4.4
1161
+ - :location: !ruby/object:MetricFu::Location
1162
+ class_name: Ninjs
1163
+ file_path: lib/ninjs.rb
1164
+ hash: 4552949712146707024
1165
+ method_name:
1166
+ :details:
1167
+ :reek: found 2 code smells
1168
+ :flog: average complexity is 2.9
1169
+ - :location: !ruby/object:MetricFu::Location
1170
+ class_name: Manifest
1171
+ file_path:
1172
+ hash: 2560105087945688957
1173
+ method_name:
1174
+ :details:
1175
+ :flog: complexity is 1.1
1176
+ :methods:
1177
+ - :location: !ruby/object:MetricFu::Location
1178
+ class_name: Command
1179
+ file_path: lib/ninjs/command.rb
1180
+ hash: 2379858877935650423
1181
+ method_name: Command#generate
1182
+ simple_method_name: "#generate"
1183
+ :details:
1184
+ :reek: found 14 code smells
1185
+ :flog: complexity is 142.8
1186
+ - :location: !ruby/object:MetricFu::Location
1187
+ class_name: Command
1188
+ file_path: lib/ninjs/command.rb
1189
+ hash: 1242775225303543648
1190
+ method_name: Command#watch
1191
+ simple_method_name: "#watch"
1192
+ :details:
1193
+ :reek: found 4 code smells
1194
+ :flog: complexity is 43.3
1195
+ - :location: !ruby/object:MetricFu::Location
1196
+ class_name: Project
1197
+ file_path: lib/ninjs/project.rb:68
1198
+ hash: -4235584951268161661
1199
+ method_name: Project#create_ninjs_application_file
1200
+ simple_method_name: "#create_ninjs_application_file"
1201
+ :details:
1202
+ :flog: complexity is 20.4
1203
+ - :location: !ruby/object:MetricFu::Location
1204
+ class_name: Configuration
1205
+ file_path: lib/ninjs/configuration.rb
1206
+ hash: -454062300890963414
1207
+ method_name: Configuration#read
1208
+ simple_method_name: "#read"
1209
+ :details:
1210
+ :reek: found 2 code smells
1211
+ :flog: complexity is 19.3
1212
+ - :location: !ruby/object:MetricFu::Location
1213
+ class_name: main
1214
+ file_path:
1215
+ hash: 1322853618720836653
1216
+ method_name: main#none
1217
+ simple_method_name: "#none"
1218
+ :details:
1219
+ :flog: complexity is 19.5
1220
+ - :location: !ruby/object:MetricFu::Location
1221
+ class_name: Project
1222
+ file_path: lib/ninjs/project.rb
1223
+ hash: 2544175069248793559
1224
+ method_name: Project#compress_application
1225
+ simple_method_name: "#compress_application"
1226
+ :details:
1227
+ :reek: found 3 code smells
1228
+ :flog: complexity is 18.6
1229
+ - :location: !ruby/object:MetricFu::Location
1230
+ class_name: Project
1231
+ file_path: lib/ninjs/project.rb
1232
+ hash: -4094813195140088957
1233
+ method_name: Project#create_module_file
1234
+ simple_method_name: "#create_module_file"
1235
+ :details:
1236
+ :reek: found 1 code smells
1237
+ :flog: complexity is 15.8
1238
+ - :location: !ruby/object:MetricFu::Location
1239
+ class_name: Project
1240
+ file_path: lib/ninjs/project.rb
1241
+ hash: -2853028579072614407
1242
+ method_name: Project#compile_application_file
1243
+ simple_method_name: "#compile_application_file"
1244
+ :details:
1245
+ :reek: found 1 code smells
1246
+ :flog: complexity is 13.1
1247
+ - :location: !ruby/object:MetricFu::Location
1248
+ class_name: Project
1249
+ file_path: lib/ninjs/project.rb
1250
+ hash: 2896872952490039611
1251
+ method_name: Project#import_test_files
1252
+ simple_method_name: "#import_test_files"
1253
+ :details:
1254
+ :reek: found 1 code smells
1255
+ :flog: complexity is 13.0
1256
+ - :location: !ruby/object:MetricFu::Location
1257
+ class_name: Project
1258
+ file_path: lib/ninjs/project.rb
1259
+ hash: 569714648783963372
1260
+ method_name: Project#create_project_structure
1261
+ simple_method_name: "#create_project_structure"
1262
+ :details:
1263
+ :reek: found 1 code smells
1264
+ :flog: complexity is 12.1
1265
+ - :location: !ruby/object:MetricFu::Location
1266
+ class_name: Configuration
1267
+ file_path: lib/ninjs/configuration.rb
1268
+ hash: -4593438624714618387
1269
+ method_name: Configuration#conf_content
1270
+ simple_method_name: "#conf_content"
1271
+ :details:
1272
+ :reek: found 2 code smells
1273
+ :flog: complexity is 11.3
1274
+ - :location: !ruby/object:MetricFu::Location
1275
+ class_name: Project
1276
+ file_path: lib/ninjs/project.rb
1277
+ hash: -3360518414370726084
1278
+ method_name: Project#create
1279
+ simple_method_name: "#create"
1280
+ :details:
1281
+ :reek: found 1 code smells
1282
+ :flog: complexity is 11.0
1283
+ - :location: !ruby/object:MetricFu::Location
1284
+ class_name: Configuration
1285
+ file_path: lib/ninjs/configuration.rb:15
1286
+ hash: 871348935264605618
1287
+ method_name: Configuration#initialize
1288
+ simple_method_name: "#initialize"
1289
+ :details:
1290
+ :flog: complexity is 10.9
1291
+ - :location: !ruby/object:MetricFu::Location
1292
+ class_name: Project
1293
+ file_path: lib/ninjs/project.rb:110
1294
+ hash: 2219275672802611447
1295
+ method_name: Project#get_updated_modules
1296
+ simple_method_name: "#get_updated_modules"
1297
+ :details:
1298
+ :flog: complexity is 10.8
1299
+ - :location: !ruby/object:MetricFu::Location
1300
+ class_name: Project
1301
+ file_path: lib/ninjs/project.rb
1302
+ hash: -4167960372837610705
1303
+ method_name: Project#write_autoload
1304
+ simple_method_name: "#write_autoload"
1305
+ :details:
1306
+ :reek: found 1 code smells
1307
+ :flog: complexity is 10.7
1308
+ - :location: !ruby/object:MetricFu::Location
1309
+ class_name: Project
1310
+ file_path: lib/ninjs/project.rb
1311
+ hash: 1857911709819238635
1312
+ method_name: Project#write_dependencies
1313
+ simple_method_name: "#write_dependencies"
1314
+ :details:
1315
+ :reek: found 1 code smells
1316
+ :flog: complexity is 10.7
1317
+ - :location: !ruby/object:MetricFu::Location
1318
+ class_name: Project
1319
+ file_path: lib/ninjs/project.rb:10
1320
+ hash: -2027209178177296677
1321
+ method_name: Project#initialize
1322
+ simple_method_name: "#initialize"
1323
+ :details:
1324
+ :flog: complexity is 9.5
1325
+ - :location: !ruby/object:MetricFu::Location
1326
+ class_name: Project
1327
+ file_path: lib/ninjs/project.rb
1328
+ hash: -278021951760261839
1329
+ method_name: Project#update
1330
+ simple_method_name: "#update"
1331
+ :details:
1332
+ :reek: found 1 code smells
1333
+ :flog: complexity is 9.2
1334
+ - :location: !ruby/object:MetricFu::Location
1335
+ class_name: Project
1336
+ file_path: lib/ninjs/project.rb
1337
+ hash: 1277436666792242366
1338
+ method_name: Project#get_files_timestamps
1339
+ simple_method_name: "#get_files_timestamps"
1340
+ :details:
1341
+ :reek: found 3 code smells
1342
+ :flog: complexity is 8.0
1343
+ - :location: !ruby/object:MetricFu::Location
1344
+ class_name: Helpers
1345
+ file_path: lib/ninjs/helpers.rb
1346
+ hash: 4000279510095798336
1347
+ method_name: Helpers#create_module_filename
1348
+ simple_method_name: "#create_module_filename"
1349
+ :details:
1350
+ :reek: found 5 code smells
1351
+ :flog: complexity is 7.7
1352
+ - :location: !ruby/object:MetricFu::Location
1353
+ class_name: Project
1354
+ file_path: lib/ninjs/project.rb
1355
+ hash: -957961608018415789
1356
+ method_name: Project#update_application_file
1357
+ simple_method_name: "#update_application_file"
1358
+ :details:
1359
+ :reek: found 1 code smells
1360
+ :flog: complexity is 8.3
1361
+ - :location: !ruby/object:MetricFu::Location
1362
+ class_name: Command
1363
+ file_path: lib/ninjs/command.rb:51
1364
+ hash: 1633434585807236797
1365
+ method_name: Command#compile
1366
+ simple_method_name: "#compile"
1367
+ :details:
1368
+ :flog: complexity is 8.0
1369
+ - :location: !ruby/object:MetricFu::Location
1370
+ class_name: Project
1371
+ file_path: lib/ninjs/project.rb:55
1372
+ hash: 2379005698882585146
1373
+ method_name: Project#create_utility_lib_file
1374
+ simple_method_name: "#create_utility_lib_file"
1375
+ :details:
1376
+ :flog: complexity is 7.9
1377
+ - :location: !ruby/object:MetricFu::Location
1378
+ class_name: Project
1379
+ file_path: lib/ninjs/project.rb:42
1380
+ hash: -224320644733579368
1381
+ method_name: Project#create_ninjs_lib_file
1382
+ simple_method_name: "#create_ninjs_lib_file"
1383
+ :details:
1384
+ :flog: complexity is 7.9
1385
+ - :location: !ruby/object:MetricFu::Location
1386
+ class_name: Command
1387
+ file_path: lib/ninjs/command.rb
1388
+ hash: -4125027408577496380
1389
+ method_name: Command#create
1390
+ simple_method_name: "#create"
1391
+ :details:
1392
+ :reek: found 2 code smells
1393
+ :flog: complexity is 7.2
1394
+ - :location: !ruby/object:MetricFu::Location
1395
+ class_name: Project
1396
+ file_path: lib/ninjs/project.rb:169
1397
+ hash: -3044172292064564856
1398
+ method_name: Project#write_core
1399
+ simple_method_name: "#write_core"
1400
+ :details:
1401
+ :flog: complexity is 7.8
1402
+ - :location: !ruby/object:MetricFu::Location
1403
+ class_name: Project
1404
+ file_path: lib/ninjs/project.rb:95
1405
+ hash: 1449958332013816932
1406
+ method_name: Project#get_directory_script_files
1407
+ simple_method_name: "#get_directory_script_files"
1408
+ :details:
1409
+ :flog: complexity is 7.4
1410
+ - :location: !ruby/object:MetricFu::Location
1411
+ class_name: Project
1412
+ file_path: lib/ninjs/project.rb
1413
+ hash: 3790217471032069132
1414
+ method_name: Project#add_slashes
1415
+ simple_method_name: "#add_slashes"
1416
+ :details:
1417
+ :reek: found 2 code smells
1418
+ :flog: complexity is 6.1
1419
+ - :location: !ruby/object:MetricFu::Location
1420
+ class_name: Configuration
1421
+ file_path: lib/ninjs/configuration.rb:56
1422
+ hash: -4499907061543098456
1423
+ method_name: Configuration#create_conf_file
1424
+ simple_method_name: "#create_conf_file"
1425
+ :details:
1426
+ :flog: complexity is 5.5
1427
+ - :location: !ruby/object:MetricFu::Location
1428
+ class_name: Project
1429
+ file_path: lib/ninjs/project.rb:119
1430
+ hash: -2418081638870220949
1431
+ method_name: Project#compile_modules
1432
+ simple_method_name: "#compile_modules"
1433
+ :details:
1434
+ :flog: complexity is 5.0
1435
+ - :location: !ruby/object:MetricFu::Location
1436
+ class_name: Ninjs
1437
+ file_path: lib/ninjs.rb
1438
+ hash: 15571142165210466
1439
+ method_name: Ninjs#base_directory
1440
+ simple_method_name: "#base_directory"
1441
+ :details:
1442
+ :reek: found 1 code smells
1443
+ :flog: complexity is 4.5
1444
+ - :location: !ruby/object:MetricFu::Location
1445
+ class_name: Ninjs
1446
+ file_path: lib/ninjs.rb
1447
+ hash: -163268732157423480
1448
+ method_name: Ninjs#lib_directory
1449
+ simple_method_name: "#lib_directory"
1450
+ :details:
1451
+ :reek: found 1 code smells
1452
+ :flog: complexity is 4.5
1453
+ - :location: !ruby/object:MetricFu::Location
1454
+ class_name: Ninjs
1455
+ file_path: lib/ninjs.rb:18
1456
+ hash: -2369373858396973
1457
+ method_name: Ninjs#repository_root
1458
+ simple_method_name: "#repository_root"
1459
+ :details:
1460
+ :flog: complexity is 2.8
1461
+ - :location: !ruby/object:MetricFu::Location
1462
+ class_name: Configuration
1463
+ file_path: lib/ninjs/configuration.rb:64
1464
+ hash: -533769010296093769
1465
+ method_name: Configuration#update
1466
+ simple_method_name: "#update"
1467
+ :details:
1468
+ :flog: complexity is 2.7
1469
+ - :location: !ruby/object:MetricFu::Location
1470
+ class_name: Configuration
1471
+ file_path: lib/ninjs/configuration.rb:37
1472
+ hash: -1721982589444043109
1473
+ method_name: Configuration#create
1474
+ simple_method_name: "#create"
1475
+ :details:
1476
+ :flog: complexity is 2.7
1477
+ - :location: !ruby/object:MetricFu::Location
1478
+ class_name: Project
1479
+ file_path:
1480
+ hash: -633459408455641585
1481
+ method_name: Project#none
1482
+ simple_method_name: "#none"
1483
+ :details:
1484
+ :flog: complexity is 2.2
1485
+ - :location: !ruby/object:MetricFu::Location
1486
+ class_name: Ninjs
1487
+ file_path: lib/ninjs.rb:14
1488
+ hash: 720508568681807539
1489
+ method_name: Ninjs#root_directory
1490
+ simple_method_name: "#root_directory"
1491
+ :details:
1492
+ :flog: complexity is 1.3
1493
+ - :location: !ruby/object:MetricFu::Location
1494
+ class_name: Command
1495
+ file_path: lib/ninjs/command.rb:58
1496
+ hash: 3530214131547253983
1497
+ method_name: Command#import
1498
+ simple_method_name: "#import"
1499
+ :details:
1500
+ :flog: complexity is 1.2
1501
+ - :location: !ruby/object:MetricFu::Location
1502
+ class_name: Command
1503
+ file_path: lib/ninjs/command.rb:62
1504
+ hash: -1971882894351165363
1505
+ method_name: Command#help
1506
+ simple_method_name: "#help"
1507
+ :details:
1508
+ :flog: complexity is 1.2
1509
+ - :location: !ruby/object:MetricFu::Location
1510
+ class_name: Ninjs
1511
+ file_path:
1512
+ hash: 742301543749975763
1513
+ method_name: Ninjs#none
1514
+ simple_method_name: "#none"
1515
+ :details:
1516
+ :flog: complexity is 1.2
1517
+ - :location: !ruby/object:MetricFu::Location
1518
+ class_name: Command
1519
+ file_path:
1520
+ hash: -769043008249229427
1521
+ method_name: Command#none
1522
+ simple_method_name: "#none"
1523
+ :details:
1524
+ :flog: complexity is 1.1
1525
+ - :location: !ruby/object:MetricFu::Location
1526
+ class_name: Configuration
1527
+ file_path:
1528
+ hash: 1024692459046376565
1529
+ method_name: Configuration#none
1530
+ simple_method_name: "#none"
1531
+ :details:
1532
+ :flog: complexity is 1.1
1533
+ - :location: !ruby/object:MetricFu::Location
1534
+ class_name: Helpers
1535
+ file_path:
1536
+ hash: 3149951107976802783
1537
+ method_name: Helpers#none
1538
+ simple_method_name: "#none"
1539
+ :details:
1540
+ :flog: complexity is 1.1
1541
+ - :location: !ruby/object:MetricFu::Location
1542
+ class_name: Manifest
1543
+ file_path:
1544
+ hash: 805549200980624922
1545
+ method_name: Manifest#none
1546
+ simple_method_name: "#none"
1547
+ :details:
1548
+ :flog: complexity is 1.1