{"id":21862287,"url":"https://github.com/innfactory/flutter_lint_factory","last_synced_at":"2025-09-11T05:12:09.279Z","repository":{"id":62458760,"uuid":"495453615","full_name":"innFactory/flutter_lint_factory","owner":"innFactory","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-26T09:06:44.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-05T18:21:58.550Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/innFactory.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}},"created_at":"2022-05-23T14:49:17.000Z","updated_at":"2024-06-09T04:28:50.000Z","dependencies_parsed_at":"2023-02-14T15:30:46.887Z","dependency_job_id":null,"html_url":"https://github.com/innFactory/flutter_lint_factory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/innFactory/flutter_lint_factory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innFactory%2Fflutter_lint_factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innFactory%2Fflutter_lint_factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innFactory%2Fflutter_lint_factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innFactory%2Fflutter_lint_factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innFactory","download_url":"https://codeload.github.com/innFactory/flutter_lint_factory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innFactory%2Fflutter_lint_factory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274580214,"owners_count":25311110,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-28T03:14:34.220Z","updated_at":"2025-09-11T05:12:09.220Z","avatar_url":"https://github.com/innFactory.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lint Factory\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/innFactory/branding/main/styles/README/innfactory_logo_white.png\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/innFactory/branding/main/styles/README/innfactory_logo_black.png\"\u003e\n\u003c/picture\u003e\n\nDeveloped by [innFactory GmbH][innfactory_link] ⚙️\n\n[![ci][ci_badge]][ci_badge_link]\n[![pub package][pub_badge]][pub_badge_link]\n[![License: MIT][license_badge]][license_badge_link]\n[![style: lint factory][badge]][badge_link]\n\n---\n\nFlutter \u0026 Dart lint rules as well as [dart_code_metrics][dart_code_metrics_link] configuration used internally at [innFactory GmbH][innfactory_link].\n\n**Note:** This package was heavily inspired by [very_good_analysis][very_good_analysis_link].\n\n## Usage\n\nTo use the lints, add a dependency in your `pubspec.yaml`:\n\n```yaml\n# If you use `package:lint_factory/lint_factory.dart`, add a normal dependency.\ndependencies:\n  lint_factory: ^1.0.0\n\n# Or, if you just want `analysis_options.yaml`, it can be a dev dependency.\ndev_dependencies:\n  lint_factory: ^1.0.0\n```\n\nThen, add an include in `analysis_options.yaml`:\n\n```yaml\ninclude: package:lint_factory/analysis_options.yaml\n```\n\nThis will ensure you always use the latest version of the lints. If you wish to restrict the lint version, specify a version of `analysis_options.yaml` instead:\n\n```yaml\ninclude: package:lint_factory/analysis_options.1.0.0.yaml\n```\n\n## Suppressing Lints\n\nThere may be cases where specific lint rules are undesirable. Lint rules can be suppressed at the line, file, or project level.\n\nAn example use case for suppressing lint rules at the file level is suppressing the `prefer_const_constructors` in order to achieve 100% code coverage. This is due to the fact that const constructors are executed before the tests are run, resulting in no coverage collection.\n\n### Line Level\n\nTo suppress a specific lint rule for a specific line of code, use an `ignore` comment directly above the line:\n\n```dart\n// ignore: public_member_api_docs\nclass A {}\n```\n\n### File Level\n\nTo suppress a specific lint rule of a specific file, use an `ignore_for_file` comment at the top of the file:\n\n```dart\n// ignore_for_file: public_member_api_docs\n\nclass A {}\n\nclass B {}\n```\n\n### Project Level\n\nTo suppress a specific lint rule for an entire project, modify `analysis_options.yaml`:\n\n```yaml\ninclude: package:lint_factory/analysis_options.yaml\nlinter:\n  rules:\n    public_member_api_docs: false\n```\n\n## Badge\n\nTo indicate your project is using `lint_factory` → [![style: lint_factory][badge]][badge_link]\n\n```md\n[![style: lint_factory](https://img.shields.io/badge/style-lint__factory-e32028.svg)](https://pub.dev/packages/lint_factory)\n```\n\n[analysis_options_yaml]: https://github.com/innFactory/lint_factory/blob/main/analysis_options.yaml\n[ci_badge]: https://github.com/innFactory/lint_factory/workflows/ci/badge.svg\n[ci_badge_link]: https://github.com/innFactory/lint_factory/actions\n[badge]: https://img.shields.io/badge/style-lint__factory-e32028.svg\n[badge_link]: https://pub.dev/packages/lint_factory\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_badge_link]: https://opensource.org/licenses/MIT\n[pub_badge]: https://img.shields.io/pub/v/lint_factory.svg\n[pub_badge_link]: https://pub.dartlang.org/packages/lint_factory\n[dart_code_metrics_link]: https://github.com/dart-code-checker/dart-code-metrics\n[very_good_analysis_link]: https://github.com/VeryGoodOpenSource/very_good_analysis\n[innfactory_link]: https://innfactory.de","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnfactory%2Fflutter_lint_factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnfactory%2Fflutter_lint_factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnfactory%2Fflutter_lint_factory/lists"}