rubocop-packaging icon indicating copy to clipboard operation
rubocop-packaging copied to clipboard

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

Results 3 rubocop-packaging issues
Sort by recently updated
recently updated
newest added

I've recently found [this awesome article](https://piotrmurach.com/articles/writing-a-ruby-gem-specification/) explaining the contents of a gemspec file. I was wondering if some of these suggestions could be useful enough to be a cop for...

Hi, This is with regards to issue #35 for the same I have tweaked the AST so that it checks the usage of File.expand_path and File.dirname used with lib/. I...

``` Offenses: spec/generators/paper_trail/install_generator_spec.rb:5:1: C: Packaging/RequireHardcodingLib: Avoid using require with relative path to lib/. Use require with absolute path instead. require File.expand_path("../../../lib/generators/paper_trail/install/install_generator", __dir__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` This warning happened. But, `File.expand_path` was...

enhancement