tidymodels / tidymodels/dials

Use "must" instead of "should" in error messages

Open
#436 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature tidy-dev-day :nerd_face:
Dominant language
R
Stars
117
Forks
36
Avg merge
1h 53m
Merged PRs (30d)
2

Description

If we throw an error, things actually must be what is required, not just should, so let's remove that ambiguity in the wording. The rlang type checkers also use "must" so that's added consistency.

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

The issue names no files, tests, or entry points. Search the repository for error messages using “should”, identify the messages intended by this issue, and run the relevant test suite after changing their wording to “must”; done means the targeted messages consistently use the required wording without breaking tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.