Skip to content

enable return_linter - #725

Open
alanahjonas95 wants to merge 11 commits into
mainfrom
aj641247-gsk-fix-return-linter
Open

enable return_linter#725
alanahjonas95 wants to merge 11 commits into
mainfrom
aj641247-gsk-fix-return-linter

Conversation

@alanahjonas95

@alanahjonas95 alanahjonas95 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

resolves #726

alanahjonas95 and others added 5 commits July 21, 2026 10:03
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@alanahjonas95
alanahjonas95 requested a review from dragosmg July 21, 2026 10:17
@alanahjonas95 alanahjonas95 self-assigned this Jul 21, 2026

@dragosmg dragosmg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the repeated comment

Comment thread R/tfrmt.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/col_plan.R Outdated
Comment thread R/tfrmt.R Outdated
alanahjonas95 and others added 6 commits July 28, 2026 12:12
Replace removed return() statements with explicit return() calls that include
'# nolint: return_linter' comments. These early returns (returns in the middle
of functions) are necessary for proper control flow and should not trigger
the return_linter when enabled.

Changes in R/col_plan.R:
- Restore return(NULL) with nolint in check_span_structure_dots()
- Restore return(rlang::quo(!!x)) with nolint in nested conditionals
- Restore return(rlang::eval_tidy(x)) with nolint for quo calls
- Restore return(as_length_one_quo.character(x)) with nolint
- Add nolint to return(TRUE) in is_valid_tidyselect_call()
- Add nolint to return(TRUE) in is_valid_quo_call()
- Restore return() calls in check_col_plan_dots() with nolint comments

Changes in R/tfrmt.R:
- Add nolint to return(invisible(NULL)) in check_tfrmt()
- Add nolint to return(quote(expr = )) in tfrmt_find_args()
- Add nolint to return(arg_call) for identical checks
- Add nolint to return(as_vars(...)) in nested conditionals
- Add nolint to return(as_length_one_quo(...)) for quo args
- Add nolint to return(arg_call_results\) for normal args
- Add nolint to return(arg_val) at end of argument processing

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🦺 Coverage summary

badge

🟢 Merging PR #725 (ee6f561) into main (4315d3d) will not change overall coverage.
🔴 Diff coverage is 82.6% (19 out of 23 modified lines are covered by tests). It's good practice to aim for at least 97.3% (the base branch test coverage).

♻️ Comment updated with the latest results.

Created on 2026-08-25 with covr2gh v0.0.0.9041.

@alanahjonas95
alanahjonas95 requested a review from dragosmg August 25, 2026 13:16
@alanahjonas95

Copy link
Copy Markdown
Collaborator Author

@dragosmg ive put back the returns and added #nolint for the early returns in tfrmt.R and col_plan.R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

return_linter

2 participants