Socket
Book a DemoInstallSign in
Socket

accessiblerb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accessiblerb

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

🎁 accessiblerb

A set of Rubocop rules focused on accessiblity and legibility without concern for existing community standards.

Why?

All of the existing tools, like standardrb or the Ruby style guide, do not consider the consequences of their defaults on the wide variety of people using Ruby day to day.

What can I expect?

This set of rules focuses on reduced nesting of code and accessibility for the reader. It breaks with the community entirely in several areas like indent styles.

Rules will evoke immediate disagreement from some, but they are all considered using real code and the following guidelines:

  • it improves the experience of Rubyists with any form of visual impairment
  • it eases programming for Rubyists with hand impairments
  • it improves working memory burden by eliminating nested scopes
  • it improves legibility by reducing rightward drift in statements and expressions
  • it improves ease of understanding Ruby code

Quickstart

To use this gem, install it:

gem install accessiblerb

Then configure Rubocop:

# inside of your .rubocop.yml
inherit_gem:
  accessiblerb: rules.yml

FAQs

Package last updated on 27 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.