annotaterb icon indicating copy to clipboard operation
annotaterb copied to clipboard

Rubocop Layout/LineLength

Open jruiz-archesys opened this issue 4 months ago • 3 comments

Currently an issue I'm running into is compatibility with the Rubocops cop for Layout/LineLength.

When the schema output exceeds that setting, it would be nice if AnnotateRB could be configured to limit the line length of comments to make them wrap in an intuitive way.

Opening an issue, but I'm also going to see if I can take a look at this as well.

jruiz-archesys avatar Aug 29 '25 17:08 jruiz-archesys

What line length limits are you using?

drwl avatar Aug 29 '25 19:08 drwl

For the convention: Layout/LineLength our setting is 120 characters. A line that is output for an index is 188 characters. The output exceeds the cop and flags that as an offense.

jruiz-archesys avatar Sep 02 '25 03:09 jruiz-archesys

If you want to try taking this on in a PR, feel free to do so. I'll also mark this issue with the help wanted label. I don't have time to take this on.

Thinking bigger picture here, it's not immediately clear to me how this might be handled because people have annotations setup differently. I'm open to thinking through this with you if you have thoughts.

drwl avatar Sep 20 '25 01:09 drwl