anthonymidili/Recipedia

View on GitHub

Showing 3 of 13 total issues

Function exports has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(api) {
  var validEnv = ['development', 'test', 'production']
  var currentEnv = api.env()
  var isDevelopmentEnv = api.env('development')
  var isProductionEnv = api.env('production')
Severity: Major
Found in babel.config.js - About 2 hrs to fix

    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,
          keywords: recipe.categories.list_names,
          twitter: {
            card:  "summary",
    Severity: Minor
    Found in app/helpers/meta_tags_helper.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: 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