You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
paren_brace_linter false positive within regex strings: "(match_group){quantifier}" #441
I believe the commit that was tagged as v2.0.1 came from Feb 2020 (01e57c2). It's simply that the released 2.0.1 version didn't get tagged on github at the time that it was released. (That is, in December 2020 @AshesITR ensured that the CRAN-destined v2.0.1 commit from Feb 2020 was tagged with the git tag "v2.0.1")
If having this paren-brace issue solved is necessary, then use the github master. I always use the github master in continuous integration. Locally, I use multiple R environments: using the CRAN-lintr when working on stuff other than lintr.
Activity
linusjf commentedon Jan 27, 2020
russHyde commentedon Jan 27, 2020
This seems to be a more general issue with using regex-based linters.
For example, the following throws with
equals_na_linter, despite the NA comprison code actually being in a string, or a commentSimilarly
no_tab_linterthrows on this:linusjf commentedon Jan 31, 2020
This can be mitigated by allowing the # nolint comment to specify the linter to be turned off.
eg,
#nolint paren_brace_linter
bersbersbers commentedon Feb 23, 2021
It seems this did not make it into a release: it was fixed on Dec 4, 2020, and there was a 2.0.1 release on Dec 5, 2020: https://github.com/jimhester/lintr/releases/tag/v2.0.1
However, 2.0.1 on CRAN is from Feb 19, 2020: https://cran.r-project.org/web/packages/lintr/index.html
russHyde commentedon Feb 23, 2021
I believe the commit that was tagged as v2.0.1 came from Feb 2020 (01e57c2). It's simply that the released 2.0.1 version didn't get tagged on github at the time that it was released. (That is, in December 2020 @AshesITR ensured that the CRAN-destined v2.0.1 commit from Feb 2020 was tagged with the git tag "v2.0.1")
bersbersbers commentedon Feb 23, 2021
Sounds convincing, but that means there hasn't been a release in over a year. Would you recommend installing from GitHub master rather than from CRAN?
russHyde commentedon Feb 23, 2021
If having this paren-brace issue solved is necessary, then use the github master. I always use the github master in continuous integration. Locally, I use multiple R environments: using the CRAN-lintr when working on stuff other than lintr.