Skip to content

Commit

Permalink
Merge pull request #408 from scala-steward/update/scalafmt-core-2.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 authored Oct 30, 2020
2 parents 536b29d + 23c51a6 commit 2d61305
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=2.7.2
version=2.7.5
maxColumn = 100
project.git = true
align.preset = none
Expand Down
3 changes: 1 addition & 2 deletions mdoc-lsp/src/main/scala/mdoc/internal/lsp/LspLogger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import scribe.Logger
import scribe.format._
import scribe.writer.Writer

/**
* Scribe logging handler that forwards logging messages to the LSP editor client.
/** Scribe logging handler that forwards logging messages to the LSP editor client.
*/
object LspLogger extends Writer {
def update(client: MdocLanguageClient): Unit = {
Expand Down
3 changes: 1 addition & 2 deletions mdoc/src/main/scala-2/mdoc/Variable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import mdoc.internal.markdown.Modifier
import mdoc.internal.markdown.ReplVariablePrinter
import scala.meta.inputs.Position

/**
* A captured variable in a code fence.
/** A captured variable in a code fence.
*
* Example, the code fence below has two statements:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ package mdoc.internal.livereload

import java.nio.file.Path

/**
* Interface of a LiveReload server http://livereload.com/api/protocol/
/** Interface of a LiveReload server http://livereload.com/api/protocol/
*/
trait LiveReload {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ final case class UndertowLiveReload private (

object UndertowLiveReload {

/**
* Instantiate an undertow file server that speaks the LiveReload protocol.
/** Instantiate an undertow file server that speaks the LiveReload protocol.
*
* See LiveReload protocol for more details: http://livereload.com/api/protocol/
*
Expand Down
3 changes: 1 addition & 2 deletions mdoc/src/main/scala-2/mdoc/internal/markdown/Markdown.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ object Markdown {
val RelativePathKey = new DataKey[Option[RelativePath]]("mdocFile", None)
val SiteVariables = new DataKey[Option[Map[String, String]]]("siteVariables", None)

/**
* Defines the default markdown settings.
/** Defines the default markdown settings.
*
* Do not use directly. The default flexmark settings have special keys set
* up by mdoc to keep track of certain document-specific information like path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import mdoc.internal.cli.Context

object MdocExtensions {

/**
* Defines mdoc's markdown extensions.
/** Defines mdoc's markdown extensions.
*
* Inspired by CommonMark formatter options so that pandoc understands it.
* https://github.com/vsch/flexmark-java/blob/master/flexmark-java-samples/src/com/vladsch/flexmark/samples/FormatConverterCommonMark.java#L27-L37
Expand Down
3 changes: 1 addition & 2 deletions mdoc/src/main/scala-2/mdoc/internal/markdown/Modifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package mdoc.internal.markdown
import mdoc.StringModifier
import mdoc.internal.markdown.Mod._

/**
* A mdoc code fence modifier.
/** A mdoc code fence modifier.
*
* Modifiers are parsed from code blocks like here
*
Expand Down
3 changes: 1 addition & 2 deletions mdoc/src/main/scala/mdoc/internal/CompatClassloader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import scala.collection.JavaConverters._

object CompatClassloader {

/**
* Utility to get SystemClassLoader/ClassLoader urls in java8 and java9+
/** Utility to get SystemClassLoader/ClassLoader urls in java8 and java9+
* Based upon: https://gist.github.com/hengyunabc/644f8e84908b7b405c532a51d8e34ba9
*/
def getURLs(classLoader: ClassLoader): Seq[URL] = {
Expand Down
3 changes: 1 addition & 2 deletions mdoc/src/main/scala/mdoc/internal/cli/InputFile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import metaconfig.Input
import java.nio.file.Files
import mdoc.internal.pos.PositionSyntax._

/**
* @param relpath the input filename relativized by its input directory.
/** @param relpath the input filename relativized by its input directory.
* @param inputFile the input file to read from.
* @param outputFile the output file to write to.
* @param inputDirectory directory enclosing the input file.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* This file is derived from the following Coursier sources, see NOTICE for license details.
/** This file is derived from the following Coursier sources, see NOTICE for license details.
* https://github.com/coursier/coursier/blob/dfb04cab48a4beefa2be59fc71e3eff0493a5886/modules/coursier/shared/src/main/scala/coursier/Repositories.scala
* https://github.com/coursier/coursier/blob/dfb04cab48a4beefa2be59fc71e3eff0493a5886/modules/coursier/shared/src/main/scala/coursier/internal/SharedRepositoryParser.scala
*/
Expand Down
3 changes: 1 addition & 2 deletions mdoc/src/main/scala/mdoc/internal/pos/BinarySearch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ object BinarySearch {
case object Equal extends ComparisonResult
case object Smaller extends ComparisonResult

/**
* Binary search using a custom compare function.
/** Binary search using a custom compare function.
*
* scala.util.Searching does not support the ability to search an IndexedSeq
* by a custom mapping function, you must search by an element of the same
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ object TokenEditDistance {

lazy val empty: TokenEditDistance = new TokenEditDistance(Array.empty)

/**
* Build utility to map offsets between two slightly different strings.
/** Build utility to map offsets between two slightly different strings.
*
* @param original The original snapshot of a string, for example the latest
* semanticdb snapshot.
Expand Down
6 changes: 2 additions & 4 deletions runtime/src/main/scala/mdoc/document/CompileResult.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ object CompileResult {

sealed trait CompileError extends CompileResult

/**
* Compiler reported an error message during typechecking.
/** Compiler reported an error message during typechecking.
* @param message the typechecking error message (without position formatting)
* @param pos the range position inside the code fence
*/
final case class TypeError(message: String, pos: RangePosition) extends CompileError

/**
* Compiler reported an error message during parsing.
/** Compiler reported an error message during parsing.
* @param message the syntax error message (without position formatting)
* @param pos the range position inside the code fence
*/
Expand Down

0 comments on commit 2d61305

Please sign in to comment.