A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rubocop/rubocop-ast below:

rubocop/rubocop-ast: RuboCop's AST extensions and NodePattern functionality

Contains the classes needed by RuboCop to deal with Ruby's AST, in particular:

This gem may be used independently from the main RuboCop gem. It was extracted from RuboCop in version 0.84 and its only dependency is the parser gem, which rubocop-ast extends.

Just install the rubocop-ast gem

or if you use bundler put this in your Gemfile

Refer to the documentation of RuboCop::AST::Node and RuboCop::AST::NodePattern

See the docs site for more details.

Parser compatibility switches

This gem, by default, uses most legacy AST output from parser, except for the following which are set to true:

The main RuboCop gem uses these defaults (and is currently only compatible with these), but this gem can be used separately from RuboCop and is meant to be compatible with all settings. For example, to have -> { ... } emitted as LambdaNode instead of SendNode:

RuboCop::AST::Builder.emit_lambda = true

Checkout the contribution guidelines.

rubocop-ast is MIT licensed. See the accompanying file for the full text.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4