Appsilon / box.linters

lintr-compatible linters for box modules in R
https://appsilon.github.io/box.linters/
9 stars 0 forks source link

[STYLE_bug] When styling does not find a box::use, all lines are converted into NA #134

Open radbasa opened 1 month ago

radbasa commented 1 month ago
          @jakubnowicki Will need to go back to `box.linters::style_*`.

0.10.2 converts:

# View: Shiny modules and related code.
# https://go.appsilon.com/rhino-project-structure

to

NA
NA

Originally posted by @radbasa in https://github.com/Appsilon/rhino/issues/607#issuecomment-2300651692

radbasa commented 1 month ago

We can do either of two things:

  1. Implement and activate the exclude_files parameter of box.linters::style_box_use_dir()
  2. Fix the bug converting the comment-only file to NA.