{"id":15066366,"url":"https://github.com/g1j0shi/analysis_options","last_synced_at":"2026-02-04T08:07:54.550Z","repository":{"id":122533620,"uuid":"484159897","full_name":"G1J0SHI/analysis_options","owner":"G1J0SHI","description":"The set of rules that encourage good coding practices for applications, packages, and plugins.","archived":false,"fork":false,"pushed_at":"2025-01-05T14:23:53.000Z","size":216,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T02:18:49.242Z","etag":null,"topics":["analysis-options","dart","flutter","linter","pub"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/analysis_options","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/G1J0SHI.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}},"created_at":"2022-04-21T18:19:17.000Z","updated_at":"2025-01-05T14:23:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"9456122e-d894-4886-be67-cf7a0d00ddb4","html_url":"https://github.com/G1J0SHI/analysis_options","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"1d9e99c9916726ef3795bc66666b85a5e4471d54"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G1J0SHI%2Fanalysis_options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G1J0SHI%2Fanalysis_options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G1J0SHI%2Fanalysis_options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G1J0SHI%2Fanalysis_options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/G1J0SHI","download_url":"https://codeload.github.com/G1J0SHI/analysis_options/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991559,"owners_count":21194894,"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","linter","pub"],"created_at":"2024-09-25T01:06:24.994Z","updated_at":"2026-02-04T08:07:54.515Z","avatar_url":"https://github.com/G1J0SHI.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analysis Options for Dart/Flutter\n\n![publisher][publisher]\n![version][version]\n![likes][likes]\n![points][points]\n![popularity][popularity]\n![downloads][downloads]\n\n---\n\n**_The set of rules that encourage good coding practices for applications, packages, and plugins._**\n\n---\n\n## Features\n\nAnalyzer and Linting Rules\n\n---\n\n## Getting started\n\nTo add the package, `analysis_options`, to an project:\n\n1. Depend on it\n\n   - Add `analysis_options` under `dev_dependencies` in the `pubspec.yaml` file.\n\n2. Install it\n\n   - From the terminal: Run `flutter pub get`.\n\n3. Import it\n\n   - Add a corresponding `include` statement in the YAML code.\n\n---\n\n## Usage\n\nTo use the analysis options, add the following dev dependency in your `pubspec.yaml` file:\n\n```yaml\ndev_dependencies:\n  analysis_options: any\n```\n\nAdd the following line in your `analysis_options.yaml` file:\n\n```yaml\ninclude: package:analysis_options/analysis_options.yaml\n```\n\n---\n\n## Additional information\n\n- `Analyzer`: Customize static analysis.\n- `Linter`: Configure linter rules.\n\n### Enabling stricter type checks\n\n```yaml\nanalyzer:\n  language:\n    strict-casts: true\n```\n\n### Enabling individual rules\n\n```yaml\nlinter:\n  rules:\n    - avoid_print\n```\n\n### Disabling individual rules\n\n```yaml\nlinter:\n  rules:\n    public_member_api_docs: false\n```\n\n### Excluding files\n\n```yaml\nanalyzer:\n  exclude:\n    - lib/generated_plugin_registrant.dart\n```\n\n### Ignoring rules\n\n```yaml\nanalyzer:\n  errors:\n    todo: ignore\n```\n\n### Changing the severity of rules\n\n```yaml\nanalyzer:\n  errors:\n    dead_code: info\n```\n\n---\n\n[publisher]: https://img.shields.io/pub/publisher/analysis_options\n[version]: https://img.shields.io/pub/v/analysis_options\n[likes]: https://img.shields.io/pub/likes/analysis_options\n[points]: https://img.shields.io/pub/points/analysis_options\n[popularity]: https://img.shields.io/pub/popularity/analysis_options\n[downloads]: https://img.shields.io/pub/dm/analysis_options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg1j0shi%2Fanalysis_options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg1j0shi%2Fanalysis_options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg1j0shi%2Fanalysis_options/lists"}