typelevel / typelevel/typelevel-scalafix

Rewrite rules for `sequence_`, `traverse_` and their counterparts

Open
#209 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Scala
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Since Cats v2.13.0 the following rewrites can be recommended:

  • sequence_ -> sequenceVoid
  • traverse_ -> traverseVoid
  • nonEmptySequence_ -> nonEmptySequenceVoid
  • nonEmptyTraverse_ -> nonEmptyTraverseVoid
  • parSequence_ -> parSequenceVoid
  • parTraverse_ -> parTraverseVoid
  • parNonEmptySequence_ -> parNonEmptySequenceVoid
  • parNonEmptyTraverse_ -> parNonEmptyTraverseVoid

See typelevel/cats#4611 and typelevel/cats#4682 for more details.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing Scalafix rewrite rules and their tests for sequence_ and traverse_ methods. Use the Cats references in the issue to confirm the v2.13.0 naming, then cover all eight listed rewrites and verify that the corresponding tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.