Skip to content

New empty_assignment_linter - #1637

Merged
MichaelChirico merged 7 commits into
mainfrom
empty-ass
Oct 8, 2022
Merged

MichaelChirico merged 7 commits into
mainfrom
empty-ass

Conversation

@MichaelChirico

Copy link
Copy Markdown
Collaborator

Part of #884

@codecov-commenter

codecov-commenter commented Oct 7, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #1637 (1cbdf8a) into main (bda3739) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1637   +/-   ##
=======================================
  Coverage   98.26%   98.27%           
=======================================
  Files          99      100    +1     
  Lines        4376     4394   +18     
=======================================
+ Hits         4300     4318   +18     
  Misses         76       76           
Impacted Files Coverage Δ
R/empty_assignment_linter.R 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@IndrajeetPatil

Copy link
Copy Markdown
Contributor

These should produce lints, right?

library(lintr)

{} -> x
x
#> NULL

lint(text = "{} -> x", linters = empty_assignment_linter())
lint(text = "{} ->> x", linters = empty_assignment_linter())

Created on 2022-10-08 with reprex v2.0.2

P.S. Funny branch name 😆

@MichaelChirico

Copy link
Copy Markdown
Collaborator Author

These should produce lints, right?

yep; had left it as a TODO but it's a trivial addition; done

P.S. Funny branch name

😅

Comment thread R/empty_assignment_linter.R Resolved

@IndrajeetPatil IndrajeetPatil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool stuff. Thanks!

@IndrajeetPatil
IndrajeetPatil self-requested a review October 8, 2022 06:23
@MichaelChirico
MichaelChirico merged commit 35f50e6 into main Oct 8, 2022
@MichaelChirico
MichaelChirico deleted the empty-ass branch October 8, 2022 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants