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

Enable globally turning off warnings about using directives in multiple files #1747

Closed
Gedochao opened this issue Jan 4, 2023 · 2 comments · Fixed by #1779
Closed

Enable globally turning off warnings about using directives in multiple files #1747

Gedochao opened this issue Jan 4, 2023 · 2 comments · Fixed by #1779
Assignees
Labels
enhancement New feature or request UX

Comments

@Gedochao
Copy link
Contributor

Gedochao commented Jan 4, 2023

We should add a global configuration enabling users to silence the warning about migrating directives to project.scala. It should be settable with the config sub-command.

So something like:

scala-cli config ignore-directives-in-multiple-files true

Ticket motivated by a comment by @lbialy in #1632 (comment)

@SethTisue
Copy link
Contributor

SethTisue commented Feb 24, 2023

what am I doing wrong...?

% scala-cli --version
Scala CLI version: 0.2.0
Scala version (default): 3.2.2
% scala-cli config ignore-directives-in-multiple-files true
Error: unrecognized key ignore-directives-in-multiple-files

@tgodzik
Copy link
Member

tgodzik commented Feb 24, 2023

It should be suppress-warning.directives-in-multiple-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request UX
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants