scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Allow for preset scalacOptions

Open tgodzik opened this issue 9 months ago • 4 comments

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 avatar Mar 28 '25 09:03 tgodzik

~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

tgodzik avatar Mar 28 '25 09:03 tgodzik

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

yadavan88 avatar Apr 03 '25 17:04 yadavan88

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.

tgodzik avatar Apr 03 '25 17:04 tgodzik

@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?

yadavan88 avatar Apr 03 '25 20:04 yadavan88