{"id":18833752,"url":"https://github.com/vichuge/rb-capstone-rubocop","last_synced_at":"2025-04-14T04:32:06.835Z","repository":{"id":55617289,"uuid":"322071785","full_name":"vichuge/rb-capstone-rubocop","owner":"vichuge","description":"A rubocop version made by myself for ruby language. This tool helps to get the rubocop issues in a script.","archived":false,"fork":false,"pushed_at":"2020-12-17T21:58:50.000Z","size":54,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-03-27T18:52:23.808Z","etag":null,"topics":["linters","rspec","rubocop","ruby","ruby-language"],"latest_commit_sha":null,"homepage":"","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/vichuge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-16T18:43:21.000Z","updated_at":"2023-06-23T20:24:58.000Z","dependencies_parsed_at":"2022-08-15T04:31:35.874Z","dependency_job_id":null,"html_url":"https://github.com/vichuge/rb-capstone-rubocop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2Frb-capstone-rubocop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2Frb-capstone-rubocop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2Frb-capstone-rubocop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2Frb-capstone-rubocop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vichuge","download_url":"https://codeload.github.com/vichuge/rb-capstone-rubocop/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248821832,"owners_count":21166966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["linters","rspec","rubocop","ruby","ruby-language"],"created_at":"2024-11-08T02:02:29.724Z","updated_at":"2025-04-14T04:32:02.605Z","avatar_url":"https://github.com/vichuge.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Microverse-blueviolet)\n\n# Rubocop linters\n\n\u003e A rubocop version made by myself for ruby language. This tool helps to get the rubocop issues in a script.\n\n![screenshot](./assets/imgs/screenshot.png)\n\n**This project was build with ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x64-mingw32]**\n\n## Built With\n\n- Ruby\n- Rubocop\n- Rspec\n\n## Set up locally\n\n- Clone the repository.\n- Make sure that you install ruby, open the CMD and type \"ruby -v\". If you can't see the version install ruby [here!](https://rubyinstaller.org/).\n- Make sure to have rspec in your computer after ruby, if you don't have rspec, you can install it opening your terminal and typing \"gem install rspec\". Use \"rspec --version\" to check if the installation was completed.\n- Open the folder in a terminal and run the main file with \"ruby bin/main.rb\".\n- Check the rspec test using \"rspec\" in the terminal.\n\n## Rules\n\n\u003e As a style checker, this tool helps in specific ways to have your code according to good practices in ruby language. Here you can see some examples who explain rules and to know what exactly mark this tool when you run it.\n\n== Right spaces\n\nIs not good to have right *blank-space(s)* in a line after logic.\n\n```Ruby\n# bad - blank-spaces after code\ndef some_method\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  #Code here...\nend\n\n# good\ndef some_method\n  #Code here...\nend\n```\n\n== Blank line at the start\n\nConsider blank lines at the script start.\n\n```Ruby\n# bad - a blank line\n\ndef some_method\n  #Code here...\nend\n\n# good\ndef some_method\n  #Code here...\nend\n```\n\n== Semicolon\n\nA Semicolon after the line is not required.\n\n```Ruby\n# bad - using a semicolon\nputs \"I'm a puts\";\n\n# good\nputs \"I'm a puts\"\n```\n\n== Navigation operator\n\nWhen a navigation operator is used, is not required to have blank spaces between the operator and the elements.\n\n```Ruby\n# bad\nfoo \u0026. bar\nfoo \u0026.bar\nfoo\u0026. bar\n\n# good\nfoo\u0026.bar\n```\n\n== Space between elements in Array\n\nThe array should have a blank space between the open key with the first element, between the comma with next element, and before the close key.\n\n```Ruby\n# bad\n[ 1,2, 3 ]\n[1, 2, 3]\n\n# good\n[ 1, 2, 3 ]\n```\n\n== Space between exponent operator is not required\n\nThe exponent operator symbol and the elements should be together.\n\n```Ruby\n# bad\ne  = M * c ** 2\n\n# good\ne = M * c**2\n```\n\n## Authors\n\n👤 **Victor Pacheco**\n\n- GitHub: [@vichuge](https://github.com/vichuge)\n- LinkedIn: [LinkedIn](https://www.linkedin.com/in/victor-pacheco-7946aab2/)\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/vichuge/rb-capstone-rubocop/issues).\n\n## Show your support\n\nGive an ⭐️ if you like this project!\n\n## 📝 License\n\nThis project is [MIT](https://github.com/vichuge/rb-capstone-rubocop/blob/rubocop-logic/LICENSE) licensed, thanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvichuge%2Frb-capstone-rubocop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvichuge%2Frb-capstone-rubocop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvichuge%2Frb-capstone-rubocop/lists"}