Skip to content

Commit f403522

Browse files
update link to design guide (#2022)
1 parent bd5ea4e commit f403522

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ works when passed to the `styles` parameter (#1924, @hedsnz).
249249
* `unreachable_code_linter()` ignores trailing comments if they match a closing nolint block (#1347, @AshesITR).
250250

251251
* New `function_argument_linter()` to enforce that arguments with defaults appear last in function declarations,
252-
see the [Tidyverse design guide](https://design.tidyverse.org/args-data-details.html) (#450, @AshesITR).
252+
see the [Tidyverse design guide](https://design.tidyverse.org/required-no-defaults.html) (#450, @AshesITR).
253253

254254
* New `allow_trailing` argument added to `assignment_linter()` to check when assignment operators are at the
255255
end of a line, and the value is on the following line (#1491, @ashbaldry)
@@ -330,7 +330,7 @@ works when passed to the `styles` parameter (#1924, @hedsnz).
330330
+ `open_curly_linter()`
331331
+ `paren_brace_linter()`
332332
* The `...` argument for `lint()`, `lint_dir()`, and `lint_package()` has been promoted to an earlier position to
333-
better match the [Tidyverse design principle](https://design.tidyverse.org/args-data-details.html) of
333+
better match the [Tidyverse design principle](https://design.tidyverse.org/required-no-defaults.html) of
334334
data->descriptor->details. This change enables passing objects to `...` without needing to specify non-required
335335
arguments, e.g. `lint_dir("/path/to/dir", linter())` now works without the need to specify `relative_path`.
336336
This affects some code that uses positional arguments (#935, @MichaelChirico).

R/function_argument_linter.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#' @evalRd rd_tags("function_argument_linter")
4444
#' @seealso
4545
#' - [linters] for a complete list of linters available in lintr.
46-
#' - <https://design.tidyverse.org/args-data-details.html>
46+
#' - <https://design.tidyverse.org/required-no-defaults.html>
4747
#' @export
4848
function_argument_linter <- function() {
4949
xpath <- paste(collapse = " | ", glue::glue("

man/function_argument_linter.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)