All Projects → tomoya → rubocop-auto-correct

tomoya / rubocop-auto-correct

Licence: MIT license
Auto-correct ruby source code by using rubocop in Atom.

Programming Languages

coffeescript
4710 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to rubocop-auto-correct

Php Ide Serenata
Atom IDE package that integrates the Serenata server to provide PHP code assistance
Stars: ✭ 277 (+855.17%)
Mutual labels:  refactoring, atom
atom-refactoring
Atom package that provides refactoring capabilities for your PHP source code.
Stars: ✭ 16 (-44.83%)
Mutual labels:  refactoring, atom
Clang Expand
🐉 A clang tool for happy refactoring without source-code gymnastics
Stars: ✭ 182 (+527.59%)
Mutual labels:  refactoring
rubocop-rails
RuboCop configuration which has the same code style checking as official Ruby on Rails
Stars: ✭ 63 (+117.24%)
Mutual labels:  rubocop
Quiz App
A repository reflecting the progress made on the "How to Build iOS Apps with Swift, TDD & Clean Architecture" YouTube series, by Caio & Mike.
Stars: ✭ 230 (+693.1%)
Mutual labels:  refactoring
Migration
《系统重构与迁移指南》手把手教你分析、评估现有系统、制定重构策略、探索可行重构方案、搭建测试防护网、进行系统架构重构、服务架构重构、模块重构、代码重构、数据库重构、重构后的架构守护
Stars: ✭ 2,753 (+9393.1%)
Mutual labels:  refactoring
Escape From Callback Mountain
Example Project & Guide for mastering Promises in Node/JavaScript. Feat. proposed 'Functional River' pattern
Stars: ✭ 249 (+758.62%)
Mutual labels:  refactoring
Code Smells And Feels
Talk on code smells and feels and how to change that via refactoring
Stars: ✭ 178 (+513.79%)
Mutual labels:  refactoring
vscode-linter
Extension for code linting, all in one package. New linters can be easily added through an extension framework.
Stars: ✭ 47 (+62.07%)
Mutual labels:  rubocop
Refactor Nrepl
nREPL middleware to support refactorings in an editor agnostic way
Stars: ✭ 213 (+634.48%)
Mutual labels:  refactoring
TwoDark
Atom's OneDark inspired theme for Sublime Text
Stars: ✭ 19 (-34.48%)
Mutual labels:  atom
Learning Oop In Php
A collection of resources to learn object-oriented programming and related concepts for PHP developers.
Stars: ✭ 2,359 (+8034.48%)
Mutual labels:  refactoring
Js Refactor
JS Refactoring tool for Visual Studio Code
Stars: ✭ 195 (+572.41%)
Mutual labels:  refactoring
atom-tic80
Make and run TIC-80 games in Atom
Stars: ✭ 15 (-48.28%)
Mutual labels:  atom
Tagalong.vim
Change an HTML(ish) opening tag and take the closing one along as well
Stars: ✭ 184 (+534.48%)
Mutual labels:  refactoring
Refactoringminer
Stars: ✭ 177 (+510.34%)
Mutual labels:  refactoring
Abracadabra
Automated refactorings for VS Code (JS & TS) ✨ It's magic ✨
Stars: ✭ 204 (+603.45%)
Mutual labels:  refactoring
Best Of Python Dev
🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.
Stars: ✭ 243 (+737.93%)
Mutual labels:  refactoring
autocomplete-haskell
Atom autocomplete-plus provider for haskell
Stars: ✭ 23 (-20.69%)
Mutual labels:  atom
bracket-padder
⌨️ Convenient padding and closing of brackets for Atom
Stars: ✭ 13 (-55.17%)
Mutual labels:  atom

rubocop-auto-correct package Build Status

Auto-correct ruby source code by using rubocop in Atom.

rubocop-auto-correct:current-file

Prerequisites

You have rubocop installed.

$ gem install rubocop

Usage

  1. Run Rubocop Auto Correct: Current File from Command Palette
  2. Select Rubocop Auto-correct in Context menu
  3. Select [Packages] -> [Rubocop Auto-correct] -> [Current File] in menu bar

Commands

Name Description
RUbocop Auto Correct: Current File Run rubocop auto-correct to current file
RUbocop Auto Correct: Toggle Notification Toggle notification option
RUbocop Auto Correct: Toggle Only Fixed Notification Toggle only fixes notification option
RUbocop Auto Correct: Toggle Auto Run Toggle auto run option
RUbocop Auto Correct: Toggle Debug Mode Toggle debug-mode option

Keymap example

This package does not provide default keymap.

If you want to use the commands from keybinding, please set up ~/.atom/keymap.cson following the below:

'atom-text-editor[data-grammar~="ruby"]':
  'alt-r': 'rubocop-auto-correct:current-file'

Settings

rubocop-auto-correct setting panel

If you have a custom .rubocop.yml, this package will search it on project's root folder or on $HOME/.rubocop.yml

Auto Run

This package supports auto-run. When checked, it runs Rubocop auto correct. But, it does not run automatically unless you activate this package.

You can activate it by running manually Rubocop Auto Correct: Current File once at Atom window.

  • default value is false

You can enable/disable this option by Rubocop Auto Correct: Toggle Auto Run command at any time.

Correct File

You can correct a file directly if you enable this option. You do not need to save file after correcting it.

  • default value is false

I recommend you to enable Auto Run & Correct File options. Then, all files are corrected automatically.

Notification

When this option is disabled, you do not receive any notifications even thought a file is corrected.

  • default value is true

You can enable/disable this option by Rubocop Auto Correct: Toggle Notification command at any time.

Only Fixes Notification

When this option is disabled, you will get all rubocop notifications appeared.

  • default value is true

You can enable/disable this option by Rubocop Auto Correct: Toggle Only Fixes Notification command at any time.

Rubocop Command Path

If you already installed rubocop, please check package setting at Rubocop Command Path. For example ~/.rbenv/shims/rubocop.

If you want to set arguments, please set arguments with command at here. For example rubocop --format simple

  • default value is rubocop

Debug Mode

When this option is disabled, you can get log on console.

  • default value is false

You can enable/disable this option by Rubocop Auto Correct: Toggle Debug Mode command at any time.

Contributing

  1. Fork it ( https://github.com/tomoya/rubocop-auto-correct/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].