All Projects → utkarsh2102 → Rubocop Packaging

utkarsh2102 / Rubocop Packaging

Licence: mit
A RuboCop extension focused on enforcing upstream best practices and coding conventions.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Rubocop Packaging

rubocop-graphql
Rubocop extension for enforcing graphql-ruby best practices
Stars: ✭ 143 (+393.1%)
Mutual labels:  rubocop, static-code-analysis, linter
Rubocop
A Ruby static code analyzer and formatter, based on the community Ruby style guide.
Stars: ✭ 11,593 (+39875.86%)
Mutual labels:  linter, rubocop, static-code-analysis
Rubocop Performance
An extension of RuboCop focused on code performance checks.
Stars: ✭ 340 (+1072.41%)
Mutual labels:  linter, rubocop, static-code-analysis
Rubocop Rails
A RuboCop extension focused on enforcing Rails best practices and coding conventions.
Stars: ✭ 433 (+1393.1%)
Mutual labels:  linter, rubocop, static-code-analysis
unimport
A linter, formatter for finding and removing unused import statements.
Stars: ✭ 119 (+310.34%)
Mutual labels:  static-code-analysis, linter
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (+27.59%)
Mutual labels:  static-code-analysis, linter
Bandit
Bandit is a tool designed to find common security issues in Python code.
Stars: ✭ 3,763 (+12875.86%)
Mutual labels:  linter, static-code-analysis
Pytype
A static type analyzer for Python code
Stars: ✭ 3,545 (+12124.14%)
Mutual labels:  linter, static-code-analysis
jetrockets-standard
Standard RuboCop configuration for JetRockets with cookies
Stars: ✭ 14 (-51.72%)
Mutual labels:  rubocop, linter
Awesome Standard
Documenting the explosion of packages in the standard ecosystem!
Stars: ✭ 300 (+934.48%)
Mutual labels:  linter, static-code-analysis
Pylint
It's not just a linter that annoys you!
Stars: ✭ 3,733 (+12772.41%)
Mutual labels:  linter, static-code-analysis
standard-packages
List of packages that use `standard`
Stars: ✭ 32 (+10.34%)
Mutual labels:  static-code-analysis, linter
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (+24.14%)
Mutual labels:  static-code-analysis, linter
Lint Review
An automated code linting bot that integrates various code lint tools with github pull requests.
Stars: ✭ 279 (+862.07%)
Mutual labels:  linter, rubocop
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (+196.55%)
Mutual labels:  static-code-analysis, linter
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+15558.62%)
Mutual labels:  linter, static-code-analysis
Eslint
Find and fix problems in your JavaScript code.
Stars: ✭ 19,665 (+67710.34%)
Mutual labels:  linter, static-code-analysis
Eslint Config Standard React
ESLint Shareable Config for React/JSX support in JavaScript Standard Style
Stars: ✭ 416 (+1334.48%)
Mutual labels:  linter, static-code-analysis
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+196.55%)
Mutual labels:  rubocop, linter
action-rubocop
Run rubocop with reviewdog 🐶
Stars: ✭ 83 (+186.21%)
Mutual labels:  rubocop, linter

RuboCop::Packaging

RuboCop::Packaging is an extension of RuboCop, which is a Ruby static code analyzer (a.k.a. linter) and code formatter.

It helps enforcing some of the guidelines that are expected of upstream maintainers so that the downstream can build their packages in a clean environment without any problems.

Documentation

A detailed documentation, explaining what this extension is doing and the reasoning behind it, can be found here: https://docs.rubocop.org/rubocop-packaging/

We also have a packaging-style-guide, listing some good and bad examples and the rationale behind these cops.

In case anything is not clear, please feel free to raise an issue, asking for more explanation!

Installation

Add this line to your application's Gemfile:

gem 'rubocop-packaging'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install rubocop-packaging

Usage

You need to tell RuboCop to load the Packaging extension. There are three ways to do this:

RuboCop configuration file

Put this into your .rubocop.yml file:

require: rubocop-packaging

Alternatively, use the following array notation when specifying multiple extensions:

require:
  - rubocop-other-extension
  - rubocop-packaging

Now you can run rubocop and it will automatically load the RuboCop Packaging cops together with the standard cops.

Command line

rubocop --require rubocop-packaging

Rake task

RuboCop::RakeTask.new do |task|
  task.requires << 'rubocop-packaging'
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

Contributing

As always, bug reports and pull requests are heartily welcomed! 💖
This project is intended to be a safe and welcoming space for collaboration.

License

rubocop-packaging is available as open-source under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].