SebastianCarroll/jekyll-rakefile

View on GitHub

Showing 3 of 319 total issues

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

def check_links
begin
require 'anemone'
 
root = 'http://localhost:4000/'
Severity: Minor
Found in lib/tools.rb - About 1 hr to fix

    Method check_links has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    def check_links
    begin
    require 'anemone'
     
    root = 'http://localhost:4000/'
    Severity: Minor
    Found in lib/tools.rb - About 25 mins to fix

    Method set_post_dir_and_yaml_cat has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    def set_post_dir_and_yaml_cat(dir)
    # Written like this to deal with category being nil
    if @category and Dir.exists?(File.join(@category, dir)) then
    @post_dir = File.join(@category, dir)
    @yaml_cat = nil
    Severity: Minor
    Found in lib/jekyll_rake/post.rb - About 25 mins to fix
    Severity
    Category
    Status
    Source
    Language