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

Add more options #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add more options #142

wants to merge 1 commit into from

Conversation

geirolz
Copy link
Contributor

@geirolz geirolz commented Sep 14, 2024

This PR adds:

  • indent Turn on bracket-less style
  • no-indent Turn off bracket-less style
  • languageDynamics Enable dynamics support.
  • encodingUTF8 Set the encoding to UTF-8

Copy link
Member

@lenguyenthanh lenguyenthanh left a 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")
Copy link
Member

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:

Copy link
Contributor Author

@geirolz geirolz Sep 17, 2024

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. */
Copy link
Member

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.

Copy link
Contributor Author

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

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

Successfully merging this pull request may close these issues.

2 participants