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
Is it possible to add directives to turn off formatter and linter for auto-generated .R files by httptest2::with_mock_dir()?
I work with CI systems that mark builds as failed if any lints or formatting issues are found. This is indeed going to be the case for these auto-generated files. But the code in these files need not follow a style guide or linter recommendations. Additionally, it's not even in the control of the user how this output is generated. Therefore, it would be nice if {httptest2} itself generated these files with ignore directives.
Solution
Tidyverse style guide formatter and linter can be turned off like so:
# nolint start# styler: off# add code for <httr2_response> class here...# styler: on# nolint end
The text was updated successfully, but these errors were encountered:
Preamble
Is it possible to add directives to turn off formatter and linter for auto-generated
.R
files byhttptest2::with_mock_dir()
?I work with CI systems that mark builds as failed if any lints or formatting issues are found. This is indeed going to be the case for these auto-generated files. But the code in these files need not follow a style guide or linter recommendations. Additionally, it's not even in the control of the user how this output is generated. Therefore, it would be nice if
{httptest2}
itself generated these files with ignore directives.Solution
Tidyverse style guide formatter and linter can be turned off like so:
The text was updated successfully, but these errors were encountered: