scalafix icon indicating copy to clipboard operation
scalafix copied to clipboard

Refactoring and linting tool for Scala

Results 131 scalafix issues
Sort by recently updated
recently updated
newest added

WIP pr for having `reflect3`, `cli3`, `testkit3` modules

Address #962 This is a protection to avoid invalid entries from creeping into the SymbolTable loading process. When this happens, we get a pretty bad error that looks like: `error:...

This reverts commit d25f5b6314f8177201f126d83c7c8e55047c8729.

When I run scalafix against my whole repo, I am getting the following error ``` error: Unable to load symbol table: error in opening zip file ``` It would be...

Opening this for visibility and to track the upcoming work for supporting Scala 3 - [x] running syntactic & semantic rules against Scala 3 sources - scalafix - ~new parameter...

scala3

# Adapt Explicit result types for Scala 3 ## The current state `ExplicitResultTypes` rule calls the scala 2 presentation compiler to infer types for each `val`, `def` or `var`. To...

ExplicitResultTypes
feature
scala3

Scalafix itself is being cross-published to Scala 3 as part of https://github.com/scalacenter/scalafix/issues/1583, which means more version-specific code. The last maintenance release of scala 2.11 being almost 5 years old, it...

I encountered this when writing a Mill plugin. When creating an `ExternalModule` you'll have code that looks like this: ```scala import mill._ import mill.define.Command import mill.define.ExternalModule import mill.eval.Evaluator import mill.main.EvaluatorScopt...

bug
ExplicitResultTypes

In [ExplicitResultTypes](https://github.com/scalacenter/scalafix/blob/main/scalafix-rules/src/main/scala/scalafix/internal/rule/ExplicitResultTypes.scala#L189) there's a block of code potentially broken and hard to read: ``` def qualifyingImplicit: Boolean = isImplicit && !isFinalLiteralVal def matchesMemberKindAndVisibility: Boolean = matchesMemberKind && matchesMemberVisibility def qualifyingNonImplicit:...

Since the introduction of [sbt-project-matrix](https://github.com/sbt/sbt-projectmatrix) in https://github.com/scalacenter/scalafix/pull/1528, there are compilation errors in IntelliJ when working on scalafix itself (apparently for both classic & BSP integrations), which prevents running tests from...

build