rubocop-rspec

Code style checking for RSpec files.

MIT License

Downloads
177.8M
Stars
789
Committers
166

Bot releases are hidden (Show)

rubocop-rspec - RuboCop RSpec v2.28.0

Published by ydah 7 months ago

  • Extract RSpec Rails cops to a separate repository, rubocop-rspec_rails. The rubocop-rspec_rails repository is a dependency of rubocop-rspec and the cops related to rspec-rails are aliased (RSpec/Rails/Foo == RSpecRails/Foo) until v3.0 is released, so the change will be invisible to users until then. (@ydah)
rubocop-rspec - RuboCop RSpec v2.27.1

Published by bquorning 8 months ago

  • Fix a false positive for RSpec/RepeatedSubjectCall when subject.method_call. (@ydah)
  • Add configuration option OnlyStaticConstants to RSpec/DescribedClass. (@ydah)
rubocop-rspec - RuboCop RSpec v2.27.0

Published by bquorning 8 months ago

  • Add new RSpec/IsExpectedSpecify cop. (@ydah)
  • Add new RSpec/RepeatedSubjectCall cop. (@drcapulet)
  • Add support for assert_true, assert_false, assert_not_equal, assert_not_nil, *_empty, *_predicate, *_kind_of, *_in_delta, *_match, *_instance_of and *_includes assertions in RSpec/Rails/MinitestAssertions. (@ydah, @G-Rath)
  • Support asserts with messages in Rspec/BeEmpty. (@G-Rath)
  • Fix a false positive for RSpec/ExpectActual when used with rspec-rails routing matchers. (@naveg)
  • Add configuration option ResponseMethods to RSpec/Rails/HaveHttpStatus. (@ydah)
  • Fix a false negative for RSpec/DescribedClass when class with constant. (@ydah)
  • Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description. (@ydah)
  • Fix an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0). (@ydah)
rubocop-rspec - RuboCop RSpec v2.26.1

Published by bquorning 10 months ago

  • Fix an error for RSpec/SharedExamples when using examples without argument. (@ydah)
rubocop-rspec - RuboCop RSpec v2.26.0

Published by bquorning 10 months ago

  • Add new RSpec/RedundantPredicateMatcher cop. (@ydah)
  • Add new RSpec/RemoveConst cop. (@swelther)
  • Add support for correcting "it will" (future tense) for RSpec/ExampleWording. (@jdufresne)
  • Add support for symbol style for RSpec/SharedExamples. (@jessieay)
  • Ensure PendingWithoutReason can detect violations inside shared groups. (@robinaugh)
rubocop-rspec - RuboCop RSpec v2.25.0

Published by bquorning 12 months ago

  • Add support single quoted string and percent string and heredoc for RSpec/Rails/HttpStatus. (@ydah)
  • Change to be inline disable for RSpec/SpecFilePathFormat like RSpec/FilePath. (@ydah)
  • Fix a false positive for RSpec/MetadataStyle with example groups having multiple string arguments. (@franzliedke)
rubocop-rspec - RuboCop RSpec v2.24.1

Published by bquorning about 1 year ago

  • Fix an error when using RSpec/FilePath and revert to enabled by default. If you have already moved to RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat, disable RSpec/FilePath explicitly as Enabled: false. The RSpec/FilePath before migration and the RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat as the target are available respectively. (@ydah)
rubocop-rspec - RuboCop RSpec v2.24.0

Published by bquorning about 1 year ago

  • Split RSpec/FilePath into RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat. RSpec/FilePath cop is enabled by default, the two new cops are pending and need to be enabled explicitly. (@ydah)
  • Add new RSpec/Eq cop. (@ydah)
  • Add RSpec/MetadataStyle and RSpec/EmptyMetadata cops. (@r7kamura)
  • Add support RSpec/Rails/HttpStatus when have_http_status with string argument. (@ydah)
  • Fix an infinite loop error when RSpec/ExcessiveDocstringSpacing finds a description with non-ASCII leading/trailing whitespace. (@bcgraham)
  • Fix an incorrect autocorrect for RSpec/ReceiveMessages when return values declared between stubs. (@marocchino)
  • Fix a false positive RSpec/Focus when chained method call and inside define method. (@ydah)
rubocop-rspec - RuboCop RSpec v2.23.2

Published by bquorning about 1 year ago

  • Fix an incorrect autocorrect for RSpec/ReceiveMessages when method is only non-word character. (@marocchino)
  • Fix a false positive for RSpec/ReceiveMessages when return with splat. (@marocchino)
rubocop-rspec - RuboCop RSpec v2.23.1

Published by bquorning about 1 year ago

  • Mark to Safe: false for RSpec/Rails/NegationBeValid cop. (@ydah)
  • Declare autocorrect as unsafe for RSpec/ReceiveMessages. (@bquorning)
rubocop-rspec - RuboCop RSpec v2.23.0

Published by bquorning about 1 year ago

  • Add new RSpec/Rails/NegationBeValid cop. (@ydah)
  • Fix a false negative for RSpec/ExcessiveDocstringSpacing when finds description with em space. (@ydah)
  • Fix a false positive for RSpec/EmptyExampleGroup when example group with examples defined in if branch inside iterator. (@ydah)
  • Update the message output of RSpec/ExpectActual to include the word 'value'. (@corydiamand)
  • Fix a false negative for RSpec/Pending when it without body. (@ydah)
  • Add new RSpec/ReceiveMessages cop. (@ydah)
  • Change default.yml path to use **/spec/* instead of spec/*. (@ydah)
  • Add AllowedIdentifiers and AllowedPatterns configuration option to RSpec/IndexedLet. (@ydah)
  • Fix RSpec/NamedSubject when block has no body. (@splattael)
  • Fix RSpec/LetBeforeExamples autocorrect incompatible with RSpec/ScatteredLet autocorrect. (@ydah)
  • Update RSpec/Focus to support shared_context and shared_examples (@tmaier)
rubocop-rspec - RuboCop RSpec v2.22.0

Published by bquorning over 1 year ago

  • Extract factory_bot cops to a separate repository, rubocop-factory_bot. The rubocop-factory_bot repository is a dependency of rubocop-rspec and the factory_bot cops are aliased (RSpec/FactoryBot/Foo == FactoryBot/Foo) until v3.0 is released, so the change will be invisible to users until then. (@ydah)
rubocop-rspec - RuboCop RSpec v2.21.0

Published by bquorning over 1 year ago

  • Fix a false positive in RSpec/IndexedLet with suffixes after index-like numbers. (@pirj)
  • Fix an error for RSpec/Rails/HaveHttpStatus with comparison with strings containing non-numeric characters. (@ydah)
  • Fix an error for RSpec/MatchArray when match_array with no argument. (@ydah)
  • Add support a_block_changing and changing for RSpec/ChangeByZero. (@ydah)
  • Drop Ruby 2.6 support. (@ydah)
rubocop-rspec - RuboCop RSpec v2.20.0

Published by bquorning over 1 year ago

  • Add new RSpec/IndexedLet cop. (@dmitrytsepelev)
  • Add new RSpec/BeEmpty cop. (@ydah, @bquorning)
  • Add autocorrect support for RSpec/ScatteredSetup. (@ydah)
  • Add support be_status style for RSpec/Rails/HttpStatus. (@ydah)
  • Add support for shared example groups to RSpec/EmptyLineAfterExampleGroup. (@pirj)
  • Add support for RSpec/HaveHttpStatus when using response.code. (@ydah)
  • Fix order of expected and actual in correction for RSpec/Rails/MinitestAssertions (@mvz)
  • Fix a false positive for RSpec/DescribedClassModuleWrapping when RSpec.describe numblock is nested within a module. (@ydah)
  • Fix a false positive for RSpec/FactoryBot/ConsistentParenthesesStyle inside &&, || and :? when omit_parentheses is on (@dmitrytsepelev)
  • Fix a false positive for RSpec/PendingWithoutReason when pending/skip has a reason inside an example group. (@ydah)
  • Fix a false negative for RSpec/RedundantAround when redundant numblock around. (@ydah)
  • Change RSpec/ContainExactly to ignore calls with no arguments, and change RSpec/MatchArray to ignore calls with an empty array literal argument. (@ydah, @bquorning)
  • Make RSpec/MatchArray and RSpec/ContainExactly pending. (@ydah)
rubocop-rspec - RuboCop RSpec v2.19.0

Published by bquorning over 1 year ago

  • Add new RSpec/PendingBlockInsideExample cop. (@ydah)
  • Add new RSpec/RedundantAround cop. (@r7kamura)
  • Add new RSpec/Rails/TravelAround cop. (@r7kamura)
  • Add new RSpec/ContainExactly and RSpec/MatchArray cops. (@faucct)
  • Rename RSpec/PendingBlockInsideExample cop to RSpec/SkipBlockInsideExample. (@pirj)
  • Fix a false positive for RSpec/ContextWording when context is interpolated string literal or execute string. (@ydah)
  • Fix a false positive for RSpec/DescribeMethod when multi-line describe without # and . at the beginning. (@ydah, @pirj)
  • Fix a false positive for RSpec/VariableName when inside non-spec code. (@ydah)
  • Fix a false positive for RSpec/VariableDefinition when inside non-spec code. (@ydah)
  • Fix a false positive for RSpec/PendingWithoutReason when not inside example and pending/skip with block. (@ydah, @pirj)
  • Fix a false positive for RSpec/PendingWithoutReason when skip is passed a block inside example. (@ydah, @pirj)
  • Fix an incorrect autocorrect for RSpec/VerifiedDoubleReference when namespaced class. (@ydah)
  • Deprecate send_pattern/block_pattern/numblock_pattern helpers in favour of using node pattern explicitly. (@pirj, @ydah)
rubocop-rspec - RuboCop RSpec v2.18.1

Published by bquorning over 1 year ago

  • Add rubocop-capybara version constraint to prevent sudden cop enabling when it hits 3.0. (@pirj)
rubocop-rspec - RuboCop RSpec v2.18.0

Published by bquorning almost 2 years ago

  • Extract Capybara cops to a separate repository, rubocop-capybara. The rubocop-capybara repository is a dependency of rubocop-rspec and the Capybara cops are aliased (RSpec/Capybara/Foo == Capybara/Foo) until v3.0 is released, so the change will be invisible to users until then. (@pirj)
rubocop-rspec - RuboCop RSpec v2.17.1

Published by bquorning almost 2 years ago

  • Fix a false negative for RSpec/Pending when using skipped in metadata is multiline string. (@ydah)
  • Fix a false positive for RSpec/NoExpectationExample when using skipped in metadata is multiline string. (@ydah)
  • Fix a false positive for RSpec/ContextMethod when multi-line context with # at the beginning. (@ydah)
  • Fix an incorrect autocorrect for RSpec/PredicateMatcher when multiline expect and predicate method with heredoc. (@ydah)
  • Fix a false positive for RSpec/PredicateMatcher when include with multiple argument. (@ydah)
rubocop-rspec - RuboCop RSpec v2.17.0

Published by bquorning almost 2 years ago

  • Fix a false positive for RSpec/PendingWithoutReason when pending/skip is argument of methods. (@ydah)
  • Add new RSpec/Capybara/MatchStyle cop. (@ydah)
  • Add new RSpec/Rails/MinitestAssertions cop. (@ydah)
  • Fix a false positive for RSpec/PendingWithoutReason when not inside example. (@ydah)
  • Fix a false negative for RSpec/PredicateMatcher when using include and respond_to. (@ydah)
  • Fix a false positive for RSpec/StubbedMock when stubbed message expectation with a block and block parameter. (@ydah)
rubocop-rspec - RuboCop RSpec v2.16.0

Published by bquorning almost 2 years ago

  • Add new RSpec/FactoryBot/FactoryNameStyle cop. (@ydah)
  • Improved processing speed for RSpec/Be, RSpec/ExpectActual, RSpec/ImplicitExpect, RSpec/MessageSpies, RSpec/PredicateMatcher and RSpec/Rails/HaveHttpStatus. (@ydah)
  • Fix wrong autocorrection in n_times style on RSpec/FactoryBot/CreateList. (@r7kamura)
  • Fix a false positive for RSpec/FactoryBot/ConsistentParenthesesStyle when using generate with multiple arguments. (@ydah)
  • Mark RSpec/BeEq as Safe: false (@r7kamura)
  • Add RSpec/DuplicatedMetadata cop. (@r7kamura)
  • Mark RSpec/BeEql as Safe: false. (@r7kamura)
  • Add RSpec/PendingWithoutReason cop. (@r7kamura)