{"id":19188761,"url":"https://github.com/miquido/lint_quido","last_synced_at":"2025-10-13T18:12:36.159Z","repository":{"id":39863018,"uuid":"464867989","full_name":"miquido/lint_quido","owner":"miquido","description":"Collection of Flutter lints that we use and follow in Miquido","archived":false,"fork":false,"pushed_at":"2025-01-22T22:49:07.000Z","size":54,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-20T06:34:59.453Z","etag":null,"topics":["analysis-options","dart","flutter","lint","linter","lints","miquido","static-analysis"],"latest_commit_sha":null,"homepage":"https://www.miquido.com","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miquido.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-01T11:36:37.000Z","updated_at":"2025-01-22T22:49:06.000Z","dependencies_parsed_at":"2025-01-18T09:25:53.236Z","dependency_job_id":"708d5fc2-ed00-4ee2-bf0d-32385dd95540","html_url":"https://github.com/miquido/lint_quido","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Flint_quido","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Flint_quido/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Flint_quido/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miquido%2Flint_quido/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miquido","download_url":"https://codeload.github.com/miquido/lint_quido/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252989940,"owners_count":21836665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis-options","dart","flutter","lint","linter","lints","miquido","static-analysis"],"created_at":"2024-11-09T11:25:56.637Z","updated_at":"2025-10-13T18:12:31.120Z","avatar_url":"https://github.com/miquido.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- \nThis README describes the package. If you publish this package to pub.dev,\nthis README's contents appear on the landing page for your package.\n\nFor information about how to write a good package README, see the guide for\n[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). \n\nFor general information about developing packages, see the Dart guide for\n[creating packages](https://dart.dev/guides/libraries/create-library-packages)\nand the Flutter guide for\n[developing packages and plugins](https://flutter.dev/developing-packages). \n--\u003e\n# lint_quido [![style: miquido lints](https://badgen.net/badge/style/lint_quido/blue?icon=terminal)](https://github.com/miquido/lint_quido)\n##### This is collection of Flutter lints that we use and follow in [Miquido Software development company](https://www.miquido.com).\n\nThis is strict, large and robust collection because we strive for high quality code, good practices and we want follow the same coding style in all our mobile apps.\n\nAnd we just looooove lots of lints. :blue_heart:\n\n---\n\n## Usage\n#### Installation\nFor a start please make sure you work with latest version of Flutter \u0026 Dart.\n```yaml\nenvironment:\n  sdk: \"\u003e=3.5.4 \u003c4.0.0\"\n  flutter: ^3.24.5\n```\n\nThen add a dev dependency in your `pubspec.yaml`:\nFrom command line: \n```bash\nflutter pub add --dev lint_quido\n#then\npub get\n```\n\nor directly in pubspec.yaml\n\n```yaml\ndev_dependencies:\n  lint_quido: 1.24.0\n```\n\nAt last in `analysis_options.yaml` add:\n```yaml\ninclude: package:lint_quido/miquido_lints.yaml\n```\n\n**And that is all folks! You are good to go!**\n\n### Excluding and suppressing rules\n###### Not recommended... :wink:\nIf for some reason you don't want follow some lints, you can exclude or suppress them.\nYou can always check [example](/example/lib).\n\n##### Excluding\nTo completely exclude rule from linter, modify `analysis_options.yaml`:\n```yaml\nanalyzer:\n  errors: #linters from flutter sdk\n    unawaited_futures: ignore\n\ndart_code_metrics:\n  rules-exclude: #linters from dart_code_metrics\n    - prefer-last\n```\n\n##### Suppressing\nIn code add _ignore_ comments\n- at line level (comment directly above the specific line of code):\n```dart\n// ignore: public_member_api_docs\n```\n- at file level (comment at the top of the file):\n```dart\n// ignore: public_member_api_docs\n```\n\n## Commands\nTo analyze your code in terminal use this commands:\n```sh\n# Default flutter analyze, mandatory to pass!\nflutter analyze\n\n# Dart metrics analyze, not mandatory to pass!\n# Also it calculate total technical debt of your project.\ndart run dart_code_metrics:metrics analyze lib\n\n# Find unused files in your code! Nice to keep eye on this one.\ndart run dart_code_metrics:metrics check-unused-files lib\n\n# You can check if all nullable variables are necessary in your code with\ndart run dart_code_metrics:metrics check-unnecessary-nullable lib\n\n# find unused line of codes\ndart pub run dart_code_metrics:metrics check-unused-code lib\n```\n\n[Here](https://dcm.dev/docs/cli/) you can find documentation about dart metrics commands.\n\n## Troubleshooting\nSometimes working with cutting-edge versions might cause dependencies incompatibilities. For example `lint_quido` do not want to cooperate with test_api package or analyzer package and so on.\nTo overcome this use older version of package or try using\n`dependency_overrides` in your pubspec.yaml file.\n\nIn your pubspec add:\n```yaml\ndependency_overrides:\n  test_api: 0.4.18\n```\n\n## Additional information\nThis is set of sources from which we are getting our linters and about good practices in Dart/Flutter:\n- [All Dart lints](https://dart.dev/tools/linter-rules/all)\n- [All Dart lints, but this time linter source code](https://github.com/dart-lang/sdk/blob/main/pkg/linter/example/all.yaml)\n- [Customizing static analysis in Dart](https://dart.dev/tools/analysis)\n- [Effective Dart: Usage](https://dart.dev/guides/language/effective-dart/usage)\n- [Flutter lints](https://github.com/flutter/packages/tree/main/packages/flutter_lints)\n- [Dart Code Metrics](https://dcm.dev/docs/rules/)\n- [Dart language type system](https://github.com/dart-lang/language/tree/main/resources/type-system)\n\n---\n#### About Miquido\n- [About](https://careers.miquido.com/about-us/)\n- [Careers](https://careers.miquido.com/job-offers/)\n- [Internship at Miquido](https://careers.miquido.com/internships/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquido%2Flint_quido","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiquido%2Flint_quido","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiquido%2Flint_quido/lists"}