{"id":13878906,"url":"https://github.com/ericqweinstein/ruumba","last_synced_at":"2025-07-16T14:33:16.159Z","repository":{"id":31063674,"uuid":"34622513","full_name":"ericqweinstein/ruumba","owner":"ericqweinstein","description":"RuboCop linting for ERB templates.","archived":false,"fork":false,"pushed_at":"2021-08-19T10:39:49.000Z","size":104,"stargazers_count":94,"open_issues_count":12,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-17T14:04:25.557Z","etag":null,"topics":["erb","rubocop","ruby"],"latest_commit_sha":null,"homepage":null,"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/ericqweinstein.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":"2015-04-26T17:25:28.000Z","updated_at":"2024-09-30T07:17:39.000Z","dependencies_parsed_at":"2022-08-17T18:05:37.746Z","dependency_job_id":null,"html_url":"https://github.com/ericqweinstein/ruumba","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericqweinstein%2Fruumba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericqweinstein%2Fruumba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericqweinstein%2Fruumba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericqweinstein%2Fruumba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericqweinstein","download_url":"https://codeload.github.com/ericqweinstein/ruumba/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226138849,"owners_count":17579496,"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":["erb","rubocop","ruby"],"created_at":"2024-08-06T08:02:03.863Z","updated_at":"2024-11-24T07:31:23.772Z","avatar_url":"https://github.com/ericqweinstein.png","language":"Ruby","readme":"Ruumba\n======\n\n[![Build Status](https://travis-ci.org/ericqweinstein/ruumba.svg?branch=master)](https://travis-ci.org/ericqweinstein/ruumba)\n\n\u003e .erb or .rb, you're coming with me.\n\n\u003e — RuboCop\n\n## About\nRuumba is [RuboCop's](https://github.com/bbatsov/rubocop) sidekick, allowing you to lint your .erb Rubies as well as your regular-type ones.\n\n## Dependencies\n* Ruby 2.4+\n\n## Installation\n```bash\nλ gem install ruumba\n```\n\n## Usage\nCommand line:\n\n```bash\nλ ruumba directory_of_erb_files/\n```\n\nRake task:\n\n```ruby\nrequire 'ruumba/rake_task'\n\nRuumba::RakeTask.new(:ruumba) do |t|\n  t.dir = %w(lib/views)\n\n  # You can specify CLI options too:\n  t.options = { arguments: %w[-c .ruumba.yml] }\nend\n```\n\nThen:\n\n```bash\nλ bundle exec rake ruumba\n```\n\n## Fix Paths and Non-Applicable Cops\n\nBy default, RuboCop only scans `.rb` files and so does Ruumba. If you want shown\npaths to reflect original paths, you can add create a `.ruumba.yml` config file\nwith the following contents:\n\n```yaml\nAllCops:\n  Include:\n    - '**/*.erb'\n```\n\nYou can then disable the `.rb` extension auto-append and use your config file:\n\n```bash\nλ ruumba -D -e app/views -c .ruumba.yml\n```\n\nSince Ruumba rewrites new files from `.erb` files contents, some formatting cops\ncannot apply. You can disable them in your Ruumba config file:\n\n```yaml\nStyle/FrozenStringLiteralComment:\n  Enabled: false\nLayout/HashAlignment:\n  Enabled: false\nLayout/ParameterAlignment:\n  Enabled: false\nLayout/IndentationWidth:\n  Enabled: false\nLayout/TrailingEmptyLines:\n  Enabled: false\n```\n\nYou can use `ruumba -a` or `ruumba -D` to look for other cops if this list is\nmissing some.\n\nYou might want to include your existing RuboCop config file by appending this in\nfront of your Ruumba config:\n\n```yaml\ninherit_from: .rubocop.yml\n```\n\n### Editor Integrations\n\n* [Atom plugin](https://atom.io/packages/linter-ruumba)\n* [Vim plugin](https://github.com/dense-analysis/ale)\n* [Emacs package](https://github.com/flycheck/flycheck)\n\n## Contributing\n1. Branch (`git checkout -b fancy-new-feature`)\n2. Commit (`git commit -m \"Fanciness!\"`)\n3. Test (`bundle exec rake spec`)\n4. Lint (`bundle exec rake rubocop`)\n5. Push (`git push origin fancy-new-feature`)\n6. Ye Olde Pulle Requeste\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericqweinstein%2Fruumba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericqweinstein%2Fruumba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericqweinstein%2Fruumba/lists"}