codegrip icon indicating copy to clipboard operation
codegrip copied to clipboard

Automatic reshaping based on line lengths?

Open multimeric opened this issue 1 year ago • 1 comments

It's a fairly big need to have an R tool that automatically fixes excessive line lengths, especially if you have a large code base which is failing the bioconductor checks because you have line lengths > 80. Styler, which is probably the most common automated styling package, doesn't implement an automatic line-length fixer, probably because it hasn't implemented the exact algorithm you have here. Had you considered either:

  • Implementing a simple algorithm that takes a line length and walks through the files in a project, and runs reshape on any line that exceeds this limit, or
  • Contributing an integration to styler so that it can use your reformatting as part of their automated styling?

multimeric avatar Jan 09 '23 02:01 multimeric