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"
- Read upRead up
- Exclude checks
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"
- Read upRead up
- Exclude checks
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')
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"
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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"
ArticlesController has no descriptive comment Open
class ArticlesController < ApplicationController
- Read upRead up
- Exclude checks
BsdsecMailbox#process calls 'create_article("NetBSD")' 2 times Open
create_article("NetBSD") when "announce@netbsd.org" create_article("NetBSD")
- Read upRead up
- Exclude checks
Article has no descriptive comment Open
class Article < ApplicationRecord
- Read upRead up
- Exclude checks
ApplicationController has no descriptive comment Open
class ApplicationController < ActionController::Base
- Read upRead up
- Exclude checks
ApplicationHelper has no descriptive comment Open
module ApplicationHelper
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
BsdsecMailbox has no descriptive comment Open
class BsdsecMailbox < ApplicationMailbox
- Read upRead up
- Exclude checks
Tagging has no descriptive comment Open
class Tagging < ApplicationRecord
- Read upRead up
- Exclude checks
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")
- Read upRead up
- Exclude checks