{"id":18774352,"url":"https://github.com/tomoya/rubocop-auto-correct","last_synced_at":"2025-04-13T09:30:51.496Z","repository":{"id":31166094,"uuid":"34726264","full_name":"tomoya/rubocop-auto-correct","owner":"tomoya","description":"Auto-correct ruby source code by using rubocop in Atom.","archived":true,"fork":false,"pushed_at":"2020-04-11T09:16:43.000Z","size":93,"stargazers_count":29,"open_issues_count":16,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T05:43:22.783Z","etag":null,"topics":["atom","refactoring","rubocop","ruby"],"latest_commit_sha":null,"homepage":"https://atom.io/packages/rubocop-auto-correct","language":"CoffeeScript","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/tomoya.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-28T11:20:38.000Z","updated_at":"2023-11-11T13:49:12.000Z","dependencies_parsed_at":"2022-09-07T01:10:11.647Z","dependency_job_id":null,"html_url":"https://github.com/tomoya/rubocop-auto-correct","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoya%2Frubocop-auto-correct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoya%2Frubocop-auto-correct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoya%2Frubocop-auto-correct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomoya%2Frubocop-auto-correct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomoya","download_url":"https://codeload.github.com/tomoya/rubocop-auto-correct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690726,"owners_count":21146197,"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":["atom","refactoring","rubocop","ruby"],"created_at":"2024-11-07T19:38:03.116Z","updated_at":"2025-04-13T09:30:51.204Z","avatar_url":"https://github.com/tomoya.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rubocop-auto-correct package [![Build Status](https://travis-ci.org/tomoya/rubocop-auto-correct.svg?branch=master)](https://travis-ci.org/tomoya/rubocop-auto-correct)\n\nAuto-correct ruby source code by using rubocop in Atom.\n\n![rubocop-auto-correct:current-file](https://cloud.githubusercontent.com/assets/18009/8393555/a35f1530-1d4f-11e5-9a5f-089927e54f38.gif)\n\n## Prerequisites\n\nYou have [rubocop](https://github.com/bbatsov/rubocop) installed.\n\n    $ gem install rubocop\n\n## Usage\n\n1. Run `Rubocop Auto Correct: Current File` from Command Palette\n2. Select `Rubocop Auto-correct` in Context menu\n3. Select [Packages] -\u003e [Rubocop Auto-correct] -\u003e [Current File] in menu bar\n\n### Commands\n\n| Name | Description |\n| ---- | ----------- |\n| `RUbocop Auto Correct: Current File` | Run rubocop auto-correct to current file |\n| `RUbocop Auto Correct: Toggle Notification` | Toggle notification option |\n| `RUbocop Auto Correct: Toggle Only Fixed Notification` | Toggle only fixes notification option |\n| `RUbocop Auto Correct: Toggle Auto Run` | Toggle auto run option |\n| `RUbocop Auto Correct: Toggle Debug Mode` | Toggle debug-mode option |\n\n## Keymap example\n\nThis package does not provide default keymap.\n\nIf you want to use the commands from keybinding, please set up `~/.atom/keymap.cson` following the below:\n\n```coffee\n'atom-text-editor[data-grammar~=\"ruby\"]':\n  'alt-r': 'rubocop-auto-correct:current-file'\n```\n\n## Settings\n\n![rubocop-auto-correct setting panel](https://cloud.githubusercontent.com/assets/18009/17727348/aa08a8d8-6493-11e6-9a14-7efc28d17315.png)\n\nIf you have a custom `.rubocop.yml`, this package will search it on project's root folder or on `$HOME/.rubocop.yml`\n\n### Auto Run\n\nThis package supports auto-run. When checked, it runs Rubocop auto correct. But, **it does not run automatically unless you activate this package**.\n\nYou can activate it by running manually `Rubocop Auto Correct: Current File` once at Atom window.\n\n- default value is `false`\n\nYou can enable/disable this option by `Rubocop Auto Correct: Toggle Auto Run` command at any time.\n\n### Correct File\n\nYou can correct a file directly if you enable this option. You do not need to save file after correcting it.\n\n- default value is `false`\n\nI recommend you to enable `Auto Run` \u0026 `Correct File` options. Then, all files are corrected automatically.\n\n### Notification\n\nWhen this option is disabled, you do not receive any notifications even thought a file is corrected.\n\n- default value is `true`\n\nYou can enable/disable this option by `Rubocop Auto Correct: Toggle Notification` command at any time.\n\n### Only Fixes Notification\n\nWhen this option is disabled, you will get all rubocop notifications appeared.\n\n- default value is `true`\n\nYou can enable/disable this option by `Rubocop Auto Correct: Toggle Only Fixes Notification` command at any time.\n\n### Rubocop Command Path\n\nIf you already installed rubocop, please check package setting at `Rubocop Command Path`. For example `~/.rbenv/shims/rubocop`.\n\nIf you want to set arguments, please set arguments with command at here. For example `rubocop --format simple`\n\n- default value is `rubocop`\n\n### Debug Mode\n\nWhen this option is disabled, you can get log on console.\n\n- default value is `false`\n\nYou can enable/disable this option by `Rubocop Auto Correct: Toggle Debug Mode` command at any time.\n\n## Contributing\n\n1. Fork it ( https://github.com/tomoya/rubocop-auto-correct/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomoya%2Frubocop-auto-correct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomoya%2Frubocop-auto-correct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomoya%2Frubocop-auto-correct/lists"}