cucumber 3.0.0.pre.2 → 4.0.0.rc.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (541) hide show
  1. checksums.yaml +5 -5
  2. data/{History.md → CHANGELOG.md} +267 -14
  3. data/CONTRIBUTING.md +4 -21
  4. data/README.md +14 -15
  5. data/bin/cucumber +2 -1
  6. data/lib/autotest/cucumber.rb +1 -0
  7. data/lib/autotest/cucumber_mixin.rb +36 -40
  8. data/lib/autotest/cucumber_rails.rb +1 -0
  9. data/lib/autotest/cucumber_rails_rspec.rb +1 -0
  10. data/lib/autotest/cucumber_rails_rspec2.rb +1 -0
  11. data/lib/autotest/cucumber_rspec.rb +1 -0
  12. data/lib/autotest/cucumber_rspec2.rb +1 -0
  13. data/lib/autotest/discover.rb +1 -0
  14. data/lib/cucumber.rb +2 -1
  15. data/lib/cucumber/cli/configuration.rb +8 -7
  16. data/lib/cucumber/cli/main.rb +14 -14
  17. data/lib/cucumber/cli/options.rb +141 -120
  18. data/lib/cucumber/cli/profile_loader.rb +50 -29
  19. data/lib/cucumber/cli/rerun_file.rb +1 -0
  20. data/lib/cucumber/configuration.rb +40 -30
  21. data/lib/cucumber/constantize.rb +8 -10
  22. data/lib/cucumber/core_ext/string.rb +1 -0
  23. data/lib/cucumber/deprecate.rb +33 -9
  24. data/lib/cucumber/encoding.rb +2 -1
  25. data/lib/cucumber/errors.rb +10 -8
  26. data/lib/cucumber/events.rb +14 -9
  27. data/lib/cucumber/events/envelope.rb +9 -0
  28. data/lib/cucumber/events/gherkin_source_parsed.rb +11 -0
  29. data/lib/cucumber/events/gherkin_source_read.rb +1 -4
  30. data/lib/cucumber/events/hook_test_step_created.rb +13 -0
  31. data/lib/cucumber/events/step_activated.rb +6 -6
  32. data/lib/cucumber/events/step_definition_registered.rb +4 -8
  33. data/lib/cucumber/events/test_case_created.rb +13 -0
  34. data/lib/cucumber/events/test_case_finished.rb +1 -5
  35. data/lib/cucumber/events/test_case_ready.rb +12 -0
  36. data/lib/cucumber/events/{test_case_starting.rb → test_case_started.rb} +1 -5
  37. data/lib/cucumber/events/test_run_finished.rb +2 -3
  38. data/lib/cucumber/events/{test_run_starting.rb → test_run_started.rb} +3 -5
  39. data/lib/cucumber/events/test_step_created.rb +13 -0
  40. data/lib/cucumber/events/test_step_finished.rb +0 -6
  41. data/lib/cucumber/events/{test_step_starting.rb → test_step_started.rb} +2 -8
  42. data/lib/cucumber/file_specs.rb +7 -6
  43. data/lib/cucumber/filters.rb +3 -1
  44. data/lib/cucumber/filters/activate_steps.rb +11 -5
  45. data/lib/cucumber/filters/apply_after_hooks.rb +1 -0
  46. data/lib/cucumber/filters/apply_after_step_hooks.rb +1 -0
  47. data/lib/cucumber/filters/apply_around_hooks.rb +1 -0
  48. data/lib/cucumber/filters/apply_before_hooks.rb +1 -0
  49. data/lib/cucumber/filters/broadcast_test_case_ready_event.rb +12 -0
  50. data/lib/cucumber/filters/{broadcast_test_run_starting_event.rb → broadcast_test_run_started_event.rb} +4 -3
  51. data/lib/cucumber/filters/gated_receiver.rb +1 -2
  52. data/lib/cucumber/filters/prepare_world.rb +6 -13
  53. data/lib/cucumber/filters/quit.rb +3 -7
  54. data/lib/cucumber/filters/randomizer.rb +6 -7
  55. data/lib/cucumber/filters/retry.rb +2 -2
  56. data/lib/cucumber/filters/tag_limits.rb +2 -2
  57. data/lib/cucumber/filters/tag_limits/test_case_index.rb +1 -2
  58. data/lib/cucumber/filters/tag_limits/verifier.rb +3 -6
  59. data/lib/cucumber/formatter/ansicolor.rb +33 -37
  60. data/lib/cucumber/formatter/ast_lookup.rb +165 -0
  61. data/lib/cucumber/formatter/backtrace_filter.rb +10 -10
  62. data/lib/cucumber/formatter/console.rb +37 -74
  63. data/lib/cucumber/formatter/console_counts.rb +4 -9
  64. data/lib/cucumber/formatter/console_issues.rb +10 -7
  65. data/lib/cucumber/formatter/duration.rb +2 -1
  66. data/lib/cucumber/formatter/duration_extractor.rb +4 -2
  67. data/lib/cucumber/formatter/errors.rb +6 -0
  68. data/lib/cucumber/formatter/fail_fast.rb +9 -6
  69. data/lib/cucumber/formatter/fanout.rb +3 -3
  70. data/lib/cucumber/formatter/html.rb +11 -603
  71. data/lib/cucumber/formatter/http_io.rb +93 -0
  72. data/lib/cucumber/formatter/ignore_missing_messages.rb +2 -4
  73. data/lib/cucumber/formatter/interceptor.rb +10 -12
  74. data/lib/cucumber/formatter/io.rb +19 -12
  75. data/lib/cucumber/formatter/json.rb +106 -112
  76. data/lib/cucumber/formatter/junit.rb +81 -76
  77. data/lib/cucumber/formatter/message.rb +22 -0
  78. data/lib/cucumber/formatter/message_builder.rb +241 -0
  79. data/lib/cucumber/formatter/pretty.rb +353 -153
  80. data/lib/cucumber/formatter/progress.rb +30 -33
  81. data/lib/cucumber/formatter/query/hook_by_test_step.rb +31 -0
  82. data/lib/cucumber/formatter/query/pickle_by_test.rb +26 -0
  83. data/lib/cucumber/formatter/query/pickle_step_by_test_step.rb +26 -0
  84. data/lib/cucumber/formatter/query/step_definitions_by_test_step.rb +40 -0
  85. data/lib/cucumber/formatter/query/test_case_started_by_test_case.rb +40 -0
  86. data/lib/cucumber/formatter/rerun.rb +24 -5
  87. data/lib/cucumber/formatter/stepdefs.rb +2 -2
  88. data/lib/cucumber/formatter/steps.rb +4 -5
  89. data/lib/cucumber/formatter/summary.rb +18 -11
  90. data/lib/cucumber/formatter/unicode.rb +16 -18
  91. data/lib/cucumber/formatter/usage.rb +30 -26
  92. data/lib/cucumber/gherkin/data_table_parser.rb +18 -6
  93. data/lib/cucumber/gherkin/formatter/ansi_escapes.rb +83 -86
  94. data/lib/cucumber/gherkin/formatter/escaping.rb +13 -12
  95. data/lib/cucumber/gherkin/i18n.rb +1 -0
  96. data/lib/cucumber/gherkin/steps_parser.rb +18 -8
  97. data/lib/cucumber/glue/dsl.rb +13 -26
  98. data/lib/cucumber/glue/hook.rb +35 -11
  99. data/lib/cucumber/glue/invoke_in_world.rb +15 -20
  100. data/lib/cucumber/glue/proto_world.rb +48 -42
  101. data/lib/cucumber/glue/registry_and_more.rb +58 -23
  102. data/lib/cucumber/glue/snippet.rb +23 -26
  103. data/lib/cucumber/glue/step_definition.rb +51 -28
  104. data/lib/cucumber/glue/world_factory.rb +2 -4
  105. data/lib/cucumber/hooks.rb +27 -17
  106. data/lib/cucumber/load_path.rb +1 -0
  107. data/lib/cucumber/multiline_argument.rb +7 -17
  108. data/lib/cucumber/multiline_argument/data_table.rb +113 -82
  109. data/lib/cucumber/multiline_argument/data_table/diff_matrices.rb +8 -12
  110. data/lib/cucumber/multiline_argument/doc_string.rb +2 -1
  111. data/lib/cucumber/platform.rb +4 -3
  112. data/lib/cucumber/project_initializer.rb +2 -2
  113. data/lib/cucumber/rake/task.rb +28 -21
  114. data/lib/cucumber/rspec/disable_option_parser.rb +10 -8
  115. data/lib/cucumber/rspec/doubles.rb +1 -0
  116. data/lib/cucumber/running_test_case.rb +4 -54
  117. data/lib/cucumber/runtime.rb +32 -63
  118. data/lib/cucumber/runtime/after_hooks.rb +9 -4
  119. data/lib/cucumber/runtime/before_hooks.rb +9 -4
  120. data/lib/cucumber/runtime/for_programming_languages.rb +12 -9
  121. data/lib/cucumber/runtime/step_hooks.rb +5 -2
  122. data/lib/cucumber/runtime/support_code.rb +16 -22
  123. data/lib/cucumber/runtime/user_interface.rb +12 -23
  124. data/lib/cucumber/step_definition_light.rb +6 -4
  125. data/lib/cucumber/step_definitions.rb +3 -2
  126. data/lib/cucumber/step_match.rb +29 -14
  127. data/lib/cucumber/step_match_search.rb +10 -10
  128. data/lib/cucumber/term/ansicolor.rb +39 -39
  129. data/lib/cucumber/unit.rb +1 -0
  130. data/lib/cucumber/version +1 -1
  131. data/lib/simplecov_setup.rb +1 -0
  132. metadata +206 -678
  133. data/.coveralls.yml +0 -1
  134. data/.cucumberproignore +0 -6
  135. data/.github/ISSUE_TEMPLATE.md +0 -48
  136. data/.github/PULL_REQUEST_TEMPLATE.md +0 -39
  137. data/.rspec +0 -1
  138. data/.rubocop.yml +0 -13
  139. data/.rubocop_todo.yml +0 -1075
  140. data/.ruby-gemset +0 -1
  141. data/.travis.yml +0 -69
  142. data/.yardopts +0 -1
  143. data/Gemfile +0 -28
  144. data/Rakefile +0 -32
  145. data/appveyor.yml +0 -26
  146. data/cucumber.gemspec +0 -52
  147. data/cucumber.yml +0 -19
  148. data/examples/i18n/README.textile +0 -3
  149. data/examples/i18n/Rakefile +0 -33
  150. data/examples/i18n/ar/Rakefile +0 -6
  151. data/examples/i18n/ar/features/addition.feature +0 -17
  152. data/examples/i18n/ar/features/step_definitions/calculator_steps.rb +0 -24
  153. data/examples/i18n/ar/lib/calculator.rb +0 -11
  154. data/examples/i18n/bg/Rakefile +0 -6
  155. data/examples/i18n/bg/features/addition.feature +0 -12
  156. data/examples/i18n/bg/features/consecutive_calculations.feature +0 -19
  157. data/examples/i18n/bg/features/division.feature +0 -17
  158. data/examples/i18n/bg/features/step_definitions/calculator_steps.rb +0 -24
  159. data/examples/i18n/bg/features/support/env.rb +0 -5
  160. data/examples/i18n/bg/features/support/world.rb +0 -8
  161. data/examples/i18n/bg/lib/calculator.rb +0 -24
  162. data/examples/i18n/ca/Rakefile +0 -6
  163. data/examples/i18n/ca/features/step_definitions/calculator_steps.rb +0 -21
  164. data/examples/i18n/ca/features/suma.feature +0 -17
  165. data/examples/i18n/ca/lib/calculadora.rb +0 -16
  166. data/examples/i18n/cs/Rakefile +0 -6
  167. data/examples/i18n/cs/features/addition.feature +0 -17
  168. data/examples/i18n/cs/features/division.feature +0 -11
  169. data/examples/i18n/cs/features/step_definitions/calculator_steps.rb +0 -24
  170. data/examples/i18n/cs/lib/calculator.rb +0 -14
  171. data/examples/i18n/da/Rakefile +0 -6
  172. data/examples/i18n/da/features/sammenlaegning.feature +0 -18
  173. data/examples/i18n/da/features/step_definitions/lommeregner_steps.rb +0 -24
  174. data/examples/i18n/da/lib/lommeregner.rb +0 -11
  175. data/examples/i18n/de/Rakefile +0 -6
  176. data/examples/i18n/de/features/addition.feature +0 -17
  177. data/examples/i18n/de/features/division.feature +0 -10
  178. data/examples/i18n/de/features/step_definitions/calculator_steps.rb +0 -24
  179. data/examples/i18n/de/lib/calculator.rb +0 -14
  180. data/examples/i18n/el/Rakefile +0 -6
  181. data/examples/i18n/el/features/addition.feature +0 -17
  182. data/examples/i18n/el/features/division.feature +0 -10
  183. data/examples/i18n/el/features/step_definitions/calculator_steps.rb +0 -24
  184. data/examples/i18n/el/lib/calculator.rb +0 -14
  185. data/examples/i18n/en-lol/Rakefile +0 -4
  186. data/examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb +0 -16
  187. data/examples/i18n/en-lol/features/stuffing.feature +0 -8
  188. data/examples/i18n/en-lol/features/support/env.rb +0 -7
  189. data/examples/i18n/en-lol/lib/basket.rb +0 -12
  190. data/examples/i18n/en-lol/lib/belly.rb +0 -11
  191. data/examples/i18n/en/Rakefile +0 -6
  192. data/examples/i18n/en/features/addition.feature +0 -17
  193. data/examples/i18n/en/features/division.feature +0 -10
  194. data/examples/i18n/en/features/step_definitions/calculator_steps.rb +0 -24
  195. data/examples/i18n/en/lib/calculator.rb +0 -14
  196. data/examples/i18n/eo/Rakefile +0 -6
  197. data/examples/i18n/eo/features/adicio.feature +0 -17
  198. data/examples/i18n/eo/features/divido.feature +0 -10
  199. data/examples/i18n/eo/features/step_definitions/calculator_steps.rb +0 -24
  200. data/examples/i18n/eo/lib/calculator.rb +0 -14
  201. data/examples/i18n/es/Rakefile +0 -6
  202. data/examples/i18n/es/features/adicion.feature +0 -17
  203. data/examples/i18n/es/features/step_definitions/calculador_steps.rb +0 -21
  204. data/examples/i18n/es/lib/calculador.rb +0 -14
  205. data/examples/i18n/et/Rakefile +0 -6
  206. data/examples/i18n/et/features/jagamine.feature +0 -10
  207. data/examples/i18n/et/features/liitmine.feature +0 -17
  208. data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +0 -24
  209. data/examples/i18n/et/lib/kalkulaator.rb +0 -14
  210. data/examples/i18n/fi/Rakefile +0 -6
  211. data/examples/i18n/fi/features/jakolasku.feature +0 -10
  212. data/examples/i18n/fi/features/step_definitions/laskin_steps.rb +0 -24
  213. data/examples/i18n/fi/features/yhteenlasku.feature +0 -17
  214. data/examples/i18n/fi/lib/laskin.rb +0 -14
  215. data/examples/i18n/fr/Rakefile +0 -8
  216. data/examples/i18n/fr/features/addition.feature +0 -18
  217. data/examples/i18n/fr/features/addition2.feature +0 -17
  218. data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +0 -32
  219. data/examples/i18n/fr/features/support/env.rb +0 -5
  220. data/examples/i18n/fr/lib/calculatrice.rb +0 -10
  221. data/examples/i18n/he/Rakefile +0 -6
  222. data/examples/i18n/he/features/addition.feature +0 -17
  223. data/examples/i18n/he/features/division.feature +0 -10
  224. data/examples/i18n/he/features/step_definitions/calculator_steps.rb +0 -24
  225. data/examples/i18n/he/lib/calculator.rb +0 -15
  226. data/examples/i18n/hi/Rakefile +0 -6
  227. data/examples/i18n/hi/features/addition.feature +0 -16
  228. data/examples/i18n/hi/features/division.feature +0 -10
  229. data/examples/i18n/hi/features/step_definitions/calculator_steps.rb +0 -24
  230. data/examples/i18n/hi/lib/calculator.rb +0 -15
  231. data/examples/i18n/ht/Rakefile +0 -6
  232. data/examples/i18n/ht/features/adisyon.feature +0 -17
  233. data/examples/i18n/ht/features/divizyon.feature +0 -10
  234. data/examples/i18n/ht/features/step_definitions/kalkilatris_steps.rb +0 -25
  235. data/examples/i18n/ht/lib/kalkilatris.rb +0 -14
  236. data/examples/i18n/hu/Rakefile +0 -6
  237. data/examples/i18n/hu/features/osszeadas.feature +0 -17
  238. data/examples/i18n/hu/features/osztas.feature +0 -10
  239. data/examples/i18n/hu/features/step_definitions/calculator_steps.rb +0 -25
  240. data/examples/i18n/hu/lib/calculator.rb +0 -14
  241. data/examples/i18n/id/Rakefile +0 -6
  242. data/examples/i18n/id/features/addition.feature +0 -17
  243. data/examples/i18n/id/features/division.feature +0 -10
  244. data/examples/i18n/id/features/step_definitions/calculator_steps.rb +0 -24
  245. data/examples/i18n/id/lib/calculator.rb +0 -14
  246. data/examples/i18n/it/Rakefile +0 -6
  247. data/examples/i18n/it/features/somma.feature +0 -11
  248. data/examples/i18n/it/features/step_definitions/calcolatrice_steps.rb +0 -24
  249. data/examples/i18n/it/lib/calcolatrice.rb +0 -11
  250. data/examples/i18n/ja/Rakefile +0 -6
  251. data/examples/i18n/ja/features/addition.feature +0 -17
  252. data/examples/i18n/ja/features/division.feature +0 -10
  253. data/examples/i18n/ja/features/step_definitions/calculator_steps.rb +0 -19
  254. data/examples/i18n/ja/features/support/env.rb +0 -5
  255. data/examples/i18n/ja/lib/calculator.rb +0 -14
  256. data/examples/i18n/ko/Rakefile +0 -6
  257. data/examples/i18n/ko/features/addition.feature +0 -17
  258. data/examples/i18n/ko/features/division.feature +0 -11
  259. data/examples/i18n/ko/features/step_definitions/calculator_steps.rb +0 -24
  260. data/examples/i18n/ko/lib/calculator.rb +0 -14
  261. data/examples/i18n/lt/Rakefile +0 -6
  262. data/examples/i18n/lt/features/addition.feature +0 -17
  263. data/examples/i18n/lt/features/division.feature +0 -10
  264. data/examples/i18n/lt/features/step_definitions/calculator_steps.rb +0 -24
  265. data/examples/i18n/lt/lib/calculator.rb +0 -14
  266. data/examples/i18n/lv/Rakefile +0 -6
  267. data/examples/i18n/lv/features/addition.feature +0 -17
  268. data/examples/i18n/lv/features/division.feature +0 -10
  269. data/examples/i18n/lv/features/step_definitions/calculator_steps.rb +0 -24
  270. data/examples/i18n/lv/lib/calculator.rb +0 -14
  271. data/examples/i18n/no/Rakefile +0 -6
  272. data/examples/i18n/no/features/step_definitions/kalkulator_steps.rb +0 -17
  273. data/examples/i18n/no/features/summering.feature +0 -19
  274. data/examples/i18n/no/features/support/env.rb +0 -6
  275. data/examples/i18n/no/lib/kalkulator.rb +0 -11
  276. data/examples/i18n/pl/Rakefile +0 -6
  277. data/examples/i18n/pl/features/addition.feature +0 -17
  278. data/examples/i18n/pl/features/division.feature +0 -10
  279. data/examples/i18n/pl/features/step_definitions/calculator_steps.rb +0 -24
  280. data/examples/i18n/pl/features/support/env.rb +0 -5
  281. data/examples/i18n/pl/lib/calculator.rb +0 -14
  282. data/examples/i18n/pt/Rakefile +0 -6
  283. data/examples/i18n/pt/features/adicao.feature +0 -11
  284. data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +0 -20
  285. data/examples/i18n/pt/features/support/env.rb +0 -5
  286. data/examples/i18n/pt/lib/calculadora.rb +0 -10
  287. data/examples/i18n/ro/Rakefile +0 -6
  288. data/examples/i18n/ro/features/adunare.feature +0 -12
  289. data/examples/i18n/ro/features/step_definitions/calculator_steps.rb +0 -21
  290. data/examples/i18n/ro/lib/calculator.rb +0 -11
  291. data/examples/i18n/ru/Rakefile +0 -6
  292. data/examples/i18n/ru/features/addition.feature +0 -11
  293. data/examples/i18n/ru/features/consecutive_calculations.feature +0 -17
  294. data/examples/i18n/ru/features/division.feature +0 -16
  295. data/examples/i18n/ru/features/step_definitions/calculator_steps.rb +0 -19
  296. data/examples/i18n/ru/features/support/env.rb +0 -5
  297. data/examples/i18n/ru/features/support/world.rb +0 -8
  298. data/examples/i18n/ru/lib/calculator.rb +0 -24
  299. data/examples/i18n/sk/Rakefile +0 -6
  300. data/examples/i18n/sk/features/addition.feature +0 -17
  301. data/examples/i18n/sk/features/division.feature +0 -10
  302. data/examples/i18n/sk/features/step_definitions/calculator_steps.rb +0 -24
  303. data/examples/i18n/sk/lib/calculator.rb +0 -14
  304. data/examples/i18n/sr-Cyrl/Rakefile +0 -6
  305. data/examples/i18n/sr-Cyrl/features/sabiranje.feature +0 -18
  306. data/examples/i18n/sr-Cyrl/features/step_definitions/calculator_steps.rb +0 -20
  307. data/examples/i18n/sr-Cyrl/features/support/env.rb +0 -5
  308. data/examples/i18n/sr-Cyrl/lib/calculator.rb +0 -12
  309. data/examples/i18n/sr-Latn/Rakefile +0 -6
  310. data/examples/i18n/sr-Latn/features/sabiranje.feature +0 -18
  311. data/examples/i18n/sr-Latn/features/step_definitions/calculator_steps.rb +0 -24
  312. data/examples/i18n/sr-Latn/lib/calculator.rb +0 -12
  313. data/examples/i18n/sv/Rakefile +0 -6
  314. data/examples/i18n/sv/features/step_definitions/kalkulator_steps.rb +0 -24
  315. data/examples/i18n/sv/features/summering.feature +0 -18
  316. data/examples/i18n/sv/lib/kalkulator.rb +0 -11
  317. data/examples/i18n/tr/Rakefile +0 -6
  318. data/examples/i18n/tr/features/bolme.feature +0 -10
  319. data/examples/i18n/tr/features/step_definitions/hesap_makinesi_adimlari.rb +0 -24
  320. data/examples/i18n/tr/features/toplama.feature +0 -18
  321. data/examples/i18n/tr/lib/hesap_makinesi.rb +0 -15
  322. data/examples/i18n/uk/Rakefile +0 -6
  323. data/examples/i18n/uk/features/addition.feature +0 -11
  324. data/examples/i18n/uk/features/consecutive_calculations.feature +0 -17
  325. data/examples/i18n/uk/features/division.feature +0 -16
  326. data/examples/i18n/uk/features/step_definitions/calculator_steps.rb +0 -19
  327. data/examples/i18n/uk/features/support/env.rb +0 -5
  328. data/examples/i18n/uk/features/support/world.rb +0 -8
  329. data/examples/i18n/uk/lib/calculator.rb +0 -24
  330. data/examples/i18n/uz/Rakefile +0 -6
  331. data/examples/i18n/uz/features/addition.feature +0 -10
  332. data/examples/i18n/uz/features/consecutive_calculations.feature +0 -17
  333. data/examples/i18n/uz/features/division.feature +0 -17
  334. data/examples/i18n/uz/features/step_definitions/calculator_steps.rb +0 -19
  335. data/examples/i18n/uz/features/support/env.rb +0 -5
  336. data/examples/i18n/uz/features/support/world.rb +0 -8
  337. data/examples/i18n/uz/lib/calculator.rb +0 -24
  338. data/examples/i18n/zh-CN/Rakefile +0 -4
  339. data/examples/i18n/zh-CN/features/addition.feature +0 -18
  340. data/examples/i18n/zh-CN/features/step_definitions/calculator_steps.rb +0 -26
  341. data/examples/i18n/zh-CN/lib/calculator.rb +0 -10
  342. data/examples/i18n/zh-TW/Rakefile +0 -4
  343. data/examples/i18n/zh-TW/features/addition.feature +0 -17
  344. data/examples/i18n/zh-TW/features/division.feature +0 -11
  345. data/examples/i18n/zh-TW/features/step_definitions/calculator_steps.rb +0 -24
  346. data/examples/i18n/zh-TW/lib/calculator.rb +0 -14
  347. data/examples/rspec_doubles/Rakefile +0 -4
  348. data/examples/rspec_doubles/features/mocking.feature +0 -9
  349. data/examples/rspec_doubles/features/step_definitions/calvin_steps.rb +0 -19
  350. data/examples/rspec_doubles/features/support/env.rb +0 -12
  351. data/examples/sinatra/README.textile +0 -13
  352. data/examples/sinatra/Rakefile +0 -6
  353. data/examples/sinatra/app.rb +0 -14
  354. data/examples/sinatra/features/add.feature +0 -11
  355. data/examples/sinatra/features/step_definitions/add_steps.rb +0 -15
  356. data/examples/sinatra/features/support/env.rb +0 -10
  357. data/examples/sinatra/views/add.erb +0 -7
  358. data/examples/sinatra/views/layout.erb +0 -8
  359. data/examples/tcl/README.textile +0 -11
  360. data/examples/tcl/Rakefile +0 -6
  361. data/examples/tcl/features/fibonnacci.feature +0 -17
  362. data/examples/tcl/features/step_definitions/fib_steps.rb +0 -7
  363. data/examples/tcl/features/support/env.rb +0 -6
  364. data/examples/tcl/src/fib.tcl +0 -3
  365. data/examples/test_unit/Gemfile +0 -4
  366. data/examples/test_unit/Rakefile +0 -6
  367. data/examples/test_unit/features/step_definitions/test_unit_steps.rb +0 -20
  368. data/examples/test_unit/features/test_unit.feature +0 -9
  369. data/examples/watir/README.textile +0 -16
  370. data/examples/watir/Rakefile +0 -12
  371. data/examples/watir/cucumber.yml +0 -1
  372. data/examples/watir/features/search.feature +0 -12
  373. data/examples/watir/features/step_definitions/search_steps.rb +0 -26
  374. data/examples/watir/features/support/env.rb +0 -35
  375. data/examples/watir/features/support/screenshots.rb +0 -47
  376. data/features/docs/api/list_step_defs_as_json.feature +0 -64
  377. data/features/docs/api/listen_for_events.feature +0 -59
  378. data/features/docs/api/run_cli_main_with_existing_runtime.feature +0 -27
  379. data/features/docs/cli/backtraces.feature +0 -36
  380. data/features/docs/cli/dry_run.feature +0 -73
  381. data/features/docs/cli/exclude_files.feature +0 -18
  382. data/features/docs/cli/execute_with_tag_filter.feature +0 -117
  383. data/features/docs/cli/fail_fast.feature +0 -48
  384. data/features/docs/cli/finding_steps.feature +0 -28
  385. data/features/docs/cli/help.feature +0 -8
  386. data/features/docs/cli/i18n.feature +0 -42
  387. data/features/docs/cli/randomize.feature +0 -140
  388. data/features/docs/cli/require.feature +0 -27
  389. data/features/docs/cli/retry_failing_tests.feature +0 -92
  390. data/features/docs/cli/run_scenarios_matching_name.feature +0 -105
  391. data/features/docs/cli/run_specific_scenarios.feature +0 -77
  392. data/features/docs/cli/showing_differences.feature +0 -43
  393. data/features/docs/cli/specifying_multiple_formatters.feature +0 -68
  394. data/features/docs/cli/strict_mode.feature +0 -70
  395. data/features/docs/defining_steps/nested_steps.feature +0 -181
  396. data/features/docs/defining_steps/nested_steps_i18n.feature +0 -37
  397. data/features/docs/defining_steps/nested_steps_with_second_arg.feature +0 -56
  398. data/features/docs/defining_steps/one_line_step_definitions.feature +0 -65
  399. data/features/docs/defining_steps/printing_messages.feature +0 -147
  400. data/features/docs/defining_steps/skip_scenario.feature +0 -31
  401. data/features/docs/defining_steps/snippets.feature +0 -56
  402. data/features/docs/defining_steps/table_diffing.feature +0 -50
  403. data/features/docs/events/gherkin_source_read_event.feature +0 -43
  404. data/features/docs/events/step_activated_event.feature +0 -36
  405. data/features/docs/events/step_definition_registered_event.feature +0 -29
  406. data/features/docs/events/test_case_finished_event.feature +0 -35
  407. data/features/docs/events/test_case_starting_event.feature +0 -54
  408. data/features/docs/events/test_run_finished_event.feature +0 -40
  409. data/features/docs/events/test_run_starting_event.feature +0 -41
  410. data/features/docs/events/test_step_finished_event.feature +0 -47
  411. data/features/docs/events/test_step_starting_event.feature +0 -43
  412. data/features/docs/exception_in_after_hook.feature +0 -127
  413. data/features/docs/exception_in_after_step_hook.feature +0 -104
  414. data/features/docs/exception_in_around_hook.feature +0 -80
  415. data/features/docs/exception_in_before_hook.feature +0 -98
  416. data/features/docs/extending_cucumber/custom_filter.feature +0 -29
  417. data/features/docs/extending_cucumber/custom_formatter.feature +0 -122
  418. data/features/docs/formatters/api_methods.feature +0 -37
  419. data/features/docs/formatters/formatter_step_file_colon_line.feature +0 -44
  420. data/features/docs/formatters/html_formatter.feature +0 -91
  421. data/features/docs/formatters/json_formatter.feature +0 -767
  422. data/features/docs/formatters/junit_formatter.feature +0 -455
  423. data/features/docs/formatters/pretty_formatter.feature +0 -74
  424. data/features/docs/formatters/progress_formatter.feature +0 -32
  425. data/features/docs/formatters/rerun_formatter.feature +0 -190
  426. data/features/docs/formatters/summary_formatter.feature +0 -35
  427. data/features/docs/formatters/usage_formatter.feature +0 -101
  428. data/features/docs/getting_started.feature +0 -28
  429. data/features/docs/gherkin/background.feature +0 -548
  430. data/features/docs/gherkin/doc_strings.feature +0 -76
  431. data/features/docs/gherkin/expand_option_for_outlines.feature +0 -47
  432. data/features/docs/gherkin/language_from_header.feature +0 -32
  433. data/features/docs/gherkin/outlines.feature +0 -160
  434. data/features/docs/gherkin/unicode_table.feature +0 -33
  435. data/features/docs/gherkin/using_descriptions.feature +0 -83
  436. data/features/docs/gherkin/using_star_notation.feature +0 -37
  437. data/features/docs/iso-8859-1.feature +0 -6
  438. data/features/docs/post_configuration_hook.feature +0 -33
  439. data/features/docs/profiles.feature +0 -120
  440. data/features/docs/rake_task.feature +0 -146
  441. data/features/docs/raketask.feature +0 -46
  442. data/features/docs/work_in_progress.feature +0 -157
  443. data/features/docs/writing_support_code/after_hooks.feature +0 -102
  444. data/features/docs/writing_support_code/after_step_hooks.feature +0 -55
  445. data/features/docs/writing_support_code/around_hooks.feature +0 -266
  446. data/features/docs/writing_support_code/before_hook.feature +0 -66
  447. data/features/docs/writing_support_code/hook_order.feature +0 -63
  448. data/features/docs/writing_support_code/load_path.feature +0 -17
  449. data/features/docs/writing_support_code/parameter_types.feature +0 -75
  450. data/features/docs/writing_support_code/state.feature +0 -32
  451. data/features/docs/writing_support_code/tagged_hooks.feature +0 -95
  452. data/features/docs/writing_support_code/world.feature +0 -129
  453. data/features/lib/step_definitions/aruba_steps.rb +0 -21
  454. data/features/lib/step_definitions/cli_steps.rb +0 -4
  455. data/features/lib/step_definitions/cucumber_steps.rb +0 -75
  456. data/features/lib/step_definitions/iso-8859-1_steps.rb +0 -13
  457. data/features/lib/step_definitions/json_steps.rb +0 -8
  458. data/features/lib/step_definitions/junit_steps.rb +0 -14
  459. data/features/lib/step_definitions/language_steps.rb +0 -9
  460. data/features/lib/step_definitions/profile_steps.rb +0 -16
  461. data/features/lib/step_definitions/retry_steps.rb +0 -55
  462. data/features/lib/step_definitions/ruby_steps.rb +0 -4
  463. data/features/lib/support/env.rb +0 -22
  464. data/features/lib/support/fake_wire_server.rb +0 -86
  465. data/features/lib/support/feature_factory.rb +0 -68
  466. data/features/lib/support/normalise_output.rb +0 -52
  467. data/features/lib/support/parameter_types.rb +0 -8
  468. data/gem_tasks/contributors.rake +0 -19
  469. data/gem_tasks/cov.rake +0 -6
  470. data/gem_tasks/downloads.rb +0 -8
  471. data/gem_tasks/environment.rake +0 -4
  472. data/gem_tasks/examples.rake +0 -12
  473. data/gem_tasks/fix_cr_lf.rake +0 -11
  474. data/gem_tasks/flog.rake +0 -5
  475. data/gem_tasks/rspec.rake +0 -7
  476. data/gem_tasks/sass.rake +0 -5
  477. data/gem_tasks/stats +0 -16
  478. data/gem_tasks/versions.txt +0 -74
  479. data/lib/cucumber/formatter/cucumber.css +0 -286
  480. data/lib/cucumber/formatter/cucumber.sass +0 -247
  481. data/lib/cucumber/formatter/hook_query_visitor.rb +0 -41
  482. data/lib/cucumber/formatter/html_builder.rb +0 -110
  483. data/lib/cucumber/formatter/inline-js.js +0 -30
  484. data/lib/cucumber/formatter/jquery-min.js +0 -154
  485. data/lib/cucumber/formatter/json_pretty.rb +0 -11
  486. data/lib/cucumber/formatter/legacy_api/adapter.rb +0 -1012
  487. data/lib/cucumber/formatter/legacy_api/ast.rb +0 -386
  488. data/lib/cucumber/formatter/legacy_api/results.rb +0 -50
  489. data/lib/cucumber/formatter/legacy_api/runtime_facade.rb +0 -32
  490. data/lib/cucumber/step_argument.rb +0 -24
  491. data/scripts/invite-collaborator +0 -40
  492. data/scripts/update-history +0 -83
  493. data/spec/cucumber/cli/configuration_spec.rb +0 -434
  494. data/spec/cucumber/cli/main_spec.rb +0 -84
  495. data/spec/cucumber/cli/options_spec.rb +0 -445
  496. data/spec/cucumber/cli/profile_loader_spec.rb +0 -66
  497. data/spec/cucumber/cli/rerun_spec.rb +0 -86
  498. data/spec/cucumber/configuration_spec.rb +0 -148
  499. data/spec/cucumber/constantize_spec.rb +0 -20
  500. data/spec/cucumber/events_spec.rb +0 -9
  501. data/spec/cucumber/file_specs_spec.rb +0 -61
  502. data/spec/cucumber/filters/activate_steps_spec.rb +0 -152
  503. data/spec/cucumber/filters/gated_receiver_spec.rb +0 -48
  504. data/spec/cucumber/filters/retry_spec.rb +0 -98
  505. data/spec/cucumber/filters/tag_limits/test_case_index_spec.rb +0 -39
  506. data/spec/cucumber/filters/tag_limits/verifier_spec.rb +0 -58
  507. data/spec/cucumber/filters/tag_limits_spec.rb +0 -60
  508. data/spec/cucumber/formatter/ansicolor_spec.rb +0 -33
  509. data/spec/cucumber/formatter/backtrace_filter_spec.rb +0 -32
  510. data/spec/cucumber/formatter/console_counts_spec.rb +0 -14
  511. data/spec/cucumber/formatter/duration_spec.rb +0 -23
  512. data/spec/cucumber/formatter/fail_fast_spec.rb +0 -88
  513. data/spec/cucumber/formatter/html_spec.rb +0 -543
  514. data/spec/cucumber/formatter/interceptor_spec.rb +0 -137
  515. data/spec/cucumber/formatter/json_spec.rb +0 -840
  516. data/spec/cucumber/formatter/junit_spec.rb +0 -251
  517. data/spec/cucumber/formatter/legacy_api/adapter_spec.rb +0 -2187
  518. data/spec/cucumber/formatter/pretty_spec.rb +0 -920
  519. data/spec/cucumber/formatter/progress_spec.rb +0 -170
  520. data/spec/cucumber/formatter/rerun_spec.rb +0 -97
  521. data/spec/cucumber/formatter/spec_helper.rb +0 -84
  522. data/spec/cucumber/glue/proto_world_spec.rb +0 -63
  523. data/spec/cucumber/glue/registry_and_more_spec.rb +0 -213
  524. data/spec/cucumber/glue/snippet_spec.rb +0 -174
  525. data/spec/cucumber/glue/step_definition_spec.rb +0 -207
  526. data/spec/cucumber/hooks_spec.rb +0 -31
  527. data/spec/cucumber/multiline_argument/data_table_spec.rb +0 -648
  528. data/spec/cucumber/project_initializer_spec.rb +0 -88
  529. data/spec/cucumber/rake/forked_spec.rb +0 -54
  530. data/spec/cucumber/rake/task_spec.rb +0 -86
  531. data/spec/cucumber/running_test_case_spec.rb +0 -140
  532. data/spec/cucumber/runtime/for_programming_languages_spec.rb +0 -8
  533. data/spec/cucumber/runtime/support_code_spec.rb +0 -17
  534. data/spec/cucumber/runtime_spec.rb +0 -21
  535. data/spec/cucumber/sell_cucumbers.feature +0 -19
  536. data/spec/cucumber/step_argument_spec.rb +0 -19
  537. data/spec/cucumber/step_match_search_spec.rb +0 -113
  538. data/spec/cucumber/step_match_spec.rb +0 -86
  539. data/spec/cucumber/world/pending_spec.rb +0 -48
  540. data/spec/spec_helper.rb +0 -30
  541. data/spec/support/standard_step_actions.rb +0 -19
@@ -1 +0,0 @@
1
- service_name: travis-ci
@@ -1,6 +0,0 @@
1
- examples
2
- .github
3
- spec
4
- CONTRIBUTING.md
5
- History.md
6
- README.md
@@ -1,48 +0,0 @@
1
- <!-- These sections are meant as guidance for you, to help you give the kind of information we'll need to help with your issue. If a section doesn't seem to fit, just skip it.
2
-
3
- In general: Please provide as much information as you can to help us solving your problem -->
4
-
5
- ## Summary
6
-
7
- <!--- Provide a general summary description of the issue -->
8
-
9
- ## Expected Behavior
10
-
11
- <!--- If you're describing a bug, tell us what should happen -->
12
- <!--- If you're suggesting a change/improvement, tell us how it should work -->
13
- <!--- Feel free to use Given / Then / Then if that helps, but please add some plain-language context too -->
14
-
15
- ## Current Behavior
16
-
17
- <!--- If describing a bug, tell us what happens instead of the expected behavior -->
18
- <!--- If suggesting a change/improvement, explain the difference from current behavior -->
19
-
20
- <!--- If you have got some output place it in the code block below. Otherwise remove it. -->
21
- ~~~
22
- ~~~
23
-
24
- ## Possible Solution
25
-
26
- <!--- Not obligatory, but suggest a fix/reason for the bug, -->
27
- <!--- or ideas how to implement the addition or change -->
28
-
29
- ## Steps to Reproduce (for bugs)
30
-
31
- <!--- Provide a link to a live example, or an unambiguous set of steps to -->
32
- <!--- reproduce this bug. Include code to reproduce, if relevant -->
33
- 1.
34
- 2.
35
- 3.
36
- 4.
37
-
38
- ## Context & Motivation
39
-
40
- <!--- How has this issue affected you? What are you trying to accomplish? -->
41
- <!--- Providing context helps us come up with a solution that is most useful in the real world -->
42
-
43
- ## Your Environment
44
-
45
- <!--- If you're reporting a bug, include as many relevant details about the environment you experienced the bug in -->
46
- * Version used:
47
- * Operating System and version:
48
- * Link to your project:
@@ -1,39 +0,0 @@
1
- <!-- These sections are meant as guidance for you. If something doesn't fit, you can just skip it. -->
2
-
3
- ## Summary
4
-
5
- <!--- Provide a general summary description of your changes -->
6
-
7
- ## Details
8
-
9
- <!--- Describe your changes in detail -->
10
-
11
- ## Motivation and Context
12
-
13
- <!--- Why is this change required? What problem does it solve? -->
14
- <!--- If it fixes an open issue, please link to the issue here. -->
15
-
16
- ## How Has This Been Tested?
17
-
18
- <!--- Please add tests for changes to the code, otherwise we probably won't merge it -->
19
-
20
- <!--- Please describe in detail how you tested your changes. -->
21
- <!--- Include details of your testing environment, tests ran to see how -->
22
- <!--- your change affects other areas of the code, etc. -->
23
-
24
- ## Screenshots (if appropriate):
25
-
26
- ## Types of changes
27
-
28
- <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
29
- - [ ] Bug fix (non-breaking change which fixes an issue)
30
- - [ ] New feature (non-breaking change which adds functionality)
31
- - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
32
-
33
- ## Checklist:
34
-
35
- <!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
36
- <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
37
- - [ ] I've added tests for my code
38
- - [ ] My change requires a change to the documentation.
39
- - [ ] I have updated the documentation accordingly.
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
@@ -1,13 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- # Cop names are not displayed in offense messages by default. Change behavior
5
- # by overriding DisplayCopNames, or by giving the `-D/--display-cop-names`
6
- # option.
7
- DisplayCopNames: true
8
- # Style guide URLs are not displayed in offense messages by default. Change
9
- # behavior by overriding `DisplayStyleGuide`, or by giving the
10
- # `-S/--display-style-guide` option.
11
- DisplayStyleGuide: true
12
- Exclude:
13
- - 'tmp/**/*'
@@ -1,1075 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2016-11-26 12:42:16 +0000 using RuboCop version 0.40.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 8
10
- Lint/AmbiguousOperator:
11
- Exclude:
12
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
13
- - 'lib/cucumber/multiline_argument/data_table.rb'
14
- - 'lib/cucumber/running_test_case.rb'
15
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
16
- - 'spec/cucumber/formatter/spec_helper.rb'
17
-
18
- # Offense count: 1
19
- # Cop supports --auto-correct.
20
- Lint/DeprecatedClassMethods:
21
- Exclude:
22
- - 'lib/cucumber/project_initializer.rb'
23
-
24
- # Offense count: 2
25
- Lint/DuplicateMethods:
26
- Exclude:
27
- - 'lib/cucumber/multiline_argument.rb'
28
-
29
- # Offense count: 2
30
- Lint/Eval:
31
- Exclude:
32
- - 'lib/cucumber/formatter/ansicolor.rb'
33
- - 'lib/cucumber/term/ansicolor.rb'
34
-
35
- # Offense count: 2
36
- Lint/HandleExceptions:
37
- Exclude:
38
- - 'features/lib/step_definitions/wire_steps.rb'
39
- - 'lib/cucumber/rake/task.rb'
40
-
41
- # Offense count: 2
42
- Lint/IneffectiveAccessModifier:
43
- Exclude:
44
- - 'lib/cucumber/glue/registry_and_more.rb'
45
- - 'lib/cucumber/glue/snippet.rb'
46
-
47
- # Offense count: 1
48
- Lint/Loop:
49
- Exclude:
50
- - 'lib/autotest/cucumber_mixin.rb'
51
-
52
- # Offense count: 7
53
- Lint/RescueException:
54
- Exclude:
55
- - 'features/lib/support/fake_wire_server.rb'
56
- - 'lib/cucumber/cli/main.rb'
57
- - 'lib/cucumber/configuration.rb'
58
- - 'lib/cucumber/glue/invoke_in_world.rb'
59
- - 'lib/cucumber/formatter/ansicolor.rb'
60
- - 'lib/cucumber/glue/proto_world.rb'
61
-
62
- # Offense count: 6
63
- Lint/ShadowingOuterLocalVariable:
64
- Exclude:
65
- - 'lib/cucumber/filters/tag_limits/verifier.rb'
66
- - 'lib/cucumber/formatter/duration_extractor.rb'
67
- - 'lib/cucumber/formatter/junit.rb'
68
- - 'lib/cucumber/multiline_argument/data_table.rb'
69
- - 'spec/cucumber/step_match_spec.rb'
70
-
71
- # Offense count: 71
72
- # Cop supports --auto-correct.
73
- # Configuration parameters: AllowUnusedKeywordArguments.
74
- Lint/UnusedBlockArgument:
75
- Enabled: false
76
-
77
- # Offense count: 61
78
- Metrics/AbcSize:
79
- Max: 100
80
-
81
- # Offense count: 1
82
- Metrics/BlockNesting:
83
- Max: 4
84
-
85
- # Offense count: 10
86
- # Configuration parameters: CountComments.
87
- Metrics/ClassLength:
88
- Max: 534
89
-
90
- # Offense count: 11
91
- Metrics/CyclomaticComplexity:
92
- Max: 17
93
-
94
- # Offense count: 944
95
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
96
- # URISchemes: http, https
97
- Metrics/LineLength:
98
- Max: 309
99
-
100
- # Offense count: 77
101
- # Configuration parameters: CountComments.
102
- Metrics/MethodLength:
103
- Max: 63
104
-
105
- # Offense count: 19
106
- # Configuration parameters: CountComments.
107
- Metrics/ModuleLength:
108
- Max: 1976
109
-
110
- # Offense count: 7
111
- # Configuration parameters: CountKeywordArgs.
112
- Metrics/ParameterLists:
113
- Max: 8
114
-
115
- # Offense count: 9
116
- Metrics/PerceivedComplexity:
117
- Max: 18
118
-
119
- # Offense count: 3
120
- # Cop supports --auto-correct.
121
- Performance/RedundantBlockCall:
122
- Exclude:
123
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
124
- - 'lib/cucumber/step_match.rb'
125
-
126
- # Offense count: 3
127
- # Cop supports --auto-correct.
128
- Performance/RedundantMatch:
129
- Exclude:
130
- - 'lib/cucumber/deprecate.rb'
131
- - 'spec/cucumber/formatter/junit_spec.rb'
132
-
133
- # Offense count: 6
134
- Style/AccessorMethodName:
135
- Exclude:
136
- - 'lib/autotest/cucumber_mixin.rb'
137
- - 'lib/cucumber/cli/options.rb'
138
- - 'lib/cucumber/formatter/html.rb'
139
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
140
-
141
- # Offense count: 3
142
- # Cop supports --auto-correct.
143
- # Configuration parameters: EnforcedStyle, SupportedStyles.
144
- # SupportedStyles: prefer_alias, prefer_alias_method
145
- Style/Alias:
146
- Exclude:
147
- - 'lib/cucumber/formatter/ansicolor.rb'
148
-
149
- # Offense count: 1197
150
- # Cop supports --auto-correct.
151
- Style/AlignArray:
152
- Exclude:
153
- - 'lib/cucumber/cli/options.rb'
154
- - 'lib/cucumber/rake/task.rb'
155
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
156
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
157
- - 'spec/cucumber/rake/forked_spec.rb'
158
-
159
- # Offense count: 20
160
- # Cop supports --auto-correct.
161
- # Configuration parameters: EnforcedStyle, SupportedStyles.
162
- # SupportedStyles: with_first_parameter, with_fixed_indentation
163
- Style/AlignParameters:
164
- Exclude:
165
- - 'features/lib/step_definitions/cucumber_steps.rb'
166
- - 'features/lib/step_definitions/retry_steps.rb'
167
- - 'lib/cucumber/cli/options.rb'
168
- - 'lib/cucumber/runtime/for_programming_languages.rb'
169
-
170
- # Offense count: 11
171
- # Cop supports --auto-correct.
172
- # Configuration parameters: EnforcedStyle, SupportedStyles.
173
- # SupportedStyles: always, conditionals
174
- Style/AndOr:
175
- Exclude:
176
- - 'lib/autotest/cucumber_mixin.rb'
177
- - 'lib/cucumber/formatter/html.rb'
178
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
179
-
180
- # Offense count: 19
181
- Style/AsciiComments:
182
- Exclude:
183
- - 'lib/cucumber/encoding.rb'
184
- - 'lib/cucumber/events/*'
185
- - 'lib/cucumber/filters/randomizer.rb'
186
- - 'lib/cucumber/formatter/html.rb'
187
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
188
- - 'lib/cucumber/glue/step_definition.rb'
189
- - 'lib/cucumber/running_test_case.rb'
190
- - 'lib/cucumber/runtime.rb'
191
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
192
- - 'spec/cucumber/step_match_search_spec.rb'
193
-
194
- # Offense count: 73
195
- Style/AsciiIdentifiers:
196
- Exclude:
197
- - 'examples/i18n/ar/lib/calculator.rb'
198
- - 'examples/i18n/bg/features/step_definitions/calculator_steps.rb'
199
- - 'examples/i18n/el/features/step_definitions/calculator_steps.rb'
200
- - 'examples/i18n/he/lib/calculator.rb'
201
- - 'examples/i18n/ja/features/step_definitions/calculator_steps.rb'
202
- - 'examples/i18n/ru/features/step_definitions/calculator_steps.rb'
203
- - 'examples/i18n/sr-Cyrl/features/step_definitions/calculator_steps.rb'
204
- - 'examples/i18n/tr/lib/hesap_makinesi.rb'
205
- - 'examples/i18n/uk/features/step_definitions/calculator_steps.rb'
206
- - 'examples/i18n/uz/features/step_definitions/calculator_steps.rb'
207
-
208
- # Offense count: 1
209
- # Cop supports --auto-correct.
210
- Style/Attr:
211
- Exclude:
212
- - 'lib/cucumber/runtime.rb'
213
-
214
- # Offense count: 1
215
- # Cop supports --auto-correct.
216
- # Configuration parameters: EnforcedStyle, SupportedStyles.
217
- # SupportedStyles: percent_q, bare_percent
218
- Style/BarePercentLiterals:
219
- Exclude:
220
- - 'lib/cucumber/term/ansicolor.rb'
221
-
222
- # Offense count: 56
223
- # Cop supports --auto-correct.
224
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
225
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
226
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
227
- # FunctionalMethods: let, let!, subject, watch
228
- # IgnoredMethods: lambda, proc, it
229
- Style/BlockDelimiters:
230
- Enabled: false
231
-
232
- # Offense count: 3
233
- # Cop supports --auto-correct.
234
- Style/BlockEndNewline:
235
- Exclude:
236
- - 'spec/cucumber/formatter/json_spec.rb'
237
- - 'spec/cucumber/rake/forked_spec.rb'
238
-
239
- # Offense count: 45
240
- # Cop supports --auto-correct.
241
- # Configuration parameters: EnforcedStyle, SupportedStyles.
242
- # SupportedStyles: braces, no_braces, context_dependent
243
- Style/BracesAroundHashParameters:
244
- Exclude:
245
- - 'lib/cucumber/cli/options.rb'
246
- - 'lib/cucumber/formatter/ansicolor.rb'
247
- - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
248
- - 'lib/cucumber/multiline_argument/data_table.rb'
249
- - 'spec/cucumber/cli/configuration_spec.rb'
250
- - 'spec/cucumber/cli/options_spec.rb'
251
- - 'spec/cucumber/formatter/html_spec.rb'
252
- - 'spec/cucumber/formatter/junit_spec.rb'
253
- - 'spec/cucumber/formatter/pretty_spec.rb'
254
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
255
- - 'spec/cucumber/glue/step_definition_spec.rb'
256
-
257
- # Offense count: 12
258
- Style/CaseEquality:
259
- Exclude:
260
- - 'lib/cucumber/formatter/console.rb'
261
- - 'lib/cucumber/formatter/html.rb'
262
- - 'lib/cucumber/formatter/io.rb'
263
- - 'lib/cucumber/multiline_argument/data_table.rb'
264
- - 'lib/cucumber/rake/task.rb'
265
- - 'lib/cucumber/step_match.rb'
266
-
267
- # Offense count: 1
268
- # Cop supports --auto-correct.
269
- Style/CharacterLiteral:
270
- Exclude:
271
- - 'lib/autotest/cucumber_mixin.rb'
272
-
273
- # Offense count: 12
274
- # Configuration parameters: EnforcedStyle, SupportedStyles.
275
- # SupportedStyles: nested, compact
276
- Style/ClassAndModuleChildren:
277
- Exclude:
278
- - 'gem_tasks/cucumber.rake'
279
- - 'lib/autotest/cucumber.rb'
280
- - 'lib/autotest/cucumber_mixin.rb'
281
- - 'lib/autotest/cucumber_rails.rb'
282
- - 'lib/autotest/cucumber_rails_rspec.rb'
283
- - 'lib/autotest/cucumber_rails_rspec2.rb'
284
- - 'lib/autotest/cucumber_rspec.rb'
285
- - 'lib/autotest/cucumber_rspec2.rb'
286
- - 'spec/cucumber/formatter/fail_fast_spec.rb'
287
- - 'spec/cucumber/formatter/interceptor_spec.rb'
288
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
289
- - 'spec/cucumber/hooks_spec.rb'
290
-
291
- # Offense count: 3
292
- # Cop supports --auto-correct.
293
- # Configuration parameters: EnforcedStyle, SupportedStyles.
294
- # SupportedStyles: is_a?, kind_of?
295
- Style/ClassCheck:
296
- Exclude:
297
- - 'lib/cucumber/formatter/legacy_api/ast.rb'
298
- - 'lib/cucumber/hooks.rb'
299
- - 'lib/cucumber/multiline_argument/data_table.rb'
300
-
301
- # Offense count: 2
302
- Style/ClassVars:
303
- Exclude:
304
- - 'lib/cucumber/formatter/html.rb'
305
-
306
- # Offense count: 1
307
- # Cop supports --auto-correct.
308
- Style/ClosingParenthesisIndentation:
309
- Exclude:
310
- - 'spec/cucumber/cli/options_spec.rb'
311
-
312
- # Offense count: 1
313
- # Cop supports --auto-correct.
314
- Style/ColonMethodCall:
315
- Exclude:
316
- - 'lib/cucumber/cli/profile_loader.rb'
317
-
318
- # Offense count: 4
319
- # Cop supports --auto-correct.
320
- # Configuration parameters: Keywords.
321
- # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
322
- Style/CommentAnnotation:
323
- Exclude:
324
- - 'lib/cucumber/cli/configuration.rb'
325
- - 'lib/cucumber/configuration.rb'
326
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
327
-
328
- # Offense count: 2
329
- # Cop supports --auto-correct.
330
- Style/CommentIndentation:
331
- Exclude:
332
- - 'lib/cucumber/formatter/html.rb'
333
- - 'spec/cucumber/world/pending_spec.rb'
334
-
335
- # Offense count: 2
336
- # Cop supports --auto-correct.
337
- # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
338
- # SupportedStyles: assign_to_condition, assign_inside_condition
339
- Style/ConditionalAssignment:
340
- Exclude:
341
- - 'lib/cucumber/runtime/for_programming_languages.rb'
342
- - 'lib/cucumber/runtime/user_interface.rb'
343
-
344
- # Offense count: 1
345
- Style/ConstantName:
346
- Exclude:
347
- - 'lib/cucumber/deprecate.rb'
348
-
349
- # Offense count: 1
350
- # Cop supports --auto-correct.
351
- Style/DefWithParentheses:
352
- Exclude:
353
- - 'lib/cucumber/cli/options.rb'
354
-
355
- # Offense count: 186
356
- Style/Documentation:
357
- Enabled: false
358
-
359
- # Offense count: 12
360
- # Cop supports --auto-correct.
361
- # Configuration parameters: EnforcedStyle, SupportedStyles.
362
- # SupportedStyles: leading, trailing
363
- Style/DotPosition:
364
- Enabled: false
365
-
366
- # Offense count: 1
367
- Style/DoubleNegation:
368
- Exclude:
369
- - 'lib/cucumber/cli/configuration.rb'
370
-
371
- # Offense count: 2
372
- Style/EachWithObject:
373
- Exclude:
374
- - 'lib/cucumber/formatter/steps.rb'
375
- - 'lib/cucumber/glue/registry_and_more.rb'
376
-
377
- # Offense count: 12
378
- # Cop supports --auto-correct.
379
- # Configuration parameters: AllowAdjacentOneLineDefs.
380
- Style/EmptyLineBetweenDefs:
381
- Exclude:
382
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
383
-
384
- # Offense count: 14
385
- # Cop supports --auto-correct.
386
- Style/EmptyLines:
387
- Exclude:
388
- - 'lib/cucumber/cli/main.rb'
389
- - 'lib/cucumber/events/step_definition_registered.rb'
390
- - 'lib/cucumber/formatter/backtrace_filter.rb'
391
- - 'lib/cucumber/formatter/html.rb'
392
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
393
- - 'lib/cucumber/multiline_argument/data_table.rb'
394
- - 'lib/cucumber/multiline_argument/data_table/diff_matrices.rb'
395
- - 'lib/cucumber/term/ansicolor.rb'
396
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
397
- - 'spec/cucumber/formatter/pretty_spec.rb'
398
- - 'spec/cucumber/runtime/support_code_spec.rb'
399
-
400
- # Offense count: 6
401
- # Cop supports --auto-correct.
402
- Style/EmptyLinesAroundAccessModifier:
403
- Exclude:
404
- - 'lib/cucumber/formatter/interceptor.rb'
405
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
406
- - 'lib/cucumber/multiline_argument/data_table.rb'
407
- - 'lib/cucumber/glue/transform.rb'
408
- - 'lib/cucumber/runtime/step_hooks.rb'
409
- - 'lib/cucumber/step_match.rb'
410
-
411
- # Offense count: 43
412
- # Cop supports --auto-correct.
413
- # Configuration parameters: EnforcedStyle, SupportedStyles.
414
- # SupportedStyles: empty_lines, no_empty_lines
415
- Style/EmptyLinesAroundBlockBody:
416
- Enabled: false
417
-
418
- # Offense count: 40
419
- # Cop supports --auto-correct.
420
- # Configuration parameters: EnforcedStyle, SupportedStyles.
421
- # SupportedStyles: empty_lines, no_empty_lines
422
- Style/EmptyLinesAroundClassBody:
423
- Enabled: false
424
-
425
- # Offense count: 1
426
- # Cop supports --auto-correct.
427
- Style/EmptyLinesAroundMethodBody:
428
- Exclude:
429
- - 'lib/cucumber/formatter/legacy_api/ast.rb'
430
-
431
- # Offense count: 53
432
- # Cop supports --auto-correct.
433
- # Configuration parameters: EnforcedStyle, SupportedStyles.
434
- # SupportedStyles: empty_lines, no_empty_lines
435
- Style/EmptyLinesAroundModuleBody:
436
- Enabled: false
437
-
438
- # Offense count: 6
439
- # Cop supports --auto-correct.
440
- Style/EmptyLiteral:
441
- Exclude:
442
- - 'lib/cucumber/errors.rb'
443
- - 'lib/cucumber/formatter/html.rb'
444
- - 'lib/cucumber/glue/registry_and_more.rb'
445
- - 'lib/cucumber/glue/snippet.rb'
446
- - 'spec/cucumber/glue/registry_and_more_spec.rb'
447
-
448
- # Offense count: 11
449
- # Cop supports --auto-correct.
450
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
451
- Style/ExtraSpacing:
452
- Exclude:
453
- - 'lib/cucumber/formatter/json.rb'
454
- - 'spec/cucumber/formatter/html_spec.rb'
455
- - 'spec/cucumber/formatter/json_spec.rb'
456
- - 'spec/cucumber/formatter/junit_spec.rb'
457
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
458
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
459
- - 'spec/cucumber/glue/step_definition_spec.rb'
460
-
461
- # Offense count: 1
462
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
463
- Style/FileName:
464
- Exclude:
465
- - 'features/lib/step_definitions/iso-8859-1_steps.rb'
466
-
467
- # Offense count: 2
468
- # Cop supports --auto-correct.
469
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
470
- # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
471
- Style/FirstParameterIndentation:
472
- Exclude:
473
- - 'spec/cucumber/rake/forked_spec.rb'
474
-
475
- # Offense count: 13
476
- # Configuration parameters: AllowedVariables.
477
- Style/GlobalVars:
478
- Exclude:
479
- - 'lib/autotest/cucumber_mixin.rb'
480
- - 'spec/cucumber/cli/options_spec.rb'
481
- - 'spec/cucumber/glue/registry_and_more_spec.rb'
482
- - 'spec/cucumber/glue/step_definition_spec.rb'
483
-
484
- # Offense count: 10
485
- # Configuration parameters: MinBodyLength.
486
- Style/GuardClause:
487
- Exclude:
488
- - 'lib/cucumber/constantize.rb'
489
- - 'lib/cucumber/formatter/html.rb'
490
- - 'lib/cucumber/formatter/junit.rb'
491
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
492
- - 'lib/cucumber/formatter/pretty.rb'
493
- - 'lib/cucumber/glue/proto_world.rb'
494
-
495
- # Offense count: 182
496
- # Cop supports --auto-correct.
497
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
498
- # SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
499
- Style/HashSyntax:
500
- Enabled: false
501
-
502
- # Offense count: 3
503
- Style/IfInsideElse:
504
- Exclude:
505
- - 'lib/cucumber/cli/main.rb'
506
- - 'lib/cucumber/formatter/console.rb'
507
- - 'lib/cucumber/formatter/json.rb'
508
-
509
- # Offense count: 15
510
- # Cop supports --auto-correct.
511
- # Configuration parameters: MaxLineLength.
512
- Style/IfUnlessModifier:
513
- Exclude:
514
- - 'examples/i18n/zh-CN/features/step_definitions/calculator_steps.rb'
515
- - 'lib/cucumber/filters/quit.rb'
516
- - 'lib/cucumber/formatter/ansicolor.rb'
517
- - 'lib/cucumber/formatter/backtrace_filter.rb'
518
- - 'lib/cucumber/formatter/html.rb'
519
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
520
- - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
521
- - 'lib/cucumber/rake/task.rb'
522
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
523
-
524
- # Offense count: 89
525
- # Cop supports --auto-correct.
526
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
527
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
528
- Style/IndentArray:
529
- Enabled: false
530
-
531
- # Offense count: 4
532
- # Cop supports --auto-correct.
533
- # Configuration parameters: SupportedStyles, IndentationWidth.
534
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
535
- Style/IndentHash:
536
- EnforcedStyle: consistent
537
-
538
- # Offense count: 8
539
- # Cop supports --auto-correct.
540
- # Configuration parameters: EnforcedStyle, SupportedStyles.
541
- # SupportedStyles: normal, rails
542
- Style/IndentationConsistency:
543
- Exclude:
544
- - 'lib/cucumber/formatter/html.rb'
545
- - 'spec/cucumber/cli/configuration_spec.rb'
546
- - 'spec/cucumber/formatter/html_spec.rb'
547
- - 'spec/cucumber/formatter/json_spec.rb'
548
- - 'spec/cucumber/step_match_search_spec.rb'
549
-
550
- # Offense count: 9
551
- # Cop supports --auto-correct.
552
- # Configuration parameters: Width.
553
- Style/IndentationWidth:
554
- Exclude:
555
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
556
- - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
557
- - 'lib/cucumber/gherkin/formatter/escaping.rb'
558
- - 'lib/cucumber/glue/transform.rb'
559
- - 'spec/cucumber/cli/configuration_spec.rb'
560
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
561
- - 'spec/cucumber/step_match_search_spec.rb'
562
- - 'spec/cucumber/world/pending_spec.rb'
563
-
564
- # Offense count: 40
565
- # Cop supports --auto-correct.
566
- # Configuration parameters: EnforcedStyle, SupportedStyles.
567
- # SupportedStyles: line_count_dependent, lambda, literal
568
- Style/Lambda:
569
- Exclude:
570
- - 'features/lib/support/fake_wire_server.rb'
571
- - 'lib/cucumber/formatter/html.rb'
572
- - 'lib/cucumber/multiline_argument/data_table.rb'
573
- - 'lib/cucumber/glue/step_definition.rb'
574
- - 'lib/cucumber/step_match.rb'
575
- - 'spec/cucumber/formatter/html_spec.rb'
576
- - 'spec/cucumber/formatter/junit_spec.rb'
577
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
578
- - 'spec/cucumber/glue/registry_and_more_spec.rb'
579
- - 'spec/cucumber/glue/step_definition_spec.rb'
580
- - 'spec/cucumber/rb_support/rb_transform_spec.rb'
581
- - 'spec/cucumber/step_match_search_spec.rb'
582
- - 'spec/cucumber/step_match_spec.rb'
583
- - 'spec/cucumber/world/pending_spec.rb'
584
-
585
- # Offense count: 38
586
- # Cop supports --auto-correct.
587
- Style/LeadingCommentSpace:
588
- Enabled: false
589
-
590
- # Offense count: 7
591
- # Cop supports --auto-correct.
592
- Style/LineEndConcatenation:
593
- Exclude:
594
- - 'lib/cucumber/cli/options.rb'
595
- - 'spec/cucumber/filters/tag_limits/verifier_spec.rb'
596
-
597
- # Offense count: 2
598
- # Cop supports --auto-correct.
599
- Style/MethodCallParentheses:
600
- Exclude:
601
- - 'lib/cucumber/cli/configuration.rb'
602
- - 'lib/cucumber/cli/options.rb'
603
-
604
- # Offense count: 12
605
- # Configuration parameters: EnforcedStyle, SupportedStyles.
606
- # SupportedStyles: snake_case, camelCase
607
- Style/MethodName:
608
- Enabled: false
609
-
610
- # Offense count: 2
611
- Style/ModuleFunction:
612
- Exclude:
613
- - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
614
- - 'lib/cucumber/term/ansicolor.rb'
615
-
616
- # Offense count: 3
617
- # Cop supports --auto-correct.
618
- # Configuration parameters: EnforcedStyle, SupportedStyles.
619
- # SupportedStyles: symmetrical, new_line, same_line
620
- Style/MultilineArrayBraceLayout:
621
- Exclude:
622
- - 'lib/cucumber/cli/options.rb'
623
- - 'spec/cucumber/configuration_spec.rb'
624
-
625
- # Offense count: 2
626
- Style/MultilineBlockChain:
627
- Exclude:
628
- - 'lib/cucumber/formatter/console_counts.rb'
629
-
630
- # Offense count: 4
631
- # Cop supports --auto-correct.
632
- Style/MultilineBlockLayout:
633
- Exclude:
634
- - 'lib/cucumber/formatter/junit.rb'
635
- - 'spec/cucumber/formatter/json_spec.rb'
636
- - 'spec/cucumber/rake/forked_spec.rb'
637
-
638
- # Offense count: 4
639
- # Cop supports --auto-correct.
640
- Style/MultilineIfThen:
641
- Exclude:
642
- - 'lib/autotest/cucumber_mixin.rb'
643
-
644
- # Offense count: 9
645
- # Cop supports --auto-correct.
646
- # Configuration parameters: EnforcedStyle, SupportedStyles.
647
- # SupportedStyles: symmetrical, new_line, same_line
648
- Style/MultilineMethodCallBraceLayout:
649
- Exclude:
650
- - 'lib/cucumber/cli/options.rb'
651
- - 'lib/cucumber/formatter/junit.rb'
652
- - 'lib/cucumber/formatter/legacy_api/ast.rb'
653
- - 'lib/cucumber/runtime.rb'
654
- - 'spec/cucumber/configuration_spec.rb'
655
- - 'spec/cucumber/formatter/spec_helper.rb'
656
- - 'spec/cucumber/rake/forked_spec.rb'
657
-
658
- # Offense count: 2
659
- # Cop supports --auto-correct.
660
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
661
- # SupportedStyles: aligned, indented
662
- Style/MultilineMethodCallIndentation:
663
- Enabled: false
664
-
665
- # Offense count: 8
666
- # Cop supports --auto-correct.
667
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
668
- # SupportedStyles: aligned, indented
669
- Style/MultilineOperationIndentation:
670
- Enabled: false
671
-
672
- # Offense count: 1
673
- Style/MultilineTernaryOperator:
674
- Exclude:
675
- - 'lib/cucumber/formatter/console.rb'
676
-
677
- # Offense count: 20
678
- # Cop supports --auto-correct.
679
- Style/MutableConstant:
680
- Exclude:
681
- - 'lib/cucumber/cli/options.rb'
682
- - 'lib/cucumber/formatter/html.rb'
683
- - 'lib/cucumber/formatter/progress.rb'
684
- - 'lib/cucumber/formatter/unicode.rb'
685
- - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
686
- - 'lib/cucumber/glue/snippet.rb'
687
- - 'lib/cucumber/term/ansicolor.rb'
688
- - 'spec/cucumber/step_match_spec.rb'
689
-
690
- # Offense count: 7
691
- # Cop supports --auto-correct.
692
- Style/NegatedIf:
693
- Exclude:
694
- - 'lib/cucumber/formatter/io.rb'
695
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
696
- - 'lib/cucumber/rake/task.rb'
697
- - 'lib/cucumber/runtime.rb'
698
-
699
- # Offense count: 2
700
- # Cop supports --auto-correct.
701
- Style/NestedParenthesizedCalls:
702
- Exclude:
703
- - 'spec/cucumber/hooks_spec.rb'
704
-
705
- # Offense count: 8
706
- # Cop supports --auto-correct.
707
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
708
- # SupportedStyles: skip_modifier_ifs, always
709
- Style/Next:
710
- Exclude:
711
- - 'examples/i18n/Rakefile'
712
- - 'features/lib/support/normalise_output.rb'
713
- - 'lib/autotest/cucumber_mixin.rb'
714
- - 'lib/cucumber/formatter/ansicolor.rb'
715
- - 'lib/cucumber/multiline_argument/data_table.rb'
716
- - 'spec/cucumber/formatter/json_spec.rb'
717
-
718
- # Offense count: 4
719
- # Cop supports --auto-correct.
720
- Style/Not:
721
- Exclude:
722
- - 'lib/cucumber/formatter/console.rb'
723
- - 'lib/cucumber/formatter/html.rb'
724
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
725
-
726
- # Offense count: 3
727
- # Cop supports --auto-correct.
728
- Style/NumericLiterals:
729
- MinDigits: 6
730
-
731
- # Offense count: 5
732
- Style/OpMethod:
733
- Exclude:
734
- - 'lib/cucumber/multiline_argument/data_table.rb'
735
- - 'lib/cucumber/glue/step_definition.rb'
736
- - 'lib/cucumber/step_definition_light.rb'
737
-
738
- # Offense count: 25
739
- # Cop supports --auto-correct.
740
- Style/ParallelAssignment:
741
- Enabled: false
742
-
743
- # Offense count: 225
744
- # Cop supports --auto-correct.
745
- # Configuration parameters: PreferredDelimiters.
746
- Style/PercentLiteralDelimiters:
747
- Enabled: false
748
-
749
- # Offense count: 18
750
- # Cop supports --auto-correct.
751
- Style/PerlBackrefs:
752
- Exclude:
753
- - 'lib/cucumber/cli/options.rb'
754
- - 'lib/cucumber/formatter/ansicolor.rb'
755
- - 'lib/cucumber/formatter/backtrace_filter.rb'
756
- - 'lib/cucumber/formatter/html.rb'
757
- - 'lib/cucumber/formatter/unicode.rb'
758
- - 'lib/cucumber/gherkin/formatter/ansi_escapes.rb'
759
- - 'lib/cucumber/runtime.rb'
760
-
761
- # Offense count: 2
762
- # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
763
- # NamePrefix: is_, has_, have_
764
- # NamePrefixBlacklist: is_, has_, have_
765
- # NameWhitelist: is_a?
766
- Style/PredicateName:
767
- Exclude:
768
- - 'spec/**/*'
769
- - 'lib/cucumber/cli/profile_loader.rb'
770
- - 'lib/cucumber/multiline_argument/data_table.rb'
771
-
772
- # Offense count: 3
773
- # Cop supports --auto-correct.
774
- Style/Proc:
775
- Exclude:
776
- - 'spec/cucumber/filters/activate_steps_spec.rb'
777
-
778
- # Offense count: 7
779
- # Cop supports --auto-correct.
780
- # Configuration parameters: EnforcedStyle, SupportedStyles.
781
- # SupportedStyles: compact, exploded
782
- Style/RaiseArgs:
783
- Enabled: false
784
-
785
- # Offense count: 8
786
- # Cop supports --auto-correct.
787
- Style/RedundantBegin:
788
- Exclude:
789
- - 'features/lib/support/fake_wire_server.rb'
790
- - 'lib/cucumber/glue/invoke_in_world.rb'
791
- - 'lib/cucumber/formatter/ansicolor.rb'
792
- - 'lib/cucumber/formatter/unicode.rb'
793
- - 'lib/cucumber/multiline_argument/data_table.rb'
794
- - 'lib/cucumber/glue/step_definition.rb'
795
- - 'lib/cucumber/runtime.rb'
796
- - 'lib/cucumber/runtime/user_interface.rb'
797
-
798
- # Offense count: 1
799
- # Cop supports --auto-correct.
800
- Style/RedundantException:
801
- Exclude:
802
- - 'spec/cucumber/formatter/json_spec.rb'
803
-
804
- # Offense count: 2
805
- # Cop supports --auto-correct.
806
- Style/RedundantParentheses:
807
- Exclude:
808
- - 'lib/cucumber/formatter/html.rb'
809
- - 'lib/cucumber/multiline_argument/data_table.rb'
810
-
811
- # Offense count: 8
812
- # Cop supports --auto-correct.
813
- # Configuration parameters: AllowMultipleReturnValues.
814
- Style/RedundantReturn:
815
- Exclude:
816
- - 'lib/autotest/cucumber_mixin.rb'
817
- - 'lib/cucumber/cli/profile_loader.rb'
818
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
819
- - 'lib/cucumber/multiline_argument/data_table.rb'
820
- - 'lib/cucumber/step_match.rb'
821
-
822
- # Offense count: 20
823
- # Cop supports --auto-correct.
824
- Style/RedundantSelf:
825
- Exclude:
826
- - 'lib/autotest/cucumber_mixin.rb'
827
- - 'lib/cucumber/cli/configuration.rb'
828
- - 'lib/cucumber/errors.rb'
829
- - 'lib/cucumber/filters/activate_steps.rb'
830
- - 'lib/cucumber/formatter/interceptor.rb'
831
- - 'lib/cucumber/formatter/legacy_api/ast.rb'
832
- - 'lib/cucumber/multiline_argument/data_table.rb'
833
- - 'lib/cucumber/multiline_argument/doc_string.rb'
834
- - 'lib/cucumber/glue/step_definition.rb'
835
- - 'lib/cucumber/glue/proto_world.rb'
836
- - 'spec/cucumber/running_test_case_spec.rb'
837
-
838
- # Offense count: 18
839
- # Cop supports --auto-correct.
840
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
841
- # SupportedStyles: slashes, percent_r, mixed
842
- Style/RegexpLiteral:
843
- Exclude:
844
- - 'features/lib/support/normalise_output.rb'
845
- - 'lib/cucumber/configuration.rb'
846
- - 'lib/cucumber/formatter/backtrace_filter.rb'
847
- - 'lib/cucumber/formatter/html.rb'
848
- - 'lib/cucumber/formatter/junit.rb'
849
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
850
- - 'lib/cucumber/runtime.rb'
851
- - 'spec/cucumber/formatter/html_spec.rb'
852
- - 'spec/cucumber/project_initializer_spec.rb'
853
- - 'spec/cucumber/glue/registry_and_more_spec.rb'
854
-
855
- # Offense count: 2
856
- # Cop supports --auto-correct.
857
- Style/RescueModifier:
858
- Exclude:
859
- - 'gem_tasks/contributors.rake'
860
- - 'lib/cucumber/multiline_argument/data_table.rb'
861
-
862
- # Offense count: 3
863
- # Cop supports --auto-correct.
864
- # Configuration parameters: AllowAsExpressionSeparator.
865
- Style/Semicolon:
866
- Exclude:
867
- - 'spec/cucumber/cli/options_spec.rb'
868
- - 'spec/cucumber/formatter/json_spec.rb'
869
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
870
-
871
- # Offense count: 4
872
- # Cop supports --auto-correct.
873
- # Configuration parameters: EnforcedStyle, SupportedStyles.
874
- # SupportedStyles: only_raise, only_fail, semantic
875
- Style/SignalException:
876
- Exclude:
877
- - 'lib/cucumber/cli/options.rb'
878
- - 'lib/cucumber/formatter/json.rb'
879
- - 'spec/cucumber/formatter/progress_spec.rb'
880
-
881
- # Offense count: 36
882
- # Configuration parameters: Methods.
883
- # Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
884
- Style/SingleLineBlockParams:
885
- Enabled: false
886
-
887
- # Offense count: 4
888
- # Cop supports --auto-correct.
889
- # Configuration parameters: AllowIfMethodIsEmpty.
890
- Style/SingleLineMethods:
891
- Exclude:
892
- - 'lib/cucumber/formatter/html.rb'
893
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
894
- - 'lib/cucumber/rspec/disable_option_parser.rb'
895
-
896
- # Offense count: 78
897
- # Cop supports --auto-correct.
898
- Style/SpaceAfterComma:
899
- Enabled: false
900
-
901
- # Offense count: 4
902
- # Cop supports --auto-correct.
903
- Style/SpaceAfterNot:
904
- Exclude:
905
- - 'lib/cucumber/formatter/console.rb'
906
- - 'lib/cucumber/formatter/html.rb'
907
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
908
-
909
- # Offense count: 16
910
- # Cop supports --auto-correct.
911
- Style/SpaceAfterSemicolon:
912
- Exclude:
913
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
914
-
915
- # Offense count: 30
916
- # Cop supports --auto-correct.
917
- # Configuration parameters: EnforcedStyle, SupportedStyles.
918
- # SupportedStyles: space, no_space
919
- Style/SpaceAroundEqualsInParameterDefault:
920
- Enabled: false
921
-
922
- # Offense count: 12
923
- # Cop supports --auto-correct.
924
- Style/SpaceAroundKeyword:
925
- Exclude:
926
- - 'lib/cucumber/cli/options.rb'
927
- - 'lib/cucumber/cli/profile_loader.rb'
928
- - 'lib/cucumber/formatter/html.rb'
929
- - 'lib/cucumber/formatter/legacy_api/results.rb'
930
- - 'lib/cucumber/multiline_argument/data_table.rb'
931
- - 'lib/cucumber/rake/task.rb'
932
- - 'lib/cucumber/glue/registry_and_more.rb'
933
- - 'lib/cucumber/runtime/user_interface.rb'
934
- - 'spec/cucumber/cli/profile_loader_spec.rb'
935
-
936
- # Offense count: 25
937
- # Cop supports --auto-correct.
938
- # Configuration parameters: AllowForAlignment.
939
- Style/SpaceAroundOperators:
940
- Exclude:
941
- - 'examples/i18n/Rakefile'
942
- - 'examples/i18n/pt/lib/calculadora.rb'
943
- - 'lib/cucumber/cli/options.rb'
944
- - 'lib/cucumber/glue/invoke_in_world.rb'
945
- - 'lib/cucumber/formatter/ansicolor.rb'
946
- - 'lib/cucumber/formatter/console.rb'
947
- - 'lib/cucumber/formatter/html.rb'
948
- - 'lib/cucumber/formatter/interceptor.rb'
949
- - 'lib/cucumber/formatter/json.rb'
950
- - 'lib/cucumber/formatter/pretty.rb'
951
- - 'lib/cucumber/glue/snippet.rb'
952
- - 'lib/cucumber/step_definition_light.rb'
953
- - 'spec/cucumber/cli/configuration_spec.rb'
954
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
955
- - 'spec/cucumber/glue/step_definition_spec.rb'
956
-
957
- # Offense count: 88
958
- # Cop supports --auto-correct.
959
- # Configuration parameters: EnforcedStyle, SupportedStyles.
960
- # SupportedStyles: space, no_space
961
- Style/SpaceBeforeBlockBraces:
962
- Enabled: false
963
-
964
- # Offense count: 27
965
- # Cop supports --auto-correct.
966
- Style/SpaceBeforeComma:
967
- Exclude:
968
- - 'lib/cucumber/term/ansicolor.rb'
969
-
970
- # Offense count: 255
971
- # Cop supports --auto-correct.
972
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
973
- # SupportedStyles: space, no_space
974
- Style/SpaceInsideBlockBraces:
975
- Enabled: false
976
-
977
- # Offense count: 84
978
- # Cop supports --auto-correct.
979
- Style/SpaceInsideBrackets:
980
- Exclude:
981
- - 'features/lib/support/fake_wire_server.rb'
982
- - 'lib/cucumber/cli/options.rb'
983
- - 'lib/cucumber/file_specs.rb'
984
- - 'lib/cucumber/formatter/console_issues.rb'
985
- - 'lib/cucumber/formatter/steps.rb'
986
- - 'lib/cucumber/rake/task.rb'
987
- - 'lib/cucumber/term/ansicolor.rb'
988
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
989
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
990
-
991
- # Offense count: 92
992
- # Cop supports --auto-correct.
993
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
994
- # SupportedStyles: space, no_space
995
- Style/SpaceInsideHashLiteralBraces:
996
- Enabled: false
997
-
998
- # Offense count: 203
999
- # Cop supports --auto-correct.
1000
- Style/SpaceInsideParens:
1001
- Exclude:
1002
- - 'lib/cucumber/formatter/junit.rb'
1003
- - 'lib/cucumber/step_match.rb'
1004
- - 'spec/cucumber/formatter/legacy_api/adapter_spec.rb'
1005
- - 'spec/cucumber/formatter/pretty_spec.rb'
1006
- - 'spec/cucumber/formatter/rerun_spec.rb'
1007
- - 'spec/cucumber/hooks_spec.rb'
1008
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
1009
- - 'spec/cucumber/rb_support/rb_world_spec.rb'
1010
-
1011
- # Offense count: 89
1012
- # Cop supports --auto-correct.
1013
- # Configuration parameters: EnforcedStyle, SupportedStyles.
1014
- # SupportedStyles: use_perl_names, use_english_names
1015
- Style/SpecialGlobalVars:
1016
- Enabled: false
1017
-
1018
- # Offense count: 14
1019
- # Cop supports --auto-correct.
1020
- # Configuration parameters: EnforcedStyle, SupportedStyles.
1021
- # SupportedStyles: single_quotes, double_quotes
1022
- Style/StringLiteralsInInterpolation:
1023
- Enabled: false
1024
-
1025
- # Offense count: 3
1026
- Style/StructInheritance:
1027
- Exclude:
1028
- - 'lib/cucumber/formatter/legacy_api/adapter.rb'
1029
- - 'lib/cucumber/formatter/legacy_api/runtime_facade.rb'
1030
-
1031
- # Offense count: 35
1032
- # Cop supports --auto-correct.
1033
- # Configuration parameters: IgnoredMethods.
1034
- # IgnoredMethods: respond_to, define_method
1035
- Style/SymbolProc:
1036
- Exclude:
1037
- - 'lib/cucumber/cli/options.rb'
1038
- - 'lib/cucumber/errors.rb'
1039
- - 'lib/cucumber/formatter/json.rb'
1040
- - 'lib/cucumber/multiline_argument.rb'
1041
- - 'lib/cucumber/multiline_argument/data_table.rb'
1042
- - 'lib/cucumber/step_definitions.rb'
1043
- - 'lib/cucumber/step_match.rb'
1044
- - 'lib/cucumber/step_match_search.rb'
1045
- - 'spec/cucumber/multiline_argument/data_table_spec.rb'
1046
-
1047
- # Offense count: 69
1048
- # Cop supports --auto-correct.
1049
- # Configuration parameters: EnforcedStyle, SupportedStyles.
1050
- # SupportedStyles: final_newline, final_blank_line
1051
- Style/TrailingBlankLines:
1052
- Enabled: false
1053
-
1054
- # Offense count: 18
1055
- # Cop supports --auto-correct.
1056
- # Reviewed: in pretty_spec.rb, progress_spec.rb offences look false,
1057
- # as the trailing spaces are in multiline string literals
1058
- Style/TrailingWhitespace:
1059
- Exclude:
1060
- - 'spec/cucumber/formatter/pretty_spec.rb'
1061
- - 'spec/cucumber/formatter/progress_spec.rb'
1062
-
1063
- # Offense count: 1
1064
- # Cop supports --auto-correct.
1065
- # Reviewed: when the offense is fixed there is one spec failing (./spec/cucumber/rb_support/rb_world_spec.rb:37)
1066
- Style/UnneededInterpolation:
1067
- Exclude:
1068
- - 'lib/cucumber/glue/proto_world.rb'
1069
-
1070
- # Offense count: 15
1071
- # Configuration parameters: EnforcedStyle, SupportedStyles.
1072
- # SupportedStyles: snake_case, camelCase
1073
- # Reviewed: these offenses look false as the variables are in cyrillic
1074
- Style/VariableName:
1075
- Enabled: false