Appsilon / box.linters

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

Less verbose box_alphabetical_calls_linter() #119

Closed radbasa closed 4 months ago

radbasa commented 4 months ago

Issue #118

Description

Definition of Done

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.00%. Comparing base (1a31217) to head (a744f64).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #119 +/- ## ======================================= Coverage 97.99% 98.00% ======================================= Files 22 22 Lines 1046 1050 +4 ======================================= + Hits 1025 1029 +4 Misses 21 21 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

kamilzyla commented 4 months ago

Nice, kudos for quick reaction! :tada:

I'd suggest to make this linter less verbose by default and not even provide any switch. I think just pointing to the beginning of the unsorted list is enough; pointing to each element separately is just noise.

Idea: perhaps it would be even better to point to the first out-of-order element of the list. This would be helpful in situations where it is not clear what is the alphabetical order (e.g. due to special characters).

radbasa commented 4 months ago

That "point to the first out-of-order element of the [function] list" is a great idea.