-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add more options #142
base: main
Are you sure you want to change the base?
Add more options #142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference is We should add indent
and -no-indent
options but not the other two. But this is a not strong preference. I would delegate the decision to other maintainers.
@@ -41,6 +41,9 @@ private[scalacoptions] trait ScalacOptions { | |||
): ScalacOption = | |||
ScalacOption(option, args, isSupported) | |||
|
|||
/** Set the encoding to UTF-8 */ | |||
val encodingUTF8 = encoding("utf8") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure including this option is necessary, We already include utf encoding in default options:
scalac-options/lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala
Line 888 in ed64f8d
encoding("utf8"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because it's widely used with UTF-8, I've always seen this setting set with UTF-8
@@ -157,6 +166,10 @@ private[scalacoptions] trait ScalacOptions { | |||
val languageStrictEquality = | |||
languageFeatureOption("strictEquality", version => version >= V3_0_0) | |||
|
|||
/** Enable dynamics support. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also wondering is this worth adding, dynamics
seems not a popular choice and it's not too much hassle to use languageFeatureOption("dynamics")
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using it in some project and I though i'd be useful - If isn't we can remove it, np
This PR adds:
indent
Turn on bracket-less styleno-indent
Turn off bracket-less stylelanguageDynamics
Enable dynamics support.encodingUTF8
Set the encoding to UTF-8