foodcritic | Lint tool for Chef cookbooks | Code Analyzer library

 by   Foodcritic Ruby Version: Current License: MIT

kandi X-RAY | foodcritic Summary

kandi X-RAY | foodcritic Summary

foodcritic is a Ruby library typically used in Code Quality, Code Analyzer applications. foodcritic has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Foodcritic 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.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              foodcritic has a low active ecosystem.
              It has 420 star(s) with 161 fork(s). There are 16 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 79 open issues and 330 have been closed. On average issues are closed in 996 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of foodcritic is current.

            kandi-Quality Quality

              foodcritic has 0 bugs and 0 code smells.

            kandi-Security Security

              foodcritic has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              foodcritic code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              foodcritic is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              foodcritic releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              foodcritic saves you 5209 person hours of effort in developing the same functionality from scratch.
              It has 10943 lines of code, 256 functions and 234 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed foodcritic and discovered the below as its top functions. This is intended to give you an instant insight into foodcritic implemented functionality, and help decide if they suit your requirements.
            • Checks all the files in the cookbook .
            • Create a cookbook
            • Create a ruby recipe with the given name .
            • Options for the command line
            • Extracts notifications from an array of notifications
            • Defines a command
            • Extend the class to be included
            • Create the default attributes file
            • Create a resource file
            • Create a recipe file
            Get all kandi verified functions for this library.

            foodcritic Key Features

            No Key Features are available at this moment for foodcritic.

            foodcritic Examples and Code Snippets

            No Code Snippets are available at this moment for foodcritic.

            Community Discussions

            QUESTION

            VSCode Style/PercentLiteralDelimiters rule not being respected in ruby files
            Asked 2019-Aug-20 at 17:52

            Please help me I am being tortured by the linting squiggly and I cannot get rid of it. Here is the context

            working in vscode 1.37.0

            on a chef project (mostly ruby syntax)

            I have the chef extension installed and chefdk installed an available in my path

            And for the life of me I cannot get the linting warning for Style/PercentLiteralDelimiters to go away. I will get this warning when I am using []

            Then if I make the suggested change to () it wants me to flip it the other way.

            I get the same results if I specify this rule in my rubocop.yml

            ...

            ANSWER

            Answered 2019-Aug-20 at 17:52

            So thanks to the comment from Draco Alter I was able to figure out the issue I had.

            First I had a miss understanding about Foodcritic and was conflating it with cookstyle. After understanding that and the comment that Draco made saying

            Some of the rules in Cookstyle and Rubocop are conflicting - and %w is one of them.

            I figured I would favor cookstyle as I am using ruby exclusively for chef. So I ensured rubocop was gone gem uninstall rubocop and then I just needed to update my vscode workspace settings to have from

            Source https://stackoverflow.com/questions/57512021

            QUESTION

            foodcritic (3.0.3) gem installation is failing in Mac OS High Sierra
            Asked 2018-Jul-29 at 13:27

            My food critic gem installation is failing with the below error

            ...

            ANSWER

            Answered 2018-Jul-29 at 13:27

            Foodcritic 3.0.3 is from 2013. See here:
            https://rubygems.org/gems/foodcritic/versions/3.0.3

            Unfortunately it is not compatible with the latest version of Ruby. Your choices are to either downgrade Ruby to something less than 2.4, maybe even as low as 1.9 to be sure of compatibility, or upgrade foodcritic to its latest version (14.0.0).

            Source https://stackoverflow.com/questions/51580117

            QUESTION

            Chef metadata.rb dependency needs to depend on itself
            Asked 2017-Nov-22 at 22:00

            I am getting a foodcritic error when I try to include a recipie within the default.rb for the apache cookbook lesson:

            ...

            ANSWER

            Answered 2017-Nov-22 at 22:00

            The FC007 activation is wrong. Are you sure you're running foodcritic correctly? Just run foodcritic . on the base of the cookbook folder (i.e. the same place as the metadata.rb is). That should detect the name of the cookbook and not flag the include.

            Source https://stackoverflow.com/questions/47441894

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install foodcritic

            You can download it from GitHub.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            The Foodcritic site at http://foodcritic.io/ contains documentation for each of the rules as well as documentation on the API for writing your own rules.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Foodcritic/foodcritic.git

          • CLI

            gh repo clone Foodcritic/foodcritic

          • sshUrl

            git@github.com:Foodcritic/foodcritic.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Code Analyzer Libraries

            javascript

            by airbnb

            standard

            by standard

            eslint

            by eslint

            tools

            by rome

            mypy

            by python

            Try Top Libraries by Foodcritic

            foodcritic-site

            by FoodcriticRuby