Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge rspec repos #48

Draft
wants to merge 7,766 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
7766 commits
Select commit Hold shift + click to select a range
ff84fb4
Upgrade rubocop, motivated by CVE.
xaviershay Dec 31, 2017
918f3f7
Restrict rubocop to recent MRI
xaviershay Jan 3, 2018
fd81ea3
Unset RUBYOPT before rubocop'ing to allow gems to be used
xaviershay Jan 5, 2018
536b199
$SAFE became a global variable in Ruby 2.6
sorah Jan 9, 2018
c4d3073
Merge pull request #2501 from sorah/safe-thread-local
myronmarston Jan 9, 2018
1f8e831
This cop was disabled globally.
xaviershay Jan 9, 2018
a85a42c
Update yard to 0.9.12, motivated by CVE.
xaviershay Dec 31, 2017
fcc2aa3
Prevent method from being counted as undoc'ed
xaviershay Jan 9, 2018
5293ded
Merge pull request #1038 from rspec/upgrade-yard
xaviershay Jan 10, 2018
b48d851
Merge pull request #2498 from rspec/upgrade-rubocop
xaviershay Jan 10, 2018
dc60dbe
Upgrade rubocop, motivated by CVE.
xaviershay Dec 31, 2017
267ecec
Unset RUBYOPT before rubocop'ing to allow gems to be used
xaviershay Jan 5, 2018
a0c3958
Duck-typing support for the `include` matcher (#1012)
pablobm Jan 10, 2018
fffbfda
Changelog for #1012.
myronmarston Jan 10, 2018
bee4e14
Merge pull request #1040 from rspec/upgrade-rubocop
JonRowe Jan 10, 2018
a35be9f
Simplify BisectFormatter using `example_finished` notification.
myronmarston Jan 13, 2018
b836d71
Merge pull request #2502 from rspec/myron/simplify-bisect-formatter
myronmarston Jan 16, 2018
94de620
Refactor bisect: split ShellRunner and ShellCommand.
myronmarston Jan 10, 2018
9811a38
Move responsibility for managing server lifecycle into ShellRunner.
myronmarston Jan 13, 2018
9d2893f
Extract bisect formatter base class.
myronmarston Jan 13, 2018
83f7105
Refactor: create factory method for bisect failed error.
myronmarston Jan 13, 2018
1488497
Allow users to set a formatter instance instead of just a class.
myronmarston Jan 16, 2018
e7da350
Nicely handle errors encountered from processing `--require`.
myronmarston Jan 18, 2018
8e0e97b
[#2494] Add yard return values to Rspec::Core::Configuration
garettarrowood Jan 20, 2018
a1813f0
Merge pull request #2505 from garettarrowood/add_yard_return_values_i…
xaviershay Jan 20, 2018
88bd0c9
Merge pull request #2504 from rspec/myron/handle-require-errors
xaviershay Jan 20, 2018
8492f12
Merge pull request #2503 from rspec/myron/bisect-forker-prep-refactor…
myronmarston Jan 21, 2018
925bc20
Avoid using `RSpec.configuration` from the bisect coordinator.
myronmarston Jan 23, 2018
7f607f0
Merge pull request #2507 from rspec/myron/bisect-formatter-refactor
myronmarston Jan 23, 2018
534c00f
Use more explicit way of shuffling specs.
myronmarston Jan 19, 2018
d8716a5
Implement `Bisect::ForkRunner`.
myronmarston Jan 11, 2018
144c546
Allow different bisect runners to be configured and used.
myronmarston Jan 25, 2018
34c8d39
Add changelog entries for #2511.
myronmarston Jan 27, 2018
155bd0d
Fix typo
arjan0307 Jan 30, 2018
a9e64bc
Merge pull request #2512 from arjan0307/patch-1
myronmarston Jan 30, 2018
1484daa
Raise an error if `bisect_runner` is updated too late.
myronmarston Feb 9, 2018
0e9dcc9
Suggest `bisect_runner = :shell` when there was a problem.
myronmarston Feb 9, 2018
d53a601
Use the config option value when printing the bisect runner.
myronmarston Feb 9, 2018
cf84052
Merge pull request #2511 from rspec/myron/bisect-forker
myronmarston Feb 13, 2018
bfb3ab8
Use https:// instead of git:// for README URLs
alyssais Feb 15, 2018
13e57c5
Merge pull request #2518 from alyssais/README_git_https
myronmarston Feb 15, 2018
b55a0be
Use https:// instead of git:// for DEV-README
alyssais Feb 15, 2018
5027abb
Merge pull request #2519 from alyssais/DEV-README_git_https
myronmarston Feb 15, 2018
a81b067
Use https:// instead of git:// URLs in READMEs (#1044)
alyssais Feb 15, 2018
50c770b
Updated travis build scripts (from rspec-dev)
benoittgt Feb 27, 2018
c1b5695
Deprecate safe_level of `ERB.new` in Ruby 2.6
koic Feb 28, 2018
f34255c
Revert change on rubocop_rspec_base from rspec-dev
benoittgt Feb 28, 2018
d9be90f
Revert to existing code to avoid failing in ruby 2.5
benoittgt Feb 28, 2018
b8225ba
Merge pull request #2524 from benoittgt/update-travis-build-scripts-2…
myronmarston Mar 1, 2018
fafbed5
Merge pull request #2525 from koic/deprecate_safe_level_of_erb_new_in…
myronmarston Mar 1, 2018
6fdcbfe
Remove confusing FIXME.
myronmarston Mar 1, 2018
1aad4d7
Updated travis build scripts (from rspec-dev)
benoittgt Mar 4, 2018
5f8aad1
Merge pull request #1050 from benoittgt/update-travis-build-scripts-2…
JonRowe Mar 4, 2018
a876039
Pin ffi on RBX
JonRowe Mar 18, 2018
250631c
Merge pull request #1052 from rspec/support_ffi_on_rbx
JonRowe Mar 19, 2018
5ef72a4
Don't write status file during dry runs.
garybernhardt Mar 27, 2018
d544875
Fix spec name/assertion mismatch.
garybernhardt Mar 27, 2018
5ec33d6
Merge pull request #2531 from garybernhardt/fix_spec_name_assertion_m…
Mar 27, 2018
a8aae27
Merge pull request #2532 from garybernhardt/dont_write_status_file_du…
myronmarston Mar 27, 2018
fe11ce3
Pin ffi on 1.8.7
JonRowe Apr 3, 2018
9d22620
Updated travis build scripts (from rspec-dev)
JonRowe Apr 5, 2018
cb87930
Updated travis build scripts (from rspec-dev)
JonRowe Apr 5, 2018
d21fb96
Merge pull request #2534 from rspec/update-travis-build-scripts-2018-…
JonRowe Apr 5, 2018
f4e95d4
Merge pull request #1054 from rspec/update-travis-build-scripts-2018-…
JonRowe Apr 5, 2018
d685257
Updated common markdown files (from rspec-dev) [ci skip]
benoittgt Apr 17, 2018
b1347ec
Updated common markdown files (from rspec-dev) [ci skip]
benoittgt Apr 17, 2018
400b1e0
Merge pull request #2537 from benoittgt/update-common-markdown-files-…
JonRowe Apr 18, 2018
a4f2547
Merge pull request #1055 from benoittgt/update-common-markdown-files-…
JonRowe Apr 18, 2018
7579efa
Add support for $XDG_CONFIG_HOME/rspec/options
Mange Apr 22, 2018
f583a52
fix ArgumentError: bad value for range
Systho Feb 8, 2018
c983ed9
Properly handle aggregate failures when parent and child are the same
benoittgt Apr 24, 2018
0b4fba0
Merge pull request #2539 from benoittgt/patch-1
xaviershay Apr 24, 2018
17485de
Changelog for #2515 + #2539
JonRowe Apr 25, 2018
7220c35
Avoid leaking max_formatted_output_length change
benoittgt Apr 25, 2018
b8d1c60
fixup! Add support for $XDG_CONFIG_HOME/rspec/options
Mange Apr 25, 2018
f165f86
fixup! Add support for $XDG_CONFIG_HOME/rspec/options
Mange Apr 25, 2018
8e0ba25
Change rdoc: the first word needs to match the variable
benoittgt Apr 25, 2018
3e5fc98
Merge pull request #1056 from benoittgt/samphippen/make-object-format…
JonRowe Apr 25, 2018
9989d87
Changelog for #951, #1056
JonRowe Apr 25, 2018
20788e1
Add doc to inform that max_formatted_output_length can be set to nil …
benoittgt Apr 25, 2018
016f336
squash! Add support for $XDG_CONFIG_HOME/rspec/options
Mange May 2, 2018
5e395e2
Merge pull request #2538 from Mange/xdg-config-home
myronmarston May 9, 2018
9d7d4d3
Changelog for #2538.
myronmarston May 9, 2018
7b6b9c3
Correct contributor surname.
JonRowe May 9, 2018
848fcb4
Update Should.md to suggest is_expected in one-liners (#1061)
adimasuhid Jun 6, 2018
ee52e31
Refine ExpectationNotMetError message
Jul 6, 2018
2930174
Merge pull request #1066 from nicktime/refine-expectationnotmeterror-…
JonRowe Jul 6, 2018
a132fa4
Change log for #1066
JonRowe Jul 6, 2018
25960d4
Add prepare_example_filtering method
p Jul 20, 2018
30d2110
Merge pull request #2552 from p-mongo/filter-examples-master
myronmarston Jul 22, 2018
c5ce1b2
Follow up to #2552.
myronmarston Jul 22, 2018
f6f200a
Update changelog for 3.8 release.
myronmarston Aug 4, 2018
0be12e3
Update changelog for 3.8 release.
myronmarston Aug 4, 2018
181a86e
Release 3.8.0.
myronmarston Aug 4, 2018
3e1b596
Release 3.8.0.
myronmarston Aug 4, 2018
76ed5cf
Bump version to 3.9.0.pre.
myronmarston Aug 4, 2018
96450f8
Bump version to 3.9.0.pre.
myronmarston Aug 4, 2018
3a0b5e4
call to_hash only when object is not a Hash in RSpec::Matcher::BuiltI…
eitoball Aug 6, 2018
31f108e
Forwardport 3.8.1 release notes.
myronmarston Aug 7, 2018
8f3b15c
typo
Deseao Sep 12, 2018
f855006
Merge pull request #2565 from Deseao/master
JonRowe Sep 12, 2018
2c19f38
Support checking initialize when checking respond_to(:new)
JonRowe Sep 13, 2018
e20fcac
Merge pull request #1072 from rspec/respond_to_checks_initialize_for_new
JonRowe Sep 18, 2018
8947285
Update changelog for #1072
JonRowe Sep 18, 2018
e3443a1
Updated travis build scripts (from rspec-dev)
JonRowe Sep 19, 2018
06fca6b
Updated travis build scripts (from rspec-dev)
JonRowe Sep 19, 2018
81b6039
Prevent Github vulnerability warning
JonRowe Sep 19, 2018
4e8af84
Merge pull request #1073 from jkowens/3-8-maintenance
JonRowe Sep 20, 2018
66a9fa4
Changelog for #1073
JonRowe Sep 20, 2018
5c37bd9
Merge pull request #1077 from rspec/update_ffi
JonRowe Sep 20, 2018
7751bc5
Handle unexpected KeyError / IndexError
JonRowe Sep 19, 2018
005757e
Merge pull request #1076 from rspec/prevent_unexpected_index_error
JonRowe Sep 20, 2018
68b89c1
Changelog for #1076
JonRowe Sep 20, 2018
73e7870
Merge pull request #2566 from rspec/update-travis-build-scripts-2018-…
JonRowe Sep 21, 2018
88c4382
Merge pull request #1075 from rspec/update-travis-build-scripts-2018-…
JonRowe Sep 21, 2018
d730c02
Single error when `--require`'d files fail to load (#2568)
deivid-rodriguez Oct 3, 2018
28ceaf2
Change log for #2568
JonRowe Oct 3, 2018
4f8abda
Improve changelog entry for #2568
JonRowe Oct 3, 2018
0025231
Merge 3-8-maintenance
JonRowe Oct 9, 2018
58f3821
Use RSpec module on describe calls in docs. (#2571)
peagha Oct 13, 2018
7288702
Clarify @tag (cuke style) functionality (#2573)
NickLaMuro Oct 18, 2018
9d1d0d6
Add project metadata to the gemspec (#2574)
orien Oct 19, 2018
c5cebd7
Add project metadata to the gemspec
orien Oct 19, 2018
5229572
Merge pull request #1081 from orien/project-metadata
JonRowe Oct 19, 2018
e5e4ad7
Replace "should" with "is expected to" in generated description (#2572)
johnsyweb Oct 31, 2018
3b6b9eb
Replace "should" with "is expected to" in Generated Descriptions (#1080)
johnsyweb Oct 31, 2018
7b98d0c
Changelog for #1080
JonRowe Oct 31, 2018
4a952a8
Prevent Github complaining about FFI (#2577)
JonRowe Nov 13, 2018
ea41bcd
Update terminology in BUILD_DETAIL.md (#1083)
JuanitoFatas Nov 14, 2018
cd07682
Update terminology in BUILD_DETAIL.md (#2576)
JuanitoFatas Nov 14, 2018
4fba098
Fix minor typo (#2578)
cbliard Nov 15, 2018
05611c5
Handle RSpec description with japanese char in CP932 encoded files
benoittgt Oct 19, 2018
0c9f05f
Enforce UTF-8 locale when running tests in appveyor
benoittgt Nov 16, 2018
8372e5c
choose encoded_description method content code earlier
benoittgt Nov 17, 2018
25f666a
Updated travis build scripts (from rspec-dev)
benoittgt Nov 17, 2018
fa47f4a
Updated travis build scripts (from rspec-dev)
benoittgt Nov 17, 2018
5df0e1e
Merge pull request #2580 from benoittgt/update-travis-build-scripts-2…
benoittgt Nov 17, 2018
fd3ccee
Merge pull request #1085 from benoittgt/update-travis-build-scripts-2…
benoittgt Nov 17, 2018
2089a1e
Fix nested `all` repeated failure message (#1086)
english Nov 23, 2018
499d7f3
Changelog for #1086
JonRowe Nov 23, 2018
c04c21f
Fix ws issues
JonRowe Nov 23, 2018
6c5628f
Merge pull request #2575 from benoittgt/deal_with_encoding_error
benoittgt Nov 27, 2018
f506d69
Change log for #2575
benoittgt Nov 27, 2018
dc0ecfd
Add chained matchers example to raise_error (#1087)
JackWink Nov 28, 2018
5e6171e
Fixed warnings: lib/rspec/core/metadata.rb:172: warning: Object#=~ is…
walf443 Dec 10, 2018
595747f
Changelog for #2582
JonRowe Dec 10, 2018
726821d
Updates from rspec-dev (2018-12-21) (#2585)
JonRowe Dec 21, 2018
3d98ae7
Updated travis build scripts (from rspec-dev) (#1091)
JonRowe Dec 21, 2018
3471b7c
Improve documentation surrounding array matchers (#1090)
JonRowe Dec 30, 2018
6a17d8a
Updated travis build scripts (from rspec-dev) (#1092)
JonRowe Dec 30, 2018
dc185ab
Updated travis build scripts (from rspec-dev) (#2587)
JonRowe Dec 30, 2018
fb5aa28
Updated travis build scripts (from rspec-dev) (#2588)
JonRowe Dec 31, 2018
861355e
Updated travis build scripts (from rspec-dev) (#1093)
JonRowe Jan 1, 2019
cc68276
Updated travis build scripts (from rspec-dev) (#2589)
JonRowe Jan 4, 2019
965be98
Updated travis build scripts (from rspec-dev) (#1094)
JonRowe Jan 4, 2019
1859032
Updated travis build scripts (from rspec-dev) (#1095)
JonRowe Jan 8, 2019
d598ecb
Updated travis build scripts (from rspec-dev) (#2591)
JonRowe Jan 8, 2019
e4e10d9
Prevent warning when let is overridden in an include (#2593)
JonRowe Feb 1, 2019
1a1cc94
Changelog for #2593
JonRowe Feb 1, 2019
11afda9
Pin gem versions on older JRuby and windows (#1098)
JonRowe Feb 2, 2019
b925766
Prevent ffi and childprocess causing build failures (#2595)
JonRowe Feb 2, 2019
cea8727
Cleanup after fixing JRuby (#1099)
JonRowe Feb 4, 2019
cb1b4ce
Cleanup after fixing JRuby (#2598)
JonRowe Feb 4, 2019
9b91877
Handle subject hash change after change matcher has run (#1100)
pirj Feb 8, 2019
03af89d
Changelog for #1100
JonRowe Feb 8, 2019
ef17239
Add support for --example-matches
tansaku Mar 1, 2019
d048c36
Change log for #2586
JonRowe Mar 1, 2019
6453153
Move Contributing section to later in README (#2607)
andyw8 Mar 3, 2019
74ad029
Fix classification in changelog
JonRowe Mar 4, 2019
cbd6d47
Did you mean functionality. (#2601)
obromios Mar 7, 2019
f17a414
Changelog for #2601
JonRowe Mar 7, 2019
0b4c98d
Update aruba dependency (#2609)
mvz Mar 24, 2019
4a29a4b
Updated travis build scripts (from rspec-dev) (#2612)
olleolleolle Apr 1, 2019
79f66d0
Updated travis build scripts (from rspec-dev) (#1109)
olleolleolle Apr 1, 2019
2d34748
Added warning message for BasicObject with unsupported matchers (#1107)
taichi-ishitani Apr 3, 2019
8d630d1
Changelog for #1107
JonRowe Apr 3, 2019
49fcbee
Updated travis build scripts (from rspec-dev) (#1110)
olleolleolle Apr 18, 2019
7727a07
Updated travis build scripts (from rspec-dev) (#2619)
olleolleolle Apr 18, 2019
7a5c9f7
Bump to 3.8.3
JonRowe Apr 20, 2019
856b8ab
"KindOf" matchers: Rescue `NoMethodError` instead of `respond_to?` ch…
FunkyloverOne May 3, 2019
12bca28
Changelog for #1112
JonRowe May 3, 2019
777d85f
Add a minimalist formatter (c/quickfix style output) (#2614)
smortex May 14, 2019
589971d
Changelog for #2164
JonRowe May 14, 2019
b5b0967
Typo: Changelog for #2614
benoittgt May 15, 2019
4b92e78
Rename minimal formatter to failure list formatter (#2624)
benoittgt May 16, 2019
63179c7
Rename option for FailureList formatter to "failures"
benoittgt May 16, 2019
b4af5c7
Rename option for FailureList formatter to "failures" (#2625)
benoittgt May 16, 2019
1044d4e
Deal with new ffi Ruby version requirement (#1115)
benoittgt May 20, 2019
861986d
Fix documentation for nested described_class
pirj May 25, 2019
d04d4de
Merge pull request #2629 from pirj/fix-described_class-in-nested-exam…
myronmarston May 27, 2019
0e3e8ed
Add support for running Rake task in a clean environment
JonRowe May 28, 2019
ed6cd8c
Exclude running rake task in a clean environment on 1.8.7 or JRuby
JonRowe May 28, 2019
276e38b
Support windows shell variables in isolation test
JonRowe May 28, 2019
e0ecbaf
Fix `define_derived_metadata` so that it supports cascades. (#2630)
myronmarston May 29, 2019
36fa69a
Allow fail_fast to be passed as a string
vfonic Jun 3, 2019
c408a2a
Changelog for #2634
JonRowe Jun 9, 2019
23c11fc
Fix RuboCop offences (#1104)
pirj Jun 9, 2019
721be32
Changelog for 3.8.4
JonRowe Jun 10, 2019
15d26fb
Merge branch 'master' into add-isolated-env-for-rake
JonRowe Jun 11, 2019
3950e4f
Remove whitespace
JonRowe Jun 11, 2019
2800fe1
Merge pull request #2632 from rspec/add-isolated-env-for-rake
JonRowe Jun 12, 2019
801230c
Assign `@metadata` before we apply derived metadata hooks.
myronmarston Jun 13, 2019
4c83f3c
3.8.1 released
JonRowe Jun 13, 2019
2a62a64
Merge pull request #2635 from rspec/myron/fix-shared-context-metadata…
myronmarston Jun 21, 2019
b1d15ac
Update Aruba to version 0.14.10 (#1118)
mvz Jun 21, 2019
a33901b
Fix changelog
JonRowe Jun 22, 2019
466fb75
Fix changelog
JonRowe Jun 22, 2019
45e5070
Add Expectations namespace to ExpectationTarget tags. (#1121)
castwide Jun 25, 2019
e1c0fb5
Changelog for 3.8.2
JonRowe Jun 29, 2019
8e3ce24
Updated travis build scripts (from rspec-dev)
JonRowe Jul 8, 2019
77dbc84
Merge pull request #2646 from rspec/update-travis-build-scripts-2019-…
JonRowe Jul 8, 2019
51ba183
Updated travis build scripts (from rspec-dev) (#1122)
JonRowe Jul 8, 2019
bf0c3a7
Updated travis build scripts (from rspec-dev)
benoittgt Jul 24, 2019
75f5cc9
Updated travis build scripts (from rspec-dev) (#1123)
benoittgt Jul 24, 2019
06370e3
Avoid failing on Ruby 2.6 on Windows and Appveyor
benoittgt Jul 24, 2019
acc65d9
Avoid installing ffi 1.11.0 on Ruby 1.9.x
benoittgt Jul 24, 2019
1fdfe8c
Add ipv6 localhost to drb allow list
JonRowe Aug 23, 2019
4ab6822
Merge pull request #2651 from rspec/update-travis-build-scripts-2019-…
JonRowe Aug 23, 2019
d65f0fa
Indent messages correctly in DocumentationFormatter.
ioquatix Jul 13, 2019
7fe1aef
Add spec for indented messages.
ioquatix Jul 13, 2019
5cef598
Buffer and flush messages, nested within example.
ioquatix Jul 15, 2019
9b62a68
Only buffer messages when within example.
ioquatix Aug 28, 2019
94c8b50
Correctly indent non-buffered messages.
ioquatix Aug 28, 2019
a69da24
RuboCop is stupid.
ioquatix Aug 28, 2019
acd7f02
Force --no-profile for output dependant specs
JonRowe Sep 2, 2019
0fcf18c
Merge pull request #2658 from rspec/make-specs-config-proof
JonRowe Sep 3, 2019
5e0cf19
Add support for not swallowing expectation errors when matching negat…
JonRowe Sep 3, 2019
fc242aa
Don't indent messages which are not buffered.
ioquatix Sep 9, 2019
e2171dc
Prefer to reuse array, track example state separately.
ioquatix Sep 9, 2019
a99d6d5
Rename `@example_started` to `@example_running`.
ioquatix Sep 10, 2019
0022831
Remove conditional around flushing messages.
ioquatix Sep 10, 2019
e570a0c
Merge pull request #2649 from ioquatix/patch-1
JonRowe Sep 10, 2019
25b10ef
Changlog for #2649
JonRowe Sep 10, 2019
443212a
Improve `change` mather detection of objects that have changed. (#1132)
JonRowe Sep 10, 2019
0a77e20
Change log for #1132
JonRowe Sep 10, 2019
0058c8e
Update docs for hooks specifying order of before/around/after
JonRowe Sep 11, 2019
8a287bd
Merge pull request #2661 from rspec/update-hook-order-docs
JonRowe Sep 12, 2019
771da6d
Prevent block-only matchers from being used with value expectation ta…
pirj Jul 26, 2019
110243e
Merge pull request #1125 from pirj/prevent-block-matchers-from-being-…
pirj Sep 14, 2019
4310cb9
Wrap up bug fixes
JonRowe Sep 17, 2019
b37f5ab
Notice when object implement inspect but == is different (#1126)
benoittgt Sep 20, 2019
2f0cbb2
Change log for #1126
JonRowe Sep 20, 2019
b64d67b
Pin minitest on older Rubies
JonRowe Sep 25, 2019
fc0bcb5
Pin minitest on older Rubies (#1133)
JonRowe Sep 25, 2019
b2df62e
Merge pull request #2664 from rspec/fix-build-by-pinning-minitest
JonRowe Sep 25, 2019
db05df7
Moving repo into its own subdirectory
p8 Oct 3, 2019
d92de42
Moving repo into its own subdirectory
p8 Oct 3, 2019
b98faa3
Merge remote-tracking branch 'rspec-core/master' into merge-rspec-repos
p8 Oct 3, 2019
ffdf784
Merge remote-tracking branch 'rspec-expectations/master' into merge-r…
p8 Oct 3, 2019
0f1d75f
Fix imports
p8 Oct 3, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--order rand
--warnings
110 changes: 110 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
inherit_from:
- .rubocop_rspec_base.yml

AllCops:
Exclude:
# This code was taken from the backports gem. We don't want to mess with it.
- lib/rspec/core/backport_random.rb

# This should go down over time.
Metrics/ClassLength:
Max: 330

Encoding:
Exclude:
- lib/rspec/core/formatters/exception_presenter.rb

# This should go down over time.
Metrics/AbcSize:
Max: 40

# This should go down over time.
Metrics/LineLength:
Max: 130

# This should go down over time.
Metrics/MethodLength:
Max: 37

# This should go down over time.
Metrics/CyclomaticComplexity:
Max: 12

Metrics/PerceivedComplexity:
Max: 15

Lint/HandleExceptions:
Exclude:
- lib/rspec/core/example.rb
- lib/rspec/core/mocking_adapters/mocha.rb
- lib/rspec/core/runner.rb
- lib/rspec/core/test_unit_assertions_adapter.rb

Lint/LiteralInInterpolation:
Enabled: false

Lint/NonLocalExitFromIterator:
Enabled: false

# We don't care about single vs double qoutes.
Style/StringLiteralsInInterpolation:
Enabled: false

Style/SymbolProc:
Enabled: false

Layout/SpaceAroundOperators:
AllowForAlignment: true

Layout/AccessModifierIndentation:
Enabled: false

Style/RegexpLiteral:
Enabled: false

# This could change depending of the style used
Layout/MultilineOperationIndentation:
Enabled: false

Style/BarePercentLiterals:
Enabled: false

# Exclude the default spec_helper to make it easier to uncomment out
# default settings (for both users and the Cucumber suite).
Style/BlockComments:
Exclude:
- lib/rspec/core/project_initializer/spec/spec_helper.rb

# Not sure what to do with this rule yet.
Style/ClassAndModuleChildren:
Exclude:
- lib/rspec/core/formatters.rb
- lib/rspec/core/notifications.rb
- lib/rspec/core/option_parser.rb
- lib/rspec/core/reporter.rb

Style/RaiseArgs:
Exclude:
- lib/rspec/core/configuration.rb
- lib/rspec/core/hooks.rb
- lib/rspec/core/option_parser.rb
- lib/rspec/core/pending.rb

Performance/RedundantBlockCall:
Exclude:
- lib/rspec/core/rake_task.rb

Lint/IneffectiveAccessModifier:
Exclude:
- lib/rspec/core/memoized_helpers.rb # Fixing this file was too much of a diff

Performance/Caller:
Exclude:
# The suggested fix for this cop only works on more recent rubies. The
# speed up can be substantial (previous optimization work I've done on
# RSpec involved caller optimization) but I haven't benchmarked this
# particular case to see if it's worth introducing version branching.
- 'lib/rspec/core/example_group.rb'

Metrics/BlockLength:
Max: 193
Loading