{"id":20972547,"url":"https://github.com/ericmbouwe/ruby-linter","last_synced_at":"2026-04-13T11:02:31.445Z","repository":{"id":118461409,"uuid":"260989214","full_name":"EricMbouwe/Ruby-Linter","owner":"EricMbouwe","description":"A tool that will scan your code written in Ruby (.rb files) with a set of style rules and will report any errors to you that it finds.","archived":false,"fork":false,"pushed_at":"2020-05-19T11:13:25.000Z","size":150,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2026-01-01T09:11:59.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EricMbouwe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-03T17:58:33.000Z","updated_at":"2020-09-09T08:41:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c021cdfe-4178-42df-bbb2-025f2f71282f","html_url":"https://github.com/EricMbouwe/Ruby-Linter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EricMbouwe/Ruby-Linter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FRuby-Linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FRuby-Linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FRuby-Linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FRuby-Linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricMbouwe","download_url":"https://codeload.github.com/EricMbouwe/Ruby-Linter/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FRuby-Linter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-19T04:08:43.725Z","updated_at":"2026-04-13T11:02:31.440Z","avatar_url":"https://github.com/EricMbouwe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![hire-badge](https://img.shields.io/badge/Consult%20/%20Hire%20EricMbouwe-Click%20to%20Contact-brightgreen)](mailto:consult.ericmbouwe@gmail.com) [![Twitter Follow](https://img.shields.io/twitter/follow/EricMbouwe?label=Follow%20EricMbouwe%20on%20Twitter\u0026style=social)](https://twitter.com/EricMbouwe)\n\n# Ruby Linter\n\nThis is a [linter](https://sourcelevel.io/blog/what-is-a-linter-and-why-your-team-should-use-it) developed in Ruby for Ruby (.rb) files. It's a linter for beginners, it provides feedback about errors or warning in code line by line by :\n- flagging bugs in your code from some syntax errors\n- giving you warnings when code is not correct\n- heplping you to keep a consistent code style\n\n![screenshot](./linter1.PNG)\n\n[Presentation video](https://www.loom.com/share/1ebf6d12968e44eb96c9cc72da266845)\n\n## Examples\n\n\u003e Limit lines to 50 characters.\n```\n# bad\nputs 'lorem pesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets Lorem Ipsum passages, and more recently with desktop publishing'\n\n# good\nputs 'lorem pesetting, remaining essentially unchanged. It was '\nputs 'popularised in the 1960s with the release of Letraset sheets'\nputs 'Lorem Ipsum passages, and more recently with desktop publishing'\n\n```\n\n\u003e Avoid single-line methods.\n```\n# bad\ndef too_much; something; something_else; end\n\n# okish - notice that the first ; is required\ndef no_braces_method; body end\n\n# okish - notice that the second ; is optional\ndef no_braces_method; body; end\n\n# okish - valid syntax, but no ; makes it kind of hard to read\ndef some_method() body end\n\n# good\ndef some_method\n  body\nend\n\n```\n\n\u003e No spaces after (, [ or before ], ). Use spaces around { and before }.\n```\n# bad\nsome( arg ).other\n[ 1, 2, 3 ].each{|e| puts e}\n\n# good\nsome(arg).other\n[1, 2, 3].each { |e| puts e }\n\n```\n\n\u003e Use spaces around { and before }.\n```\n# bad\nhash = {tom:12, max:15}\n\n# good\nhash = { tom:12, max:15 }\n\n```\n\n\u003e Use CamelCase for classes and modules.\n```\n# bad\nclass Someclass\n  # some code\nend\n\nclass Some_Class\n  # some code\nend\n\nclass SomeXml\n  # some code\nend\n\nclass XmlSomething\n  # some code\nend\n\n# good\nclass SomeClass\n  # some code\nend\n\nclass SomeXML\n  # some code\nend\n\nclass XMLSomething\n  # some code\nend\n\n```\n\n\u003e Use spaces around operators, after commas, colons and semicolons.\n```\n# bad\nsum=1+2\na,b=1,2\n\n# good\nsum = 1 + 2\na, b = 1, 2\n\n```\n\n## Built With\n\n- Ruby\n- Visual Studio Code\n- rspec\n- Rubocop\n- colorize\n\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. \n\n### Prerequisites\n\nThis project runs on [Ruby](https://www.ruby-lang.org/en/documentation/installation/)\n\nAfter installation, run `ruby -v` to make sure Ruby installed correctly. Example\n```\n$ ruby -v\nruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin17]\n```\n\n### How it works?\nThe linter parse your file line by line from the first one to the last and flag errors and/or warnings on your terminal\n\n### Installing\n- In your terminal, Clone the project locally and then Change directory to the root of the project\n```\n$ git clone https://github.com/EricMbouwe/Ruby-capstone-project.git\n\n$ cd Ruby-capstone-project\n```\n\n### How to use?\n- After installing the project, copy and paste your target file `\"filename.rb\"` to the project's `/lints` folder\n\n- In your terminal, install the gems in the Gemfile by running\n```\nbundle install\n```\nElse you can install the gems system-wide by using:\n```\ngem install rspec\ngem install colorize\n```\n\n### Run\n- In your Terminal run\n```\n$ bin/main.rb lints/filename.rb\n```\n\n## Author\n\n👤 **Eric Mbouwe**\n\n- Github: [@ericmbouwe](https://github.com/ericmbouwe)\n- Twitter: [@ericmbouwe](https://twitter.com/ericmbouwe)\n- Linkedin: [@ericmbouwe](https://www.linkedin.com/in/ericmbouwe/)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome! Start by:\n\n* Forking the project\n* Cloning the project to your local machine\n* `cd` into the project directory\n* Run `git checkout -b your-branch-name`\n* Make your contributions\n* Push your branch up to your forked repository\n* Open a Pull Request with a detailed description to the development branch of the original project for a review\n\n##### Please feel free to contribute to any of these!\n\nFeel free to check the [issues page](https://github.com/ericmbouwe/Ruby-capstone-project/issues).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- The Odin Project\n- [Microverse](microverse.org)\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmbouwe%2Fruby-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmbouwe%2Fruby-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmbouwe%2Fruby-linter/lists"}