-
Notifications
You must be signed in to change notification settings - Fork 138
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 fix command #1627
Add fix command #1627
Conversation
2209be9
to
ebe0936
Compare
ebe0936
to
20eae5e
Compare
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.
Can we add some integration tests?
modules/cli/src/main/scala/scala/cli/commands/fix/FixOptions.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/fix/FixOptions.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
I think this won't work with markdown inputs for now, although that can be fixed in a separate PR |
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/migratedirectives/MigrateDirectives.scala
Outdated
Show resolved
Hide resolved
9f89023
to
e85deed
Compare
ffea39b
to
7250d96
Compare
modules/cli/src/main/scala/scala/cli/commands/fix/FixOptions.scala
Outdated
Show resolved
Hide resolved
modules/cli/src/main/scala/scala/cli/commands/fix/FixOptions.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/scala/cli/integration/FixTests.scala
Outdated
Show resolved
Hide resolved
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.
Some example with directives spread between multiple files would be useful.
An example output project.scala
could then be included, plus there'd be no reason to ignore the '''bash
snippets in docs-tests
|
||
import com.eed3si9n.expecty.Expecty.expect | ||
|
||
class FixTests extends ScalaCliSuite { |
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.
What happens if I now have directives in different scopes? For example main directives in Hello.scala
and test directives in Hello.test.scala
?
We should make sure that we don't accidentally broke someone's Scala CLI configuration.
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.
It should be also tested with Scala.Js and Scala native scopes.
Closing this, we'll make a new attempt soon. |
No description provided.