awesome icon indicating copy to clipboard operation
awesome copied to clipboard

CI: Luacheck rules seem to have changed

Open sclu1034 opened this issue 3 years ago • 4 comments

I'm not sure when exactly it started, but Luacheck is now showing warnings for things that haven't changed in years. Mainly in two categories:

  • 'not (x >= y)' can be replaced by 'x < y'
  • used variable '_<something>' with unused hint

Neither of those is hard to fix.

The question is:

  1. Do we want to keep those Luacheck rules (which are usually derived from community best practices) and change our code?
  2. Or do we want to disable the rules project-wide to keep the code unchanged?

Disabling the rules individually at the affected places would be a third option, but I think it would be better to keep those checks consistent across the code base.

sclu1034 avatar May 31 '22 10:05 sclu1034

I have most of the PR ready, assigning to me

Elv13 avatar May 31 '22 15:05 Elv13

I have most of the PR ready, assigning to me

Hello Elv. Do you have any ETA for this PR? (Just a thought I had, because we have a new PR with this error. No pressure)

Aire-One avatar Jun 10 '22 15:06 Aire-One

yeah it's breaking automerge atm

actionless avatar Jun 27 '22 13:06 actionless

I nearly finished the PR yesterday while chatting with a few of you. I know it's taking time. Sorry. It's not just a find and replace to remove the underscores. Those underscores are there mostly because 1: they shadow something else or 2: they are there on purpose to mark undocumented/private parameters. So it's rather important to properly investigate each of them (hundreds of them).

On Mon, Jun 27, 2022, 9:43 AM Actionless Loveless @.***> wrote:

yeah it's breaking automerge atm

— Reply to this email directly, view it on GitHub https://github.com/awesomeWM/awesome/issues/3627#issuecomment-1167346977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTDIGG5Q5OKL5FX7WGOQDVRHK43ANCNFSM5XNDFATA . You are receiving this because you were assigned.Message ID: @.***>

Elv13 avatar Jun 27 '22 17:06 Elv13

Implemented in #3655.

sclu1034 avatar Sep 12 '22 14:09 sclu1034