{"id":13462974,"url":"https://github.com/Foodcritic/foodcritic","last_synced_at":"2025-03-25T06:31:27.246Z","repository":{"id":1934969,"uuid":"2863853","full_name":"Foodcritic/foodcritic","owner":"Foodcritic","description":"Lint tool for Chef cookbooks.","archived":true,"fork":false,"pushed_at":"2020-09-01T05:48:58.000Z","size":2930,"stargazers_count":405,"open_issues_count":84,"forks_count":153,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-19T03:02:50.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://foodcritic.io","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/Foodcritic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2011-11-28T00:37:19.000Z","updated_at":"2025-03-15T20:58:12.000Z","dependencies_parsed_at":"2022-09-03T07:52:33.849Z","dependency_job_id":null,"html_url":"https://github.com/Foodcritic/foodcritic","commit_stats":null,"previous_names":["acrmp/foodcritic"],"tags_count":88,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foodcritic%2Ffoodcritic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foodcritic%2Ffoodcritic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foodcritic%2Ffoodcritic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foodcritic%2Ffoodcritic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Foodcritic","download_url":"https://codeload.github.com/Foodcritic/foodcritic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244751892,"owners_count":20504248,"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":[],"created_at":"2024-07-31T13:00:42.960Z","updated_at":"2025-03-25T06:31:26.661Z","avatar_url":"https://github.com/Foodcritic.png","language":"Ruby","funding_links":[],"categories":["Code Quality","Ruby"],"sub_categories":["Code Metrics"],"readme":"# Foodcritic\n\n\n**⚠️⚠️⚠️ All good things come to an end, and now is the time [to say goodbye to Foodcritic.](https://blog.chef.io/goodbye-foodcritic/) ⚠️⚠️⚠️**\n\n**At this point we consider the Foodcritic project sunsetted and suggest all users move cookbook linting to [Cookstyle](https://github.com/chef/cookstyle/).**\n\n**Cookstyle with Chef cookbook support ships in Chef Workstation 0.9+ and ChefDK 4.4+. If you’d like to checkout the project or request new cops visit [github.com/chef/cookstyle](https://github.com/chef/cookstyle/)**\n\n\u003chr/\u003e\n\n[![Build Status](https://travis-ci.org/Foodcritic/foodcritic.svg?branch=master)](https://travis-ci.org/Foodcritic/foodcritic) [![Gem Version](https://badge.fury.io/rb/foodcritic.svg)](http://badge.fury.io/rb/foodcritic)\n\nFoodcritic is a code linting tool for writing better and safer Chef cookbooks that runs both as a command line tool and as a Rake task. Out of the box Foodcritic contains over 70 cookbook rules, and plugin system for writing your own rules.\n\n## Basic Usage\n\n```shell\n$ gem install foodcritic\n$ foodcritic my_cookbook_dir\n```\n\n## Documentation\n\nThe Foodcritic site at \u003chttp://foodcritic.io/\u003e contains documentation for each of the rules as well as documentation on the API for writing your own rules.\n\n## Requirements\n\n- Ruby 2.3+\n\n## Building Foodcritic\n\n```\n$ bundle install\n$ bundle exec rake\n```\n\n## Testing Foodcritic\n\nFoodcritic includes rspec tests of the application itself and cucumber tests for each of the included rules. Each of these tests can be run via rake\n\nRunning rspec tests:\n\n```\n$ bundle exec rake spec\n```\n\nRunning cucumber tests:\n\n```\n$ bundle exec rake features\n```\n\nRunning regression tests:\n\n```\n$ bundle exec rake 'spec[regression]'\n```\n\n## Docker\n\nFoodcritic can also be used with Docker. To build and run Foodcritic in a Docker container please follow the instructions below.\n\nBuilding the Docker image:\n\n```shell\n$ docker build --rm -t foodcritic/foodcritic .\n```\n\nRunning Foodcritic inside a Docker container:\n\n```shell\n$ docker run -it --rm -v ~/cookbooks:/cookbooks foodcritic/foodcritic \"/cookbooks\"\n```\n\n**Note:** This will mount the host directory `~/cookbooks` into the container in the path `/cookbooks`.\n\n## License\n\nMIT - see the accompanying [LICENSE](https://github.com/Foodcritic/foodcritic/blob/master/LICENSE) file for details.\n\n## Changelog\n\nTo see what has changed in recent versions see the [CHANGELOG](https://github.com/Foodcritic/foodcritic/blob/master/CHANGELOG.md). Foodcritic follows the [Rubygems Semantic Versioning Policy](http://guides.rubygems.org/patterns/#semantic-versioning).\n\n## Contributing\n\nAdditional rules and bug fixes are welcome! Please fork and submit a pull request on an individual branch per change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFoodcritic%2Ffoodcritic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFoodcritic%2Ffoodcritic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFoodcritic%2Ffoodcritic/lists"}