scalameta/metals

Clean constructor parameters for `Indexer` and `ScalaCli`

Open

#4788 aperta il 1 gen 2023

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Scala (421 fork)batch import
good first issueimprovementtech debt

Metriche repository

Star
 (2300 star)
Metriche merge PR
 (Merge medio 3g 11h) (122 PR mergiate in 30 g)

Descrizione

Another follow up after https://github.com/scalameta/metals/pull/4776.

There's need to pass every constructor argument as a function in scala.meta.internal.metals.Indexer and scala.meta.internals.ScalaCli

  • Usually, replacing () =>, should be straighforward change, but sometimes () => was used to capture mutable state.
  • probably Indexerand ScalaCli aren't the only ones which can be refactored. Person doing this task can browse other classes (optional)

Guida contributor