Giter Site home page Giter Site logo

rubocop-schema's Introduction

RuboCop Config Schema Generator

This gem generates a JSON schema for your RuboCop configuration files, which you can use in your IDE (e.g. RubyMine) for autocompletion and validation.

Installation

$ gem install rubocop-schema-gem

Usage

Change to a directory containing a Gemfile.lock, which the generator will use to target your version of rubocop, and any extensions you may be using (e.g. rubocop-rails).

$ cd ./my_project
$ rubocop-schema-gen
Generating rubocop-1.13.1-config-schema.json … complete in 5.2s

The name of the generated file is based on your gem version(s). You can override it with an argument.

$ rubocop-schema-gen rubocop-schema.json
Generating rubocop-schema.json … complete in 0.7s

Pass - to write to standard output.

The generator caches pages from https://raw.githubusercontent.com/rubocop in ~/.rubocop-schema-cache.

Please refer to your IDE's documentation regarding applying the schema to your .rubocop.yml file.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hx/rubocop-schema. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the Apache License, Version 2.0.

rubocop-schema's People

Contributors

hx avatar voidei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.