-
Notifications
You must be signed in to change notification settings - Fork 276
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
Some performance improvements stubs #1386
Some performance improvements stubs #1386
Commits on Feb 7, 2019
-
Introduce scalafmt-dynamic to scalafmt-cli
This PR enable scalafmt-cli to automatically fetch a scalafmt of which version matches the `version` setting in `.scalafmt.conf`. This change will help syncing the version of scalafmt among build tool integrations, editor integration, and scalafmt-cli. See: scalameta#1318 scalameta#1346
Configuration menu - View commit details
-
Copy full SHA for 994e7c0 - Browse repository at this point
Copy the full SHA 994e7c0View commit details
Commits on Feb 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 9360152 - Browse repository at this point
Copy the full SHA 9360152View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d1f39a - Browse repository at this point
Copy the full SHA 9d1f39aView commit details -
scalameta#1344 refactor ScalafmtDynamic to sub-components
1) Moved everything related to downloading process to ScalafmtDynamicDownloader 2) Created errors ADT for all currently reported error types 3) Split format method to two: one returns machine readable error from from errors ADT hierarchy, another one handles the error and reports user-readable message to provided reporter
Configuration menu - View commit details
-
Copy full SHA for eab1903 - Browse repository at this point
Copy the full SHA eab1903View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a2171f - Browse repository at this point
Copy the full SHA 3a2171fView commit details -
scalameta#1344 ScalafmtReflect refactor:
1) move invoke and invokeAs to implicit ops class methods 2) add invokeStatic implicit method for classes 3) rearrange classes and methods loaded from classLoader 4) unified field names for loaded classes
Configuration menu - View commit details
-
Copy full SHA for d6de3ed - Browse repository at this point
Copy the full SHA d6de3edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22257df - Browse repository at this point
Copy the full SHA 22257dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01f9616 - Browse repository at this point
Copy the full SHA 01f9616View commit details
Commits on Feb 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 88d4db3 - Browse repository at this point
Copy the full SHA 88d4db3View commit details -
scalameta#1344 distinguish 3 different errors while downloading scalafmt
- resolve error during download - unknown exception during download: network errors, possible NPE etc... - corrupted classpath exception: for cases when reflection operations inside ScalafmtReflect cause unhandled exceptions
Configuration menu - View commit details
-
Copy full SHA for 4d73e89 - Browse repository at this point
Copy the full SHA 4d73e89View commit details
Commits on Feb 19, 2019
-
scalameta#1344 huge refactoring
- ScalafmtDynamic is now responsible for both config caching and scalafmt caching - ScalafmtDynamic is now responsible for checking for checking whether source file matches config includes/excludes filter - ScalafmtReflect now simply represents a wrapper around Scalafmt instance of a specific version, providing us an interface that encapsulates all reflection stuff
Configuration menu - View commit details
-
Copy full SHA for 3ef9337 - Browse repository at this point
Copy the full SHA 3ef9337View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80e408b - Browse repository at this point
Copy the full SHA 80e408bView commit details
Commits on Feb 20, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 5d226e7 - Browse repository at this point
Copy the full SHA 5d226e7View commit details
Commits on Feb 21, 2019
-
Enable scalafmt-cli to use dynamic or core depending on version setting.
- Load a scalafmt jar using scalafmt-dynamic only when scalafmt-cli's version doesn't match specified `version` setting. If the version matches, scalafmt-cli formats codes using pre-resolved scalafmt to save the overhead for resolving scalafmt jar on runnning. - Create tempFile that contains configration string specified by `--config-str` option for passing configration to scalafmt-dynamic.
Configuration menu - View commit details
-
Copy full SHA for 10093d1 - Browse repository at this point
Copy the full SHA 10093d1View commit details
Commits on Feb 23, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 6e78053 - Browse repository at this point
Copy the full SHA 6e78053View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f54714 - Browse repository at this point
Copy the full SHA 6f54714View commit details
Commits on Feb 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 38fedfc - Browse repository at this point
Copy the full SHA 38fedfcView commit details
Commits on Feb 25, 2019
-
- Test for the behavior if .scalafmt.conf is missing. - Test for the behavior if `version` setting is missing.
Configuration menu - View commit details
-
Copy full SHA for 3dea40f - Browse repository at this point
Copy the full SHA 3dea40fView commit details -
Merge pull request scalameta#1372 from er1c/indent-operator-fix
Indent Operator Fix
Configuration menu - View commit details
-
Copy full SHA for 6a27e7c - Browse repository at this point
Copy the full SHA 6a27e7cView commit details -
Merge pull request scalameta#1366 from tanishiking/scalafmt-dynamic-cli
Make scalafmt-cli to use scalafmt-dynamic module instead of depending on specific version of scalafmt-core.
Configuration menu - View commit details
-
Copy full SHA for fd48c4b - Browse repository at this point
Copy the full SHA fd48c4bView commit details
Commits on Feb 28, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 1f4af58 - Browse repository at this point
Copy the full SHA 1f4af58View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0dc85d - Browse repository at this point
Copy the full SHA c0dc85dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d052bf1 - Browse repository at this point
Copy the full SHA d052bf1View commit details -
Merge pull request scalameta#1368 from unkarjedy/1344-api-changes-to-…
…integrate-with-intellij 1344 api changes to integrate with intellij
Configuration menu - View commit details
-
Copy full SHA for fd840e7 - Browse repository at this point
Copy the full SHA fd840e7View commit details
Commits on Mar 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for f7a72d8 - Browse repository at this point
Copy the full SHA f7a72d8View commit details -
Merge pull request scalameta#1377 from tanishiking/document-sbt-scala…
…fmt-org Update website for sbt-scalafmt 2.0.0-RC5
Configuration menu - View commit details
-
Copy full SHA for 2beea14 - Browse repository at this point
Copy the full SHA 2beea14View commit details
Commits on Mar 6, 2019
-
Avoid newlines after yield keyword.
```scala // Before for (a <- as) yield Future { // ... } // After for (a <- as) yield Future { // ... } ``` It's possible to get the old behavior with `newlines.avoidAfterYield = false`. While working on this change, I observed that `style.indentYieldKeyword=true` (default) has undesirable (and unexpected) behavior for val definitions. ```scala // Before val x = for (a <- as) yield a // After val x = for (a <- as) yield a ``` The new behavior is more consistent with how we handle other val definition bodies. By forcing a line break before `for`, we make it easier to associate the `for` keyword with its accompanying `yield`.
Configuration menu - View commit details
-
Copy full SHA for 7f3a53e - Browse repository at this point
Copy the full SHA 7f3a53eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 437828e - Browse repository at this point
Copy the full SHA 437828eView commit details -
hehe seems the scalafmt repo uses and old scalafmt version that doesn't automatically remove trailing commas. Will upgrade in separate PR.
Configuration menu - View commit details
-
Copy full SHA for 4f84887 - Browse repository at this point
Copy the full SHA 4f84887View commit details -
Merge pull request scalameta#1378 from olafurpg/yield
Avoid newlines after yield keyword.
Configuration menu - View commit details
-
Copy full SHA for f5d4ba1 - Browse repository at this point
Copy the full SHA f5d4ba1View commit details -
There are a few regressions in the output IMO but I can live with them.
Configuration menu - View commit details
-
Copy full SHA for 094a971 - Browse repository at this point
Copy the full SHA 094a971View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53e60e1 - Browse repository at this point
Copy the full SHA 53e60e1View commit details -
Merge pull request scalameta#1379 from olafurpg/release
Update changelog and document release process
Configuration menu - View commit details
-
Copy full SHA for cc6e086 - Browse repository at this point
Copy the full SHA cc6e086View commit details -
Merge pull request scalameta#1380 from olafurpg/upgrade-fmt
Upgrade to latest scalafmt.
Configuration menu - View commit details
-
Copy full SHA for 4aba063 - Browse repository at this point
Copy the full SHA 4aba063View commit details -
Merge pull request scalameta#1381 from olafurpg/intellij-upgrade
Upgrade IntelliJ plugin
Configuration menu - View commit details
-
Copy full SHA for 8111bb2 - Browse repository at this point
Copy the full SHA 8111bb2View commit details
Commits on Mar 14, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ddb5bd8 - Browse repository at this point
Copy the full SHA ddb5bd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e03401 - Browse repository at this point
Copy the full SHA 2e03401View commit details -
Configuration menu - View commit details
-
Copy full SHA for daadc20 - Browse repository at this point
Copy the full SHA daadc20View commit details