Skip to content

Allow for preset scalacOptions #3596

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

Open
tgodzik opened this issue Mar 28, 2025 · 4 comments
Open

Allow for preset scalacOptions #3596

tgodzik opened this issue Mar 28, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request spree

Comments

@tgodzik
Copy link
Member

tgodzik commented Mar 28, 2025

Is your feature request related to a problem? Please describe.
Something similar to https://github.com/typelevel/sbt-tpolecat but instead of using plugins we can create presets (this could acompany toolkit as the best practise)

Describe the solution you'd like

//> using options.preset suggested

Describe alternatives you've considered
Add all options manually (it's quite a lot)

@tgodzik tgodzik added enhancement New feature or request spree labels Mar 28, 2025
@tgodzik
Copy link
Member Author

tgodzik commented Mar 28, 2025

We could also detect standard flags such as CI and turn off fatal-warnings if it doesn't exist locally.

Or alternatively, we could just turn on fatal warnings on CI

@yadavan88
Copy link
Contributor

This is really interesting. Should there be option to remove anything from the suggested if not interested? Or that is an overkill?

@tgodzik
Copy link
Member Author

tgodzik commented Apr 3, 2025

This is really interesting. Should there be option to remove anything from the suggested if not interested? Or that is an overkill?

That would require some kind of DSL, so probably we wouldn't want to add it unfortunately.

@yadavan88
Copy link
Contributor

yadavan88 commented Apr 3, 2025

@tgodzik / @Gedochao
I tried to implement this, here is the PR with basic working solution.
Let me know if I am in the right direction or did I get it wrong?

@Gedochao Gedochao moved this from To do to In progress in Scala CLI Board Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spree
Projects
Status: In progress
Development

No branches or pull requests

2 participants