{"id":21748289,"url":"https://github.com/surfstudio/surf-dcm-presets","last_synced_at":"2025-08-21T08:14:24.200Z","repository":{"id":221526231,"uuid":"753003786","full_name":"surfstudio/surf-dcm-presets","owner":"surfstudio","description":"Made by Surf 🏄","archived":false,"fork":false,"pushed_at":"2025-08-05T12:44:47.000Z","size":50,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-05T14:34:37.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/surfstudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2024-02-05T09:28:37.000Z","updated_at":"2025-04-23T14:29:21.000Z","dependencies_parsed_at":"2024-03-04T05:26:50.422Z","dependency_job_id":"7cd4efff-2fe9-424e-9773-742cbfca7232","html_url":"https://github.com/surfstudio/surf-dcm-presets","commit_stats":null,"previous_names":["surfstudio/surf-dcm-presets"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/surfstudio/surf-dcm-presets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fsurf-dcm-presets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fsurf-dcm-presets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fsurf-dcm-presets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fsurf-dcm-presets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surfstudio","download_url":"https://codeload.github.com/surfstudio/surf-dcm-presets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fsurf-dcm-presets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271448397,"owners_count":24761438,"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-08-21T02:00:08.990Z","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-26T08:12:56.458Z","updated_at":"2025-08-21T08:14:24.183Z","avatar_url":"https://github.com/surfstudio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Surf DCM Presets\n\n\u003cimg src=\"https://raw.githubusercontent.com/surfstudio/flutter-open-source/main/assets/logo_black.png#gh-light-mode-only\" width=\"200\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/surfstudio/flutter-open-source/main/assets/logo_white.png#gh-dark-mode-only\" width=\"200\"\u003e\n\nMade by [Surf 🏄‍♂️🏄‍♂️🏄‍♂️](https://surf.dev/)\n\n[![Build Status](https://shields.io/github/actions/workflow/status/surfstudio/surf-dcm-presets/on_pull_request.yml?logo=github\u0026logoColor=white)](https://github.com/surfstudio/surf-dcm-presets)\n[![Pub Version](https://img.shields.io/pub/v/surf_dcm_presets?logo=dart\u0026logoColor=white)](https://pub.dev/packages/surf_dcm_presets)\n[![Pub Likes](https://badgen.net/pub/likes/surf_dcm_presets)](https://pub.dev/packages/surf_dcm_presets)\n[![Pub popularity](https://badgen.net/pub/popularity/surf_dcm_presets)](https://pub.dev/packages/surf_dcm_presets/score)\n![Flutter Platform](https://badgen.net/pub/flutter-platform/surf_dcm_presets)\n\n## Overview\n\nThis repository contains a list of pre-set presets for DCM that are used on Surf projects:\n\n- **All:** contains all available lint rules.\n- **Dart:** contains all lint rules applicable to any Dart app.\n- **Flutter:** contains all lint rules applicable to any Flutter app.\n- **Provider:** contains all lint rules for the Provider package.\n- **Intl:** contains all lint rules for the Intl package.\n- **Pub:** contains all lint rules for linting the `pubspec.yaml` files.\n\n## Installation\n\nTake these steps to enable a preset:\n\nInstall this package as a dev dependency:\n\n   ```terminal\n   dart pub add --dev surf_dcm_presets\n   ```\n\n   or:\n\n   ```terminal\n   flutter pub add --dev surf_dcm_presets\n   ```\n\n## Example\n\nFor DCM configuration add the `extents` entry:\n\n   ```yaml\n   dart_code_metrics:\n     extends:\n       - package:surf_dcm_presets/all.yaml\n   ```\n\n## Disabling or reconfiguring a rule from the preset\n\nTo disable a rule, simply set its value to false:\n\n```yaml\ndart_code_metrics:\n  extends:\n    - package:surf_dcm_presets/all.yaml\n  rules:\n    - avoid-banned-imports: false\n```\n\nTo reconfigure a rule, that is included into a preset:\n\n```yaml\ndart_code_metrics:\n  extends:\n    - package:surf_dcm_presets/all.yaml\n  rules:\n    - arguments-ordering:\n        child-last: true\n```\n\n## Defining a custom preset\n\nAny other preset can be passed to the `extends` entry. To create a custom preset create a `yaml` file with the same structure as for regular [DCM configuration](https://dcm.dev/docs/configuration/).\n\n## How to reach us\n\nPlease feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.\n\n[![Telegram](https://img.shields.io/badge/chat-on%20Telegram-blue.svg)](https://t.me/SurfGear)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurfstudio%2Fsurf-dcm-presets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurfstudio%2Fsurf-dcm-presets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurfstudio%2Fsurf-dcm-presets/lists"}