Skip to content

Commit 5055dda

Browse files
committed
chore: remove legacy scalastyle
When I first looked at Dotty I saw this file and it make me try to look around at how to run it, but as far as I can tell, this isn't used. To avoid any confusion that this is actually being used, I think we should remove this. If this isn't the case, then it should really be enforced in CI.
1 parent 19eff87 commit 5055dda

File tree

3 files changed

+1
-125
lines changed

3 files changed

+1
-125
lines changed

compiler/src/dotty/tools/backend/sjs/JSCodeGen.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,14 +2863,12 @@ class JSCodeGen()(using genCtx: Context) {
28632863

28642864
if (mustUseAnyComparator) {
28652865
val equalsMethod: Symbol = {
2866-
// scalastyle:off line.size.limit
28672866
val ptfm = ctx.platform
28682867
if (lsym.derivesFrom(defn.BoxedNumberClass)) {
28692868
if (rsym.derivesFrom(defn.BoxedNumberClass)) externalEqualsNumNum
28702869
else if (rsym.derivesFrom(defn.BoxedCharClass)) externalEqualsNumObject // will be externalEqualsNumChar in 2.12, SI-9030
28712870
else externalEqualsNumObject
28722871
} else externalEquals
2873-
// scalastyle:on line.size.limit
28742872
}
28752873
genApplyStatic(equalsMethod, List(lsrc, rsrc))
28762874
} else {

compiler/src/dotty/tools/backend/sjs/JSPositions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class JSPositions()(using Context) {
6262
implicit def implicitSourcePos2irPos(implicit sourcePos: SourcePosition): ir.Position =
6363
sourceAndSpan2irPos(sourcePos.source, sourcePos.span)
6464

65-
private object span2irPosCache { // scalastyle:ignore
65+
private object span2irPosCache {
6666
import dotty.tools.dotc.util._
6767

6868
private var lastDotcSource: SourceFile = null

scalastyle-config.xml

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)