Skip to content

Commit

Permalink
Lint the code with rubcop-raylib
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonsilva committed Oct 20, 2023
1 parent fc1feaa commit 66382a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
require:
- rubocop-raylib

AllCops:
TargetRubyVersion: 3.2
NewCops: enable

Style/StringLiterals:
Enabled: true
Expand All @@ -11,3 +15,6 @@ Style/StringLiteralsInInterpolation:

Layout/LineLength:
Max: 120

MemoryManagement/UnpairedResource:
Enabled: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions raylib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 66382a5

Please sign in to comment.