Git Product home page Git Product logo

rubocop-jekyll's Introduction

RuboCop Jekyll

A RuboCop extension to enforce common code style in Jekyll and Jekyll plugins.

Gem Version RuboCop Support

Installation

Just install the rubocop-jekyll gem

gem install rubocop-jekyll

or if you prefer Bundler, add it to your Gemfile or gemspec

# Gemfile

gem "rubocop-jekyll", "~> 0.13.0"
# <plugin>.gemspec

spec.add_development_dependency "rubocop-jekyll", "~> 0.13.0"

and run bundle install

Usage

You need to tell RuboCop to load the extension and inherit the custom RuboCop configuration advocated by Jekyll.

Place the following at the top of your .rubocop.yml.

require: rubocop-jekyll
inherit_gem:
  rubocop-jekyll: .rubocop.yml

Running bundle exec rubocop will now automatically load the rubocop-jekyll cops together with the standard cops.

Customization

You can override any settings inherited from the extension by subsequently redefining the concerned parameters.

Release Cycle

A new release of this gem is manually cut based on the adoption of the latest version of RuboCop by the Jekyll repository:

  1. RuboCop releases a new version.
  2. The master branch of Jekyll repository is updated to the latest RuboCop version along with any updates to their .rubocop.yml.
  3. The RuboCop version and .rubocop.yml at this gem's repository is updated via a pull request.
  4. A new minor release is subsequently cut and shipped.

Note: A patch version of this gem will be released if Jekyll repository updates their .rubocop.yml independently of a RuboCop version bump.

rubocop-jekyll's People

Contributors

ashmaroli avatar jekyllbot avatar dirtyf avatar parkr avatar dependabot[bot] avatar

Stargazers

Michael Nordmeyer avatar Sean P. Myrick V19.1.7.2 avatar Delon R. Newman avatar Chris Nicholson avatar Stéphane FEUGA OSHIMA avatar Andrew Mason avatar Ken Salomon avatar

Watchers

 avatar Pat Hawks avatar James Cloos avatar  avatar  avatar Sean P. Myrick V19.1.7.2 avatar

rubocop-jekyll's Issues

Release v0.13.0

I was seeing an error generated in jekyll/github-metadata#245 and I wanted to upgrade the rubocop version. I was unable to since rubocop-jekyll locks rubocop to v1.18.0. I upgraded rubocop to lock it to v1.45.0 and tried to release/push but I don't have access to push the new gem and neither does jekyllbot.

@ashmaroli, would you mind releasing this version, v0.13.0?

Allow Rubocop versions above 1.18.x?

The requirements of this gem require rubocop ~> 1.18.0, meaning that Rubocop versions above 1.19.0 aren't allowed.

However, Rubocop doesn't support Ruby 3.2 until Rubocop version 1.26.0 Is there any reason we can't allow Rubocop 1.26 or higher?

$ bundle exec rubocop
Error: RuboCop found unknown Ruby version 3.2 in `.ruby-version`.
Supported versions: 2.5, 2.6, 2.7, 3.0, 3.1

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.