Skip to content

Commit 9bf73cf

Browse files
Retire Github comment bot settings and tests (#2537)
* Retire Github comment bot settings and tests Follow-up on https://github.com/r-lib/lintr/pull/1902/files More discussion in #1558 * piggyback on the existing NEWS item
1 parent d22e6ae commit 9bf73cf

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Adjusted various lint messages for consistency in readability (#1330, @MichaelChirico). In general, we favor lint messages to be phrased like "Action, reason" to but the "what" piece of the message front-and-center. This may be a breaking change for code that tests the specific phrasing of lints.
1515
* `extraction_operator_linter()` is deprecated. Although switching from `$` to `[[` has some robustness benefits for package code, it can lead to non-idiomatic code in many contexts (e.g. R6 classes, Shiny applications, etc.) (#2409, @IndrajeetPatil). To enable the detection of the `$` operator for extraction through partial matching, use `options(warnPartialMatchDollar = TRUE)`.
1616
* `unnecessary_nested_if_linter()` is deprecated and subsumed into the new/more general `unnecessary_nesting_linter()`.
17-
* Drop support for posting GitHub comments from inside Travis, Wercker, and Jenkins CI tools (spurred by #2148, @MichaelChirico). We rely on GitHub Actions for linting in CI, and don't see any active users relying on these alternatives. We welcome and encourage community contributions to get support for different CI system going again.
17+
* Drop support for posting GitHub comments from inside GitHub comment bot, Travis, Wercker, and Jenkins CI tools (spurred by #2148, @MichaelChirico). We rely on GitHub Actions for linting in CI, and don't see any active users relying on these alternatives. We welcome and encourage community contributions to get support for different CI system going again.
1818

1919
## Bug fixes
2020

R/zzz.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ rd_undesirable_operators <- function() {
257257
#' - `exclusions`: a list of exclusions, see [exclude()] for a complete description of valid values.
258258
#' - `cache_directory`: location of cache directory
259259
#' - `comment_token`: a GitHub token character
260-
#' - `comment_bot`: decides if lintr comment bot on GitHub can comment on commits
261260
#' - `error_on_lint`: decides if error should be produced when any lints are found
262261
#'
263262
#' There are no settings without defaults, i.e., this list describes every valid setting.
@@ -328,7 +327,6 @@ settings <- new.env(parent = emptyenv())
328327
),
329328
54L - 13L
330329
),
331-
comment_bot = logical_env("LINTR_COMMENT_BOT") %||% TRUE,
332330
error_on_lint = logical_env("LINTR_ERROR_ON_LINT") %||% FALSE
333331
))
334332

man/default_settings.Rd

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

tests/testthat/test-settings.R

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,6 @@ test_that("validate_config_file() detects improperly-formed settings", {
188188
writeLines('exclude: "("', .lintr)
189189
expect_error(lint_dir(), "Setting 'exclude' should be a single regular expression, not '('", fixed = TRUE)
190190

191-
writeLines('comment_bot: "a"', .lintr)
192-
expect_error(lint_dir(), "Setting 'comment_bot' should be TRUE or FALSE, not 'a'", fixed = TRUE)
193-
194-
writeLines("comment_bot: NA", .lintr)
195-
expect_error(lint_dir(), "Setting 'comment_bot' should be TRUE or FALSE, not 'NA'", fixed = TRUE)
196-
197-
writeLines("comment_bot: c(TRUE, FALSE)", .lintr)
198-
expect_error(lint_dir(), "Setting 'comment_bot' should be TRUE or FALSE, not 'TRUE, FALSE'", fixed = TRUE)
199-
200191
writeLines("linters: list(1)", .lintr)
201192
expect_error(lint_dir(), "Setting 'linters' should be a list of linters", fixed = TRUE)
202193

0 commit comments

Comments
 (0)