{"id":27715659,"url":"https://github.com/nolleh/resharper-pre-commit-hooks","last_synced_at":"2026-04-29T00:32:22.306Z","repository":{"id":288783926,"uuid":"969164901","full_name":"nolleh/resharper-pre-commit-hooks","owner":"nolleh","description":"git precommit hook for ReSharper","archived":false,"fork":false,"pushed_at":"2025-04-20T06:03:09.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T01:02:24.568Z","etag":null,"topics":["csharp","precommit-hooks","resharper"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/nolleh.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,"zenodo":null}},"created_at":"2025-04-19T14:35:29.000Z","updated_at":"2025-04-20T06:03:13.000Z","dependencies_parsed_at":"2025-04-27T01:02:27.115Z","dependency_job_id":"b88266cc-b730-4a80-9986-f314c79f1f9e","html_url":"https://github.com/nolleh/resharper-pre-commit-hooks","commit_stats":null,"previous_names":["nolleh/resharper-pre-commit-hooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nolleh/resharper-pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fresharper-pre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fresharper-pre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fresharper-pre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fresharper-pre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nolleh","download_url":"https://codeload.github.com/nolleh/resharper-pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fresharper-pre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","precommit-hooks","resharper"],"created_at":"2025-04-27T01:02:23.183Z","updated_at":"2026-04-29T00:32:22.292Z","avatar_url":"https://github.com/nolleh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReSharper Pre-commit Hooks\n\nThis project provides a pre-commit hook for Git that automatically applies ReSharper code formatting rules using JetBrains CLI tools. It ensures consistent code formatting across your project by applying the rules defined in your `.DotSettings` files before each commit.\n\n## Features\n\n- Automatically detects and applies the nearest `.DotSettings` file for each staged file\n- Uses JetBrains CLI tools to apply ReSharper formatting rules\n- Prevents commits if files are reformatted, requiring you to review and stage the changes\n- Supports nested `.DotSettings` files in different directories\n- Cross-platform compatible (works on Windows, macOS, and Linux)\n\n## Prerequisites\n\n- JetBrains CLI tools installed and available in your PATH\n\n```bash\ndotnet tool install -g JetBrains.ReSharper.GlobalTools\n```\n\n- `.DotSettings` file(s) in your project\n\n## Installation\n\n### Option 1: Using the Installation Script (Recommended)\n\n1. Make the installation script executable:\n```bash\nchmod +x install.sh\n```\n\n2. Run the script with your project directory as an argument:\n```bash\n./install.sh /path/to/your/project\n```\n\nThe script will:\n- Check if JetBrains CLI tools are installed and install them if needed\n- Verify the project directory is a valid git repository\n- Copy the pre-commit hook to the correct location\n- Set the proper permissions\n\n### Option 2: Manual Installation\n\n1. Copy the `pre-commit` file to your project's `.git/hooks` directory:\n\n```bash\ncp pre-commit .git/hooks/\nchmod +x .git/hooks/pre-commit\n```\n\n2. Make sure you have a `.DotSettings` file in your project root or in the appropriate subdirectories.\n\n## Usage\n\n1. Stage your changes as usual with `git add`\n2. When you run `git commit`, the hook will:\n   - Find the appropriate `.DotSettings` file for each staged file\n   - Apply ReSharper formatting rules using the JetBrains CLI\n   - If any files are reformatted, the commit will be prevented\n   - Review the reformatted files and stage them again if you're satisfied with the changes\n\n## License\n\nThis project is open source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolleh%2Fresharper-pre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnolleh%2Fresharper-pre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolleh%2Fresharper-pre-commit-hooks/lists"}