Skip to content
#

quality

Automate your code review with style, quality, security, and test‑coverage checks when you need them most. Code quality is intended to keep complexity down and runtime up.

Here are 539 public repositories matching this topic...

phpinsights
Pomis
Pomis commented Apr 27, 2022

What rule do you want to change?
prefer-moving-to-variable

How will the change be implemented? (New option, new default behavior, etc.)?
Make it a metric with adjustable number of repeats to trigger the lint

metrics:
  - allowed-duplicated-chains: 2

Please provide some example code that this change will affect:
Now this fragment gets lint warning:

      Bot
type: enhancement good first issue area-rules
opensource
tunnckoCore
tunnckoCore commented Feb 9, 2018

Which will behave like that

let settings = await prettyConfig('rollup', { configFiles })

if (!settings) {
  settings = await prettyConfig('rolldown', { configFiles })
}
console.log(settings)

instead of above we can hide it to look like that

const settings = await prettyConfig(['rollup', 'rolldown'], { configFiles })

if (!settings) {
  console.log('no config file
Type: Enhancement good first issue Priority: Medium Status: Available