{"id":21201652,"url":"https://github.com/oleander/rfix-rb","last_synced_at":"2025-07-10T06:31:45.800Z","repository":{"id":41783154,"uuid":"272703771","full_name":"oleander/rfix-rb","owner":"oleander","description":":bug: RuboCop CLI that only lints and auto-fixes code you committed by utilizing git-log and git-diff.","archived":false,"fork":false,"pushed_at":"2023-03-17T05:28:33.000Z","size":744,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T01:18:20.384Z","etag":null,"topics":["cli","git","linter","rubocop","rubocop-cli"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/rfix","language":"Ruby","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/oleander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-16T12:36:36.000Z","updated_at":"2022-11-18T11:11:37.000Z","dependencies_parsed_at":"2023-02-12T07:30:27.166Z","dependency_job_id":null,"html_url":"https://github.com/oleander/rfix-rb","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/oleander/rfix-rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Frfix-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Frfix-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Frfix-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Frfix-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/rfix-rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Frfix-rb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264538581,"owners_count":23624436,"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":["cli","git","linter","rubocop","rubocop-cli"],"created_at":"2024-11-20T20:10:22.072Z","updated_at":"2025-07-10T06:31:45.289Z","avatar_url":"https://github.com/oleander.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :bug: rfix [![pre-release](https://github.com/oleander/rfix-rb/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/oleander/rfix-rb/actions/workflows/main.yml) [![Gem](https://img.shields.io/gem/dt/rfix)](https://rubygems.org/gems/rfix)\n\n\n\nRuboCop CLI that only lints and auto-fixes code you committed by utilizing `git-log` and `git-diff`. Rfix CLI makes it possible to lint (`rfix lint`) and auto-fix (`rfix local|origin|branch`) code changes since a certain point in history. You can auto-fix code committed since creating the current branch (`rfix origin`) or since pushing to upstream (`rfix local`).\n\nIncludes a RuboCop formatter with syntax highlighting and build in hyperlinks for offense documentation.\n\nHolds the same CLI arguments as RuboCop. Run `rfix --help` for a complete list or `rfix` for supported commands. Here are a few examples to get you started:\n\n- `rfix local` Auto-fixes commits not yet pushed to upstream\n- `rfix origin` Auto-fixes commits between `HEAD` and origin branch\n- `rfix lint` Lints commits and untracked files not yet pushed to upstream\n\n![Printscreen](resources/ps.png)\n\n## Installation\n\n``` shell\n$ gem install rfix [--pre]\n```\n\n## Help\n\n``` shell\n$ rfix branch \"branch\" # Fix changes made between HEAD and \u003cbranch\u003e\n$ rfix origin          # Fix changes made between HEAD and origin branch\n$ rfix local           # Fix changes not yet pushed to upstream branch\n$ rfix info            # Display runtime dependencies and their versions\n$ rfix all             # Fix all files in this repository (not recommended)\n$ rfix lint            # Shortcut for 'rfix local --dry --untracked'\n$ rfix                 # Displays this list of supported commands\n```\n\n### Arguments\n\n- `--dry` Turns off RuboCops autofix feature (read-only mode)\n- `--help` Displays RubyCops and Rfix supported arguments\n- `--list-files` List all files being passed to RubyCop\n- `--untracked` Include files not tracked by git\n- `--config` Configuration file, defaults to `.rubocop.yml`\n\n## Development\n\n### Setup\n\n``` shell\ngit clone https://github.com/oleander/rfix-rb\ncd rfix-rb\nbundle install\ngit submodule update --init --recursive\n```\n\n### Run tests\n\n``` shell\n$ bundle exec rake spec\n```\n\n## Overcommit\n\nAdd the following to your `.overcommit.yml`, then run `overcommit --install` and `overcommit --sign pre-commit`. Lints commits not yet pushed to your upstream branch whenever `git commit` is ran.\n\n``` yaml\nPreCommit:\n  RFix:\n    enabled: true\n    command: [\"rfix\", \"lint\"]\n    description: \"Lint unchanged commits using RuboCop\"\n    parallelize: true\n```\n\n### From scratch\n\n1. `gem install overcommit rfix`\n2. `curl https://raw.githubusercontent.com/oleander/rfix-rb/master/resouces/overcommit.yml \u003e .overcommit.yml`\n3. `overcommit --install`\n4. `overcommit --sign pre-commit`\n\nRun `overcommit --run` to test the new hook.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/oleander/rfix.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Frfix-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Frfix-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Frfix-rb/lists"}