anthonymidili/Recipedia

View on GitHub

Showing 3 of 17 total issues

Method recipe_meta_tag_options has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def recipe_meta_tag_options(recipe)
    set_meta_tags description: recipe.description.to_plain_text,
      keywords: recipe.categories.list_names,
      twitter: {
        card:  "summary",
Severity: Minor
Found in app/helpers/meta_tags_helper.rb - About 1 hr to fix

    Method create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def create
        @category = Category.new(category_params)
        @category.user = current_user
        @categories = Category.all
    
    
    Severity: Minor
    Found in app/controllers/categories_controller.rb - About 1 hr to fix

      Method set_root_meta_tag_options has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def set_root_meta_tag_options
          set_meta_tags description: main_description,
            twitter: {
              card:  "summary",
              title: "Recipedia | Let's cook together",
      Severity: Minor
      Found in app/helpers/meta_tags_helper.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language