ubiquibot / plugins-wishlist

0 stars 2 forks source link

Rewards for simplifying/cleaning code #33

Open 0x4007 opened 1 month ago

0x4007 commented 1 month ago

I was working on this pull and thought it could be cool to have a small reward for simplifying the codebase.

Diff stats:

+5426
-6760

A simple formula could be to divide by 10 then subtract. i.e. 676 - 542.6 = $133.4

With our strict linter rules we should be able to avoid BS refactors.

Rationale

Generally codebase maintainers should try and keep the code clean and simple. This offers a direct financial incentive for everybody to do so. Our task oriented system is not very compatible with the continuous nature of code simplification and reduction, so this plugin addresses that.

Filters

We can use filename regex to make specific types of files eligible such as *.ts, *.sol

Remark

This is intended to be stacked on regular task related pulls as well (it doesn't need to be a dedicated refactor pull.)

gentlementlegen commented 1 month ago

Sounds a bit dangerous if we don't ignore some files, we might need some filters.