fyntech/fyntech

View on GitHub

Showing 219 of 219 total issues

Trailing whitespace detected.
Open

      elsif input.is_a?(String) 
Severity: Minor
Found in _plugins/time.rb by rubocop

Use 2 (not 0) spaces for indentation.
Open

    def convertDate(date, offset)
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Use 2 (not 1) spaces for indentation.
Open

            doc.data['dateEnd'] = convertDate(event['time']+event['duration'],event['utc_offset'])
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Tab detected.
Open

        return convertedDate
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

                raise
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

    end
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

        end
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

    @@meetup_groups = Jekyll.configuration({})['meetup_groups']
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Replace class var @@timezone with a class instance var.
Open

      @@timezone = Jekyll.configuration({})['timezone']
Severity: Minor
Found in _plugins/time.rb by rubocop

This cop checks for uses of class variables. Offenses are signaled only on assignment to class variables to reduce the number of offenses that would be reported.

Trailing whitespace detected.
Open

      if input.is_a?(Time) 
Severity: Minor
Found in _plugins/time.rb by rubocop

Surrounding space missing for operator +.
Open

            doc.data['dateEnd'] = convertDate(event['time']+event['duration'],event['utc_offset'])
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Checks that operators have space around them, except for ** which should not have surrounding space.

Example:

# bad
total = 3*4
"apple"+"juice"
my_number = 38/4
a ** b

# good
total = 3 * 4
"apple" + "juice"
my_number = 38 / 4
a**b

Tab detected.
Open

    def convertDate(date, offset)
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

        if event['venue']
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

            else
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

    @@timezone = Jekyll.configuration({})['timezone']
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

      @@timezone = Jekyll.configuration({})['timezone']
Severity: Minor
Found in _plugins/time.rb by rubocop

Tab detected.
Open

    def generate(site)
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

end at 71, 2 is not aligned with class at 4, 1.
Open

  end
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the EnforcedStyleAlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example: EnforcedStyleAlignWith: keyword (default)

# bad

variable = if true
    end

# good

variable = if true
           end

Example: EnforcedStyleAlignWith: variable

# bad

variable = if true
    end

# good

variable = if true
end

Example: EnforcedStyleAlignWith: startofline

# bad

variable = if true
    end

# good

puts(if true
end)

Tab detected.
Open

        dateWithOffset = date + offset
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

The name of this source file (meetupFetcher.rb) should use snake_case.
Open

require 'meetup_client'
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

This cop makes sure that Ruby source files have snake_case names. Ruby scripts (i.e. source files with a shebang in the first line) are ignored.

Example:

# bad
lib/layoutManager.rb

anything/usingCamelCase

# good
lib/layout_manager.rb

anything/using_snake_case.rake
Severity
Category
Status
Source
Language