You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some projects that happen to have a very long fully qualified project name and they use nested imports to shorten boilerplate. A good example of this is pekko, where we have a very long base package name (i.e. org.apache.pekko) and in order to avoid having to repeat org.apache.pekko multiple times (both in imports, scaladoc documentation and when we have to explicitly refer to a type).
and also in that file there is documentation that refers to pekko
/** * Loads and instantiates a given [[FailureDetector]] implementation. The class to be loaded must have a constructor * that accepts a [[com.typesafe.config.Config]] and an [[pekko.event.EventStream]] parameter. Will throw ConfigurationException * if the implementation cannot be loaded. * * @paramfqcn Fully qualified class name of the implementation to be loaded. * @paramconfig Configuration that will be passed to the implementation * @paramsystem ActorSystem to be used for loading the implementation * @return A configured instance of the given [[FailureDetector]] implementation*/
And ontop of that there happens to be a package named kafka under pekko, i.e. org.apache.pekko.kafka. The correct way to handle this is that if we are referring to kafka that that should be under org.apache.kafka this should just be kafka however we are referring to kafka under pekko than that should be pekko.kafka.
There is an upstream scalafix issue about the concept of a "root" package at #1792
The text was updated successfully, but these errors were encountered:
Originally opened by @mdedetrich in liancheng/scalafix-organize-imports#312
The text was updated successfully, but these errors were encountered: