sasjs / lint

Linting and formatting for SAS® code

Home Page:https://sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`maxLineLengthHeader` feature

allanbowe opened this issue · comments

Comments can contain long urls, also table markdown, that cannot be shortened

We should provide an automatic exception for these in the line length limit.

image

Might be better to have the ability to specify a separate limit rather than totally ignore long lines in comment blocks.

Or perhaps something that can detect when it is a single long "word" that is exceeding the line limit. That would handle the example of the long URL in the comment block.

@sasutils - I like your idea of ignoring a "word" (ie, string without a space)! Thanks for the suggestion!

On retrospect, the single word idea won't work as we also need it to work for table markdown (where each row must be on one line, and can contain spaces)

So your first idea is on the table. A new config option maxLineLengthHeader (to work only with the header section) that will default to max(maxLineLengthHeader,maxLineLength)

via Hubstaff
User: Sabir Hassan

Project: SASjs lint - https://app.hubstaff.com/projects/2310878
Date Range: 01/09/23 - 01/10/23
Work session total: 9:19:59
Billable: Yes

Grand total: 9:19:59

🎉 This issue has been resolved in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀