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

Update analysis_options.yaml #260

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

madhupashish
Copy link

This updated configuration:

Keeps the existing include directive for the package:flutter_lints/flutter.yaml file to activate recommended Flutter-specific lints.

Under the linter section, you can customize the lint rules for your project. It disables the avoid_print rule and enables the prefer_single_quotes rule as an example. You can add or modify rules according to your project's coding standards.

You can also add any custom lint rules specific to your project by following the same format (custom_rule_name: true).

To apply this updated configuration, save it to your project's analysis_options.yaml file or the equivalent configuration file you are using. The Dart analyzer will use this configuration when running flutter analyze or any other analysis tool.

Pull Request Template

Description:

Briefly describe the purpose and context of this pull request.

Changes Made:

Provide a clear and concise overview of the specific changes made in this PR.

Related Issue:

If applicable, reference the related issue number(s) here.

Screenshots/GIFs:

If applicable, include any relevant screenshots or GIFs to visually demonstrate the changes.

Testing Done:

Outline the testing steps you have taken to ensure the changes function as intended.

Additional Notes:

Add any additional information or notes that are relevant to this PR.

Checklist:

  • The code follows the project's coding style guidelines.
  • Unit tests have been added or updated to cover the changes.
  • Documentation, if applicable, has been updated to reflect the changes.
  • All new and existing tests pass successfully.

Please review and merge this PR at your earliest convenience.

Thank you!

This updated configuration:

Keeps the existing include directive for the package:flutter_lints/flutter.yaml file to activate recommended Flutter-specific lints.

Under the linter section, you can customize the lint rules for your project. It disables the avoid_print rule and enables the prefer_single_quotes rule as an example. You can add or modify rules according to your project's coding standards.

You can also add any custom lint rules specific to your project by following the same format (custom_rule_name: true).

To apply this updated configuration, save it to your project's analysis_options.yaml file or the equivalent configuration file you are using. The Dart analyzer will use this configuration when running flutter analyze or any other analysis tool.
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.

1 participant