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

feat: add --line-length option to melos format command #689

Merged
merged 6 commits into from
Apr 2, 2024

Conversation

utamori
Copy link
Contributor

@utamori utamori commented Apr 2, 2024

Description

This pull request adds a --line-length option to the melos format command,
allowing users to specify the desired line length when formatting Dart code across packages in a Melos workspace.

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)

@CLAassistant
Copy link

CLAassistant commented Apr 2, 2024

CLA assistant check
All committers have signed the CLA.

@utamori utamori changed the title Add --line-length option to melos format command feat: add --line-length option to melos format command Apr 2, 2024
spydon
spydon previously approved these changes Apr 2, 2024
@@ -32,6 +36,7 @@ class FormatCommand extends MelosCommand {
final setExitIfChanged = argResults?['set-exit-if-changed'] as bool;
final output = argResults?['output'] as String?;
final concurrency = int.parse(argResults!['concurrency'] as String);
final lineLength = int.parse(argResults!['line-length'] as String);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to accept null too

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 missed it. thanks.

@spydon spydon dismissed their stale review April 2, 2024 10:33

Accedental approve

@spydon spydon merged commit 048ab30 into invertase:main Apr 2, 2024
10 checks passed
@utamori utamori deleted the feat/enable-line-length branch April 2, 2024 11:20
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.

3 participants