Created
March 22, 2012 00:40
-
-
Save ossareh/2154684 to your computer and use it in GitHub Desktop.
devise flay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . -type f -name '*.rb' | xargs flay | |
parse error on value "table_name" (tIDENTIFIER) | |
skipping ./lib/generators/active_record/templates/migration.rb | |
parse error on value "table_name" (tIDENTIFIER) | |
skipping ./lib/generators/active_record/templates/migration_existing.rb | |
Total score (lower is better) = 6797 | |
1) Similar code found in :iter (mass = 306) | |
./test/routes_test.rb:162 | |
./test/routes_test.rb:169 | |
./test/routes_test.rb:184 | |
./test/routes_test.rb:191 | |
./test/routes_test.rb:198 | |
./test/routes_test.rb:205 | |
./test/routes_test.rb:212 | |
./test/routes_test.rb:219 | |
./test/routes_test.rb:226 | |
2) Similar code found in :iter (mass = 189) | |
./test/routes_test.rb:4 | |
./test/routes_test.rb:9 | |
./test/routes_test.rb:14 | |
./test/routes_test.rb:24 | |
./test/routes_test.rb:38 | |
./test/routes_test.rb:57 | |
./test/routes_test.rb:71 | |
./test/routes_test.rb:76 | |
./test/routes_test.rb:89 | |
3) IDENTICAL code found in :iter (mass*3 = 162) | |
./test/mailers/reset_password_instructions_test.rb:68 | |
./test/mailers/confirmation_instructions_test.rb:65 | |
./test/mailers/unlock_instructions_test.rb:68 | |
4) IDENTICAL code found in :iter (mass*3 = 153) | |
./test/mailers/reset_password_instructions_test.rb:47 | |
./test/mailers/confirmation_instructions_test.rb:44 | |
./test/mailers/unlock_instructions_test.rb:47 | |
5) IDENTICAL code found in :if (mass*3 = 144) | |
./test/integration/registerable_test.rb:91 | |
./test/integration/registerable_test.rb:113 | |
./test/helpers/devise_helper_test.rb:38 | |
6) Similar code found in :iter (mass = 144) | |
./test/mailers/reset_password_instructions_test.rb:56 | |
./test/mailers/reset_password_instructions_test.rb:62 | |
./test/mailers/confirmation_instructions_test.rb:53 | |
./test/mailers/confirmation_instructions_test.rb:59 | |
./test/mailers/unlock_instructions_test.rb:56 | |
./test/mailers/unlock_instructions_test.rb:62 | |
7) Similar code found in :iter (mass = 136) | |
./test/integration/authenticatable_test.rb:92 | |
./test/integration/authenticatable_test.rb:104 | |
./test/integration/authenticatable_test.rb:116 | |
./test/integration/authenticatable_test.rb:161 | |
8) Similar code found in :iter (mass = 132) | |
./test/mapping_test.rb:79 | |
./test/mapping_test.rb:89 | |
9) Similar code found in :iter (mass = 126) | |
./test/models/confirmable_test.rb:230 | |
./test/models/recoverable_test.rb:88 | |
./test/models/lockable_test.rb:187 | |
10) Similar code found in :iter (mass = 119) | |
./test/controllers/helpers_test.rb:28 | |
./test/controllers/helpers_test.rb:33 | |
./test/controllers/helpers_test.rb:38 | |
./test/controllers/helpers_test.rb:43 | |
./test/controllers/helpers_test.rb:53 | |
./test/controllers/helpers_test.rb:58 | |
./test/controllers/helpers_test.rb:73 | |
11) Similar code found in :iter (mass = 112) | |
./test/routes_test.rb:29 | |
./test/routes_test.rb:48 | |
./test/routes_test.rb:62 | |
./test/routes_test.rb:81 | |
./test/routes_test.rb:85 | |
./test/routes_test.rb:117 | |
./test/routes_test.rb:121 | |
12) Similar code found in :defn (mass = 105) | |
./app/controllers/devise/unlocks_controller.rb:10 | |
./app/controllers/devise/confirmations_controller.rb:8 | |
./app/controllers/devise/passwords_controller.rb:10 | |
13) Similar code found in :iter (mass = 104) | |
./test/models/confirmable_test.rb:61 | |
./test/models/confirmable_test.rb:67 | |
./test/models/lockable_test.rb:150 | |
./test/models/lockable_test.rb:156 | |
14) Similar code found in :iter (mass = 102) | |
./test/models/confirmable_test.rb:222 | |
./test/models/recoverable_test.rb:80 | |
./test/models/lockable_test.rb:179 | |
15) IDENTICAL code found in :array (mass*2 = 100) | |
./lib/devise/rails/routes.rb:398 | |
./lib/devise/rails/routes.rb:402 | |
16) Similar code found in :iter (mass = 99) | |
./test/mailers/reset_password_instructions_test.rb:72 | |
./test/mailers/confirmation_instructions_test.rb:69 | |
./test/mailers/unlock_instructions_test.rb:72 | |
17) Similar code found in :iter (mass = 96) | |
./test/failure_app_test.rb:189 | |
./test/failure_app_test.rb:200 | |
18) IDENTICAL code found in :iter (mass*2 = 96) | |
./test/models/lockable_test.rb:11 | |
./test/models/lockable_test.rb:21 | |
19) Similar code found in :iter (mass = 92) | |
./test/integration/registerable_test.rb:249 | |
./test/integration/registerable_test.rb:258 | |
20) Similar code found in :iter (mass = 92) | |
./test/integration/registerable_test.rb:185 | |
./test/integration/registerable_test.rb:310 | |
21) Similar code found in :iter (mass = 90) | |
./test/controllers/helpers_test.rb:78 | |
./test/controllers/helpers_test.rb:84 | |
./test/controllers/helpers_test.rb:90 | |
22) Similar code found in :iter (mass = 88) | |
./test/integration/lockable_test.rb:107 | |
./test/integration/lockable_test.rb:121 | |
23) IDENTICAL code found in :iter (mass*2 = 88) | |
./test/mailers/reset_password_instructions_test.rb:78 | |
./test/mailers/confirmation_instructions_test.rb:90 | |
24) Similar code found in :iter (mass = 87) | |
./test/integration/confirmable_test.rb:29 | |
./test/integration/registerable_test.rb:69 | |
./test/integration/lockable_test.rb:29 | |
25) Similar code found in :iter (mass = 87) | |
./test/models/validatable_test.rb:50 | |
./test/models/validatable_test.rb:56 | |
./test/models/validatable_test.rb:79 | |
26) Similar code found in :iter (mass = 85) | |
./test/routes_test.rb:19 | |
./test/routes_test.rb:33 | |
./test/routes_test.rb:43 | |
./test/routes_test.rb:52 | |
./test/routes_test.rb:66 | |
27) Similar code found in :iter (mass = 84) | |
./test/integration/confirmable_test.rb:174 | |
./test/integration/lockable_test.rb:192 | |
28) Similar code found in :iter (mass = 84) | |
./test/models/recoverable_test.rb:74 | |
./test/models/recoverable_test.rb:119 | |
./test/models/recoverable_test.rb:125 | |
29) Similar code found in :iter (mass = 82) | |
./test/models/confirmable_test.rb:166 | |
./test/models/lockable_test.rb:79 | |
30) Similar code found in :iter (mass = 80) | |
./test/integration/confirmable_test.rb:188 | |
./test/integration/lockable_test.rb:207 | |
31) Similar code found in :iter (mass = 80) | |
./test/integration/registerable_test.rb:142 | |
./test/integration/registerable_test.rb:296 | |
32) Similar code found in :iter (mass = 76) | |
./test/integration/authenticatable_test.rb:540 | |
./test/integration/authenticatable_test.rb:554 | |
./test/integration/authenticatable_test.rb:568 | |
./test/integration/authenticatable_test.rb:574 | |
33) Similar code found in :iter (mass = 76) | |
./test/integration/recoverable_test.rb:51 | |
./test/integration/recoverable_test.rb:77 | |
34) Similar code found in :iter (mass = 72) | |
./test/integration/authenticatable_test.rb:546 | |
./test/integration/authenticatable_test.rb:560 | |
./test/integration/authenticatable_test.rb:580 | |
35) Similar code found in :iter (mass = 70) | |
./test/failure_app_test.rb:142 | |
./test/failure_app_test.rb:150 | |
36) Similar code found in :iter (mass = 68) | |
./test/integration/authenticatable_test.rb:29 | |
./test/integration/authenticatable_test.rb:39 | |
37) Similar code found in :iter (mass = 68) | |
./test/integration/authenticatable_test.rb:50 | |
./test/integration/authenticatable_test.rb:61 | |
38) Similar code found in :iter (mass = 68) | |
./test/integration/confirmable_test.rb:20 | |
./test/integration/lockable_test.rb:20 | |
39) Similar code found in :iter (mass = 66) | |
./test/integration/database_authenticatable_test.rb:14 | |
./test/integration/database_authenticatable_test.rb:36 | |
40) Similar code found in :iter (mass = 66) | |
./test/integration/registerable_test.rb:273 | |
./test/integration/registerable_test.rb:280 | |
41) Similar code found in :iter (mass = 66) | |
./test/models/recoverable_test.rb:13 | |
./test/models/lockable_test.rb:105 | |
42) IDENTICAL code found in :iter (mass*2 = 64) | |
./test/integration/recoverable_test.rb:143 | |
./test/integration/recoverable_test.rb:167 | |
43) Similar code found in :iter (mass = 63) | |
./test/models/confirmable_test.rb:30 | |
./test/models/lockable_test.rb:47 | |
./test/models/lockable_test.rb:98 | |
44) Similar code found in :iter (mass = 62) | |
./test/models/confirmable_test.rb:118 | |
./test/models/confirmable_test.rb:327 | |
45) Similar code found in :block (mass = 60) | |
./test/integration/http_authenticatable_test.rb:15 | |
./test/integration/http_authenticatable_test.rb:26 | |
46) Similar code found in :iter (mass = 60) | |
./test/models/database_authenticatable_test.rb:5 | |
./test/models/database_authenticatable_test.rb:15 | |
47) Similar code found in :block (mass = 58) | |
./test/integration/authenticatable_test.rb:418 | |
./test/integration/authenticatable_test.rb:426 | |
48) Similar code found in :iter (mass = 58) | |
./test/integration/authenticatable_test.rb:84 | |
./test/integration/authenticatable_test.rb:152 | |
49) Similar code found in :iter (mass = 58) | |
./test/integration/registerable_test.rb:235 | |
./test/integration/registerable_test.rb:242 | |
50) Similar code found in :iter (mass = 58) | |
./test/models/lockable_test.rb:242 | |
./test/models/lockable_test.rb:253 | |
51) Similar code found in :defn (mass = 56) | |
./lib/devise/rails/routes.rb:249 | |
./lib/devise/rails/routes.rb:272 | |
52) Similar code found in :class (mass = 56) | |
./lib/generators/devise/views_generator.rb:42 | |
./lib/generators/devise/views_generator.rb:68 | |
53) Similar code found in :iter (mass = 56) | |
./test/controllers/helpers_test.rb:163 | |
./test/controllers/helpers_test.rb:169 | |
54) Similar code found in :iter (mass = 56) | |
./test/models/database_authenticatable_test.rb:89 | |
./test/models/database_authenticatable_test.rb:134 | |
55) Similar code found in :iter (mass = 56) | |
./test/models/database_authenticatable_test.rb:59 | |
./test/models/encryptable_test.rb:46 | |
56) Similar code found in :attrasgn (mass = 54) | |
./lib/devise/rails/routes.rb:198 | |
./lib/devise/rails/routes.rb:199 | |
./lib/devise/rails/routes.rb:200 | |
57) Similar code found in :call (mass = 54) | |
./test/controllers/url_helpers_test.rb:19 | |
./test/controllers/url_helpers_test.rb:22 | |
58) Similar code found in :block (mass = 54) | |
./test/integration/recoverable_test.rb:209 | |
./test/integration/recoverable_test.rb:224 | |
59) Similar code found in :iter (mass = 52) | |
./test/integration/database_authenticatable_test.rb:4 | |
./test/integration/database_authenticatable_test.rb:26 | |
60) Similar code found in :iter (mass = 51) | |
./test/models/confirmable_test.rb:113 | |
./test/models/confirmable_test.rb:322 | |
./test/models/lockable_test.rb:169 | |
61) Similar code found in :class (mass = 51) | |
./test/models/registerable_test.rb:3 | |
./test/models/omniauthable_test.rb:3 | |
./test/models/authenticatable_test.rb:3 | |
62) Similar code found in :iter (mass = 50) | |
./test/integration/recoverable_test.rb:121 | |
./test/integration/authenticatable_test.rb:173 | |
63) Similar code found in :iter (mass = 50) | |
./test/integration/recoverable_test.rb:30 | |
./test/integration/recoverable_test.rb:66 | |
64) Similar code found in :iter (mass = 50) | |
./test/routes_test.rb:239 | |
./test/routes_test.rb:244 | |
65) Similar code found in :iter (mass = 48) | |
./lib/devise/param_filter.rb:11 | |
./lib/devise/param_filter.rb:17 | |
66) Similar code found in :iter (mass = 48) | |
./test/integration/authenticatable_test.rb:461 | |
./test/integration/authenticatable_test.rb:468 | |
67) Similar code found in :iter (mass = 48) | |
./test/integration/database_authenticatable_test.rb:55 | |
./test/integration/database_authenticatable_test.rb:64 | |
68) Similar code found in :defn (mass = 48) | |
./test/mailers/reset_password_instructions_test.rb:24 | |
./test/mailers/confirmation_instructions_test.rb:20 | |
./test/mailers/unlock_instructions_test.rb:24 | |
69) Similar code found in :iter (mass = 48) | |
./test/models/token_authenticatable_test.rb:5 | |
./test/models/token_authenticatable_test.rb:13 | |
70) Similar code found in :call (mass = 46) | |
./test/controllers/url_helpers_test.rb:26 | |
./test/controllers/url_helpers_test.rb:28 | |
71) Similar code found in :iter (mass = 46) | |
./test/models/database_authenticatable_test.rb:54 | |
./test/models/encryptable_test.rb:41 | |
72) Similar code found in :iter (mass = 46) | |
./test/models/serializable_test.rb:13 | |
./test/models/serializable_test.rb:18 | |
73) Similar code found in :iter (mass = 44) | |
./test/omniauth/config_test.rb:13 | |
./test/omniauth/config_test.rb:18 | |
74) Similar code found in :call (mass = 42) | |
./lib/devise/rails/routes.rb:355 | |
./lib/devise/rails/routes.rb:361 | |
75) Similar code found in :class (mass = 42) | |
./lib/generators/devise/views_generator.rb:54 | |
./lib/generators/devise/views_generator.rb:61 | |
76) Similar code found in :call (mass = 42) | |
./test/controllers/url_helpers_test.rb:13 | |
./test/controllers/url_helpers_test.rb:16 | |
77) Similar code found in :iter (mass = 42) | |
./test/encryptors_test.rb:4 | |
./test/encryptors_test.rb:10 | |
78) Similar code found in :iter (mass = 42) | |
./test/failure_app_test.rb:99 | |
./test/failure_app_test.rb:105 | |
79) Similar code found in :iter (mass = 42) | |
./test/integration/authenticatable_test.rb:478 | |
./test/integration/authenticatable_test.rb:517 | |
80) Similar code found in :iter (mass = 42) | |
./test/integration/authenticatable_test.rb:10 | |
./test/integration/authenticatable_test.rb:16 | |
81) Similar code found in :iter (mass = 42) | |
./test/models/confirmable_test.rb:107 | |
./test/models/recoverable_test.rb:68 | |
82) Similar code found in :iter (mass = 42) | |
./test/models/lockable_test.rb:124 | |
./test/models/lockable_test.rb:133 | |
83) Similar code found in :iter (mass = 42) | |
./test/models/serializable_test.rb:27 | |
./test/models/serializable_test.rb:32 | |
84) Similar code found in :if (mass = 40) | |
./lib/devise.rb:357 | |
./lib/devise.rb:362 | |
85) Similar code found in :defn (mass = 40) | |
./lib/devise/mapping.rb:137 | |
./lib/devise/mapping.rb:142 | |
86) Similar code found in :iter (mass = 40) | |
./test/integration/authenticatable_test.rb:72 | |
./test/integration/authenticatable_test.rb:78 | |
87) Similar code found in :call (mass = 40) | |
./test/integration/recoverable_test.rb:234 | |
./test/integration/recoverable_test.rb:250 | |
88) Similar code found in :iter (mass = 38) | |
./test/generators/views_generator_test.rb:13 | |
./test/generators/active_record_generator_test.rb:17 | |
89) Similar code found in :iter (mass = 36) | |
./lib/devise/mapping.rb:37 | |
./lib/devise/mapping.rb:39 | |
90) Similar code found in :block (mass = 34) | |
./test/integration/http_authenticatable_test.rb:36 | |
./test/integration/http_authenticatable_test.rb:50 | |
91) Similar code found in :iasgn (mass = 32) | |
./lib/devise/mapping.rb:151 | |
./lib/devise/mapping.rb:155 | |
92) Similar code found in :iter (mass = 32) | |
./test/controllers/url_helpers_test.rb:31 | |
./test/controllers/url_helpers_test.rb:37 | |
93) Similar code found in :block (mass = 32) | |
./test/failure_app_test.rb:87 | |
./test/failure_app_test.rb:117 | |
94) Similar code found in :block (mass = 32) | |
./test/integration/rememberable_test.rb:46 | |
./test/integration/rememberable_test.rb:55 | |
95) Similar code found in :iter (mass = 32) | |
./test/models/confirmable_test.rb:341 | |
./test/models/lockable_test.rb:230 | |
[ossareh devise (master)]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment