Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalariform settings cause a change to the source from what’s in the repository #38

Open
akauppi opened this issue Jan 24, 2016 · 0 comments

Comments

@akauppi
Copy link

akauppi commented Jan 24, 2016

I haven't used Scalariform before, but it seems like meaningful assumption that sbt compile would not change the sources, from what's in the repo. Now it does.

  1. git clone
  2. sbt compile
$ git diff
diff --git a/src/main/scala/sample/stream/GroupLogFile.scala b/src/main/scala/sample/stream/GroupLogFile.scala
index d886c44..dcc7477 100644
--- a/src/main/scala/sample/stream/GroupLogFile.scala
+++ b/src/main/scala/sample/stream/GroupLogFile.scala
@@ -30,8 +30,8 @@ object GroupLogFile {
       via(Framing.delimiter(ByteString(System.lineSeparator), maximumFrameLength = 512, allowTruncation = true)).
       map(_.utf8String).
       map {
-        case line@LoglevelPattern(level) => (level, line)
-        case line@other => ("OTHER", line)
+        case line @ LoglevelPattern(level) => (level, line)
+        case line @ other                  => ("OTHER", line)
       }.
       // group them by log level
       groupBy(5, _._1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant