diff --git a/.rubocop.yml b/.rubocop.yml index 7b4bdb2..ed51f8b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,9 @@ +require: + - rubocop-raylib + AllCops: TargetRubyVersion: 3.2 + NewCops: enable Style/StringLiterals: Enabled: true @@ -11,3 +15,6 @@ Style/StringLiteralsInInterpolation: Layout/LineLength: Max: 120 + +MemoryManagement/UnpairedResource: + Enabled: true diff --git a/README.md b/README.md index cf1d74a..2f75c0b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Ruby bindings for [raylib](https://www.raylib.com/), a simple and easy-to-use li - **VR stereo rendering** support with configurable HMD device parameters - Huge examples collection with [+20 code examples](https://github.com/wilsonsilva/raylib-ruby/tree/main/examples)! - **Free and open source**. +- Linter for best practices: [rubocop-raylib](https://github.com/wilsonsilva/rubocop-raylib) ## Installation diff --git a/raylib.gemspec b/raylib.gemspec index 3bed708..2ec45b1 100644 --- a/raylib.gemspec +++ b/raylib.gemspec @@ -32,4 +32,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rspec", "~> 3.12" spec.add_development_dependency "rubocop", "~> 1.57" + spec.add_development_dependency "rubocop-raylib", "~> 0.1" end