hovancik/BSDSec

View on GitHub

Showing 209 of 209 total issues

Line is too long. [304/120]
Open

"https://motif.imgix.com/i?url=#{u url}&image_url=#{u image_url '/img/pankaj-patel-fvMeP4ml4bU-unsplash.jpg' }&color=b1d6f4&logo_url=#{u image_url '/img/bsdsec.png' }&logo_alignment=top%2Ccenter&text_alignment=bottom%2Ccenter&logo_padding=70&font_family=Avenir%20Next%20Demi%2CBold&text_color=1d1d1d"
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Method has too many lines. [29/10]
Open

def process
case email_list_address
when ENV.fetch("TEST_EMAIL")
create_article("Test")
when "announce@openbsd.org"
Severity: Minor
Found in app/mailboxes/bsdsec_mailbox.rb by rubocop

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

    Cyclomatic complexity for process is too high. [12/7]
    Open

    def process
    case email_list_address
    when ENV.fetch("TEST_EMAIL")
    create_article("Test")
    when "announce@openbsd.org"
    Severity: Minor
    Found in app/mailboxes/bsdsec_mailbox.rb by rubocop

    Method has too many lines. [12/10]
    Open

    def create_article(tag_list)
    article = Article.create(title: mail.subject, body: mail.body,
    from: mail.from.first,
    tag_list: tag_list.downcase)
    f_id = article.friendly_id
    Severity: Minor
    Found in app/mailboxes/bsdsec_mailbox.rb by rubocop

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

    def process
    case email_list_address
    when ENV.fetch("TEST_EMAIL")
    create_article("Test")
    when "announce@openbsd.org"
    Severity: Minor
    Found in app/mailboxes/bsdsec_mailbox.rb - About 1 hr to fix

      BsdsecMailbox#process has approx 12 statements
      Open

      def process
      Severity: Minor
      Found in app/mailboxes/bsdsec_mailbox.rb by reek

      ArticlesController has no descriptive comment
      Open

      class ArticlesController < ApplicationController
      Severity: Minor
      Found in app/controllers/articles_controller.rb by reek

      Email has no descriptive comment
      Open

      class Email < ApplicationRecord
      Severity: Minor
      Found in app/models/email.rb by reek

      Tag has no descriptive comment
      Open

      class Tag < ApplicationRecord
      Severity: Minor
      Found in app/models/tag.rb by reek

      BsdsecMailbox#process calls 'create_article("NetBSD")' 2 times
      Open

      create_article("NetBSD")
      when "announce@netbsd.org"
      create_article("NetBSD")
      Severity: Minor
      Found in app/mailboxes/bsdsec_mailbox.rb by reek

      Article has no descriptive comment
      Open

      class Article < ApplicationRecord
      Severity: Minor
      Found in app/models/article.rb by reek

      ApplicationController has no descriptive comment
      Open

      class ApplicationController < ActionController::Base

      ApplicationHelper has no descriptive comment
      Open

      module ApplicationHelper
      Severity: Minor
      Found in app/helpers/application_helper.rb by reek

      ArticlesHelper has no descriptive comment
      Open

      module ArticlesHelper
      Severity: Minor
      Found in app/helpers/articles_helper.rb by reek

      BsdsecMailbox#create_article calls 'mail.subject' 2 times
      Open

      article = Article.create(title: mail.subject, body: mail.body,
      from: mail.from.first,
      tag_list: tag_list.downcase)
      f_id = article.friendly_id
      if ENV.fetch("TWITTER", nil)
      Severity: Minor
      Found in app/mailboxes/bsdsec_mailbox.rb by reek

      BsdsecMailbox has no descriptive comment
      Open

      class BsdsecMailbox < ApplicationMailbox
      Severity: Minor
      Found in app/mailboxes/bsdsec_mailbox.rb by reek

      TagsHelper has no descriptive comment
      Open

      module TagsHelper
      Severity: Minor
      Found in app/helpers/tags_helper.rb by reek

      Tagging has no descriptive comment
      Open

      class Tagging < ApplicationRecord
      Severity: Minor
      Found in app/models/tagging.rb by reek

      BsdsecMailbox#process calls 'create_article("FreeBSD")' 5 times
      Open

      create_article("FreeBSD")
      when "announce@freebsd.org"
      create_article("FreeBSD")
      when "security-advisories@freebsd.org"
      create_article("FreeBSD")
      Severity: Minor
      Found in app/mailboxes/bsdsec_mailbox.rb by reek
      Severity
      Category
      Status
      Source
      Language