{"id":13879166,"url":"https://github.com/rubocop/rubocop-minitest","last_synced_at":"2025-05-14T17:08:38.488Z","repository":{"id":36980524,"uuid":"200589229","full_name":"rubocop/rubocop-minitest","owner":"rubocop","description":"Code style checking for Minitest files.","archived":false,"fork":false,"pushed_at":"2025-05-08T10:14:12.000Z","size":921,"stargazers_count":148,"open_issues_count":9,"forks_count":44,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-08T11:26:52.415Z","etag":null,"topics":["code-formatter","hacktoberfest","linter","minitest","rubocop","ruby","static-code"],"latest_commit_sha":null,"homepage":"https://docs.rubocop.org/rubocop-minitest","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/rubocop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"zenodo":null},"funding":{"github":"bbatsov","patreon":"bbatsov","open_collective":"rubocop","tidelift":"rubygems/rubocop","custom":"https://www.paypal.me/bbatsov"}},"created_at":"2019-08-05T05:39:32.000Z","updated_at":"2025-05-08T10:14:21.000Z","dependencies_parsed_at":"2023-02-16T03:01:27.982Z","dependency_job_id":"b98fd713-8dbb-4bf0-ac7d-9f7ee2555008","html_url":"https://github.com/rubocop/rubocop-minitest","commit_stats":null,"previous_names":[],"tags_count":74,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-minitest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-minitest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-minitest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-minitest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubocop","download_url":"https://codeload.github.com/rubocop/rubocop-minitest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190396,"owners_count":22029632,"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":["code-formatter","hacktoberfest","linter","minitest","rubocop","ruby","static-code"],"created_at":"2024-08-06T08:02:11.941Z","updated_at":"2025-05-14T17:08:38.469Z","avatar_url":"https://github.com/rubocop.png","language":"Ruby","funding_links":["https://github.com/sponsors/bbatsov","https://patreon.com/bbatsov","https://opencollective.com/rubocop","https://tidelift.com/funding/github/rubygems/rubocop","https://www.paypal.me/bbatsov"],"categories":["Ruby"],"sub_categories":[],"readme":"# RuboCop Minitest\n\n[![Gem Version](https://badge.fury.io/rb/rubocop-minitest.svg)](https://badge.fury.io/rb/rubocop-minitest)\n[![CI](https://github.com/rubocop/rubocop-minitest/actions/workflows/test.yml/badge.svg)](https://github.com/rubocop/rubocop-minitest/actions/workflows/test.yml)\n\nA [RuboCop](https://github.com/rubocop/rubocop) extension focused on enforcing [Minitest](https://github.com/minitest/minitest) best practices and coding conventions.\nThe library is based on the guidelines outlined in the community [Minitest Style Guide](https://minitest.rubystyle.guide).\n\n## Installation\n\nJust install the `rubocop-minitest` gem\n\n```sh\n$ gem install rubocop-minitest\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-minitest', require: false\n```\n\n## Usage\n\nYou need to tell RuboCop to load the Minitest extension. There are three\nways to do this:\n\n### RuboCop configuration file\n\nPut this into your `.rubocop.yml`.\n\n```yaml\nplugins: rubocop-minitest\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-other-extension\n  - rubocop-minitest\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop Minitest\ncops together with the standard cops.\n\n\u003e [!NOTE]\n\u003e The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.\n\n### Command line\n\n```sh\n$ rubocop --plugin rubocop-minitest\n```\n\n### Rake task\n\n```ruby\nrequire 'rubocop/rake_task'\n\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-minitest'\nend\n```\n\n## The Cops\n\nAll cops are located under\n[`lib/rubocop/cop/minitest`](lib/rubocop/cop/minitest), and contain\nexamples/documentation. The documentation is published [here](https://docs.rubocop.org/rubocop-minitest/).\n\nIn your `.rubocop.yml`, you may treat the Minitest cops just like any other\ncop. For example:\n\n```yaml\nMinitest/AssertNil:\n  Exclude:\n    - test/my_file_to_ignore_test.rb\n```\n\n## Documentation\n\nYou can read a lot more about RuboCop Minitest in its [official docs](https://docs.rubocop.org/rubocop-minitest/).\n\n## Readme Badge\n\nIf you use RuboCop Minitest in your project, you can include one of these badges in your readme to let people know that your code is written following the community Minitest Style Guide.\n\n[![Minitest Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop-minitest)\n\n[![Minitest Style Guide](https://img.shields.io/badge/code_style-community-brightgreen.svg)](https://minitest.rubystyle.guide)\n\nHere are the Markdown snippets for the two badges:\n\n``` markdown\n[![Minitest Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop-minitest)\n\n[![Minitest Style Guide](https://img.shields.io/badge/code_style-community-brightgreen.svg)](https://minitest.rubystyle.guide)\n```\n\n## Contributing\n\nCheckout the [contribution guidelines](CONTRIBUTING.md).\n\n## License\n\n`rubocop-minitest` is MIT licensed. [See the accompanying file](LICENSE.txt) for\nthe full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-minitest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubocop%2Frubocop-minitest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-minitest/lists"}