Sort cops from a Rubocop configuration file in alphabetic order.
Explore the docs »
Report Bug
·
Request Feature
DISCLAIMER: This is a toy project to play with the dry-cli Ruby gem.
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/akarzim/rubosort.gitIn a terminal, step inside the Rubosort directory and run:
❯ ./rubosort --help
Commands:
rubosort sort FILE # Sort the given Rubocop file
rubosort version # Print versionThe main command is sort which takes an argument and some options:
❯ ./rubosort sort --help
Command:
rubosort sort
Usage:
rubosort sort FILE
Description:
Sort the given Rubocop file
Arguments:
FILE # REQUIRED File to sort
Options:
--output=VALUE, -o VALUE # File to write in, default: "-"
--[no-]force # Force write to output file, default: false
--help, -h # Print this help
Examples:
rubosort sort path/to/foo.yml # Run Rubosort on foo.yml file
rubosort sort foo.yml -o bar.yml # Writes the result in bar.yml
rubosort sort foo.yml -o bar.yml --foce # Force writing into existing bar.yml fileSee the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
François Vantomme - @akarzim
Project Link: https://github.com/akarzim/rubosort