{"id":20204565,"url":"https://github.com/wilsonsilva/rubocop-raylib","last_synced_at":"2026-06-09T10:31:42.640Z","repository":{"id":202603403,"uuid":"707582275","full_name":"wilsonsilva/rubocop-raylib","owner":"wilsonsilva","description":"A linter for the raylib gem to ensure proper usage of its API","archived":false,"fork":false,"pushed_at":"2023-10-20T08:29:51.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T19:44:07.783Z","etag":null,"topics":["game-development","linter","raylib","raylib-rb","raylib-ruby","rubocop"],"latest_commit_sha":null,"homepage":"https://raylib-ruby.com/learn/linter","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilsonsilva.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-20T08:08:59.000Z","updated_at":"2023-10-20T08:31:11.000Z","dependencies_parsed_at":"2023-10-20T15:17:54.031Z","dependency_job_id":null,"html_url":"https://github.com/wilsonsilva/rubocop-raylib","commit_stats":null,"previous_names":["wilsonsilva/rubocop-raylib"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wilsonsilva/rubocop-raylib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Frubocop-raylib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Frubocop-raylib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Frubocop-raylib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Frubocop-raylib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilsonsilva","download_url":"https://codeload.github.com/wilsonsilva/rubocop-raylib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Frubocop-raylib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34103355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game-development","linter","raylib","raylib-rb","raylib-ruby","rubocop"],"created_at":"2024-11-14T05:13:54.805Z","updated_at":"2026-06-09T10:31:42.622Z","avatar_url":"https://github.com/wilsonsilva.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RuboCop::Raylib\n\nLinter to ensure the correct and optimal usage of the [Raylib gem's](https://github.com/wilsonsilva/raylib-ruby) API.\nBy leveraging RuboCop, it provides insights and prompts for best practices when using Raylib gem.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add rubocop-raylib --require=false\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install rubocop-raylib\n\nThen add the following to the application's `.rubocop.yml` file:\n\n```yaml\nrequire:\n  - rubocop-raylib\n```\n\n## Usage\n\nRun RuboCop as usual and it will automatically load the RuboCop Raylib cops together with the standard cops.\n\nFor example, given the following Raylib app where `Raylib.end_drawing` and `Raylib.close_window` are missing:\n\n```ruby\nrequire 'raylib'\n\nSCREEN_WIDTH = 640\nSCREEN_HEIGHT = 480\n\nRaylib.init_window(SCREEN_WIDTH, SCREEN_HEIGHT, 'My window')\nRaylib.set_target_fps(60)\n\nuntil Raylib.window_should_close # Detect window close button or ESC key\n  Raylib.begin_drawing\n  Raylib.clear_background(Raylib::WHITE)\n  Raylib.draw_text('Hello, Raylib!', 10, 10, 20, Raylib::BLACK)\nend\n```\n\nRunning `rubocop` will produce the following output:\n\n```\nInspecting 1 file\nI\n\nOffenses:\n\napp.rb:6:1: I: MemoryManagement/UnpairedResource: Found init_window without a corresponding close_window.\nRaylib.init_window(SCREEN_WIDTH, SCREEN_HEIGHT, 'My window')\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\napp.rb:10:3: I: MemoryManagement/UnpairedResource: Found begin_drawing without a corresponding end_drawing.\n  Raylib.begin_drawing\n  ^^^^^^^^^^^^^^^^^^^^\n\n1 file inspected, 2 offenses detected\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.\nYou can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the\nversion number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,\npush git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/wilsonsilva/rubocop-raylib. This project is\nintended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the\n[code of conduct](https://github.com/wilsonsilva/rubocop-raylib/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Rubocop::Raylib project's codebases, issue trackers, chat rooms and mailing lists is\nexpected to follow the [code of conduct](https://github.com/wilsonsilva/rubocop-raylib/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonsilva%2Frubocop-raylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilsonsilva%2Frubocop-raylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonsilva%2Frubocop-raylib/lists"}