hovancik/BSDSec

View on GitHub

Showing 209 of 209 total issues

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

when "announce@netbsd.org"
Severity: Minor
Found in app/mailboxes/bsdsec_mailbox.rb by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

"announce@openbsd.org", "freebsd-announce@freebsd.org",
Severity: Minor
Found in app/mailboxes/bsdsec_mailbox.rb by rubocop

Missing top-level documentation comment for class ApplicationRecord.
Open

class ApplicationRecord < ActiveRecord::Base
Severity: Minor
Found in app/models/application_record.rb by rubocop

Extra empty line detected at class body beginning.
Open

 
extend FriendlyId
Severity: Minor
Found in app/models/article.rb by rubocop

Extra empty line detected at class body end.
Open

 
end
Severity: Minor
Found in app/models/article.rb by rubocop

Use 2 (not 4) spaces for indentation.
Open

friendly_id :title, use: :slugged
Severity: Minor
Found in app/models/article.rb by rubocop

Use 2 (not 4) spaces for indentation.
Open

has_many :tags, through: :taggings
Severity: Minor
Found in app/models/article.rb by rubocop

Missing frozen string literal comment.
Open

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

Use !empty? instead of length > 0.
Open

feed.updated(@articles[0].created_at) if @articles.length > 0

Missing frozen string literal comment.
Open

class ApplicationController < ActionController::Base

Space missing after comma.
Open

text.sub("[FreeBSD-Announce]","").sub("[Midnightbsd-security]","")
Severity: Minor
Found in app/helpers/application_helper.rb by rubocop

Space inside string interpolation detected.
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

Assignment Branch Condition size for create_article is too high. [<3, 18, 1> 18.28/17]
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

Missing top-level documentation comment for class BsdsecMailbox.
Open

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

"security-announce@lists.pfsense.org", ENV.fetch("TEST_EMAIL")]
Severity: Minor
Found in app/mailboxes/bsdsec_mailbox.rb by rubocop

Use 2 (not 4) spaces for indentation.
Open

paginates_per 10
Severity: Minor
Found in app/models/article.rb by rubocop

Use 2 (not 4) spaces for indentation.
Open

def tag_list=(tags_string)
Severity: Minor
Found in app/models/article.rb by rubocop

Space between { and | missing.
Open

tag_names = tags_string.split(",").collect{|s| s.strip.downcase}.uniq
Severity: Minor
Found in app/models/article.rb by rubocop

Redundant self detected.
Open

self.tags.collect do |tag|
Severity: Minor
Found in app/models/article.rb by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
Severity: Minor
Found in bin/webpack by rubocop
Severity
Category
Status
Source
Language