{"id":17341902,"url":"https://github.com/warnyul/flutter-git-hooks","last_synced_at":"2025-03-27T09:18:32.470Z","repository":{"id":83960663,"uuid":"238497782","full_name":"warnyul/flutter-git-hooks","owner":"warnyul","description":"Git hooks collection for Flutter Application and Plugin development.","archived":false,"fork":false,"pushed_at":"2020-02-06T08:57:57.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T14:15:29.828Z","etag":null,"topics":["flutter","flutter-dev","flutter-devtools","git-hook","git-hooks","git-pre-commit"],"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/warnyul.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-02-05T16:36:19.000Z","updated_at":"2024-03-27T21:29:28.000Z","dependencies_parsed_at":"2023-03-02T16:00:50.417Z","dependency_job_id":null,"html_url":"https://github.com/warnyul/flutter-git-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warnyul%2Fflutter-git-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warnyul%2Fflutter-git-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warnyul%2Fflutter-git-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warnyul%2Fflutter-git-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warnyul","download_url":"https://codeload.github.com/warnyul/flutter-git-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245814748,"owners_count":20676808,"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":["flutter","flutter-dev","flutter-devtools","git-hook","git-hooks","git-pre-commit"],"created_at":"2024-10-15T15:51:30.988Z","updated_at":"2025-03-27T09:18:32.446Z","avatar_url":"https://github.com/warnyul.png","language":null,"readme":"# Git hooks\nThis repo contains git hooks for Flutter Application or Plugin Development.\n\nThe purpose of this collection to gather some scripts which help to improve the quality of developed applications. I believe in fail-fast philosophy, thus I wrote these hooks.\n\nIn my mind, pre-commit hooks can reduce CI costs. Additionally, we will get quick feedback on our changes to the application.\n\n## Description\n\nThis repo contains a __pre-commit__ hook for Flutter Application or Plugin development. It cleans the workspace and then runs `analyze` and `test` commands on the project.\n\n## Requirements\nThe `flutter` command must be available on the `PATH`.\n\n## How to use\n\nAdd the contents of this repo to your root project as a git subtree. You can just copy it into `.git/hooks` folder. However, if you do not want to lose the benefits of git, please follow the description below.\n\n```\ncd $PROJECT\ngit remote add flutter-git-hooks https://github.com/warnyul/flutter-git-hooks.git\ngit subtree add --prefix=git-hooks/ flutter-git-hooks master\n```\n__Any person who clones your project must symlink the folder into `.git` folder__\n\n```\nmv .git/hooks .git/hooks.old \u0026\u0026 ln -s ../git-hooks .git/hooks\n```\n## Update hooks\nYou can update the hooks inside your project if necessary. So, enter your project's folder and pull changes from remote.\n\n```\ncd $PROJECT\ngit remote add flutter-git-hooks https://github.com/warnyul/flutter-git-hooks.git\ngit fetch flutter-git-hooks master\ngit subtree pull --prefix=git-hooks/ flutter-git-hooks master\n```\n\n# License\n\n    Copyright 2020 Balázs Varga\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarnyul%2Fflutter-git-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarnyul%2Fflutter-git-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarnyul%2Fflutter-git-hooks/lists"}