fyntech/fyntech

View on GitHub

Showing 219 of 219 total issues

MeetupFetcher::Generator#getMeetUpGroupEvents has the variable name 'sleepTimeout'
Open

                sleepTimeout = maxRetryTimeout - (maxRetryTimeout / initialRetries * retries)
Severity: Minor
Found in _plugins/meetupFetcher.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

MeetupFetcher::Generator#convertDate has the variable name 'dateWithOffset'
Open

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

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Jekyll::IcsFilter#split_string has the variable name 'i'
Open

          i = firstline.bytesize       
          while i < line.bytesize do
            nextline = utf8_valid(line.byteslice(i, length - prepend.bytesize))
            output += "\n" + prepend + nextline
            i = i + nextline.bytesize
Severity: Minor
Found in _plugins/ics.rb by reek

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

MeetupFetcher::Generator#convertDate has the name 'convertDate'
Open

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

An Uncommunicative Method Name is a method name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

MeetupFetcher::Generator#getMeetUpGroupEvents has the name 'getMeetUpGroupEvents'
Open

    def getMeetUpGroupEvents(group)
Severity: Minor
Found in _plugins/meetupFetcher.rb by reek

An Uncommunicative Method Name is a method name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Use 2 (not 1) spaces for indentation.
Open

        maxRetryTimeout = 50
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 = generateEventDocument(event)
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

            if retries > 0
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

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

Use 2 (not 1) spaces for indentation.
Open

        doc = Jekyll::Document.new('', :site => @site, :collection => @collection)
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

Space missing after comma.
Open

        convertedDate = "#{DateTime.strptime(dateWithOffset.to_s,'%Q').strftime('%Y-%m-%d %H:%M:%S')} #{@@timezone}"
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Checks for comma (,) not followed by some kind of space.

Example:

# bad
[1,2]
{ foo:bar,}

# good
[1, 2]
{ foo:bar, }

Space missing after comma.
Open

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

Checks for comma (,) not followed by some kind of space.

Example:

# bad
[1,2]
{ foo:bar,}

# good
[1, 2]
{ foo:bar, }

Tab detected.
Open

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

Tab detected.
Open

        convertedDate = "#{DateTime.strptime(dateWithOffset.to_s,'%Q').strftime('%Y-%m-%d %H:%M:%S')} #{@@timezone}"
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

            doc.data['location'] = "#{event['venue']['name']}<br>#{event['venue']['address_1']}"
Severity: Minor
Found in _plugins/meetupFetcher.rb by rubocop

Tab detected.
Open

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

Tab detected.
Open

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

Inconsistent indentation detected.
Open

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

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Trailing whitespace detected.
Open

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

Missing magic comment # frozen_string_literal: true.
Open

require 'active_support/all'
Severity: Minor
Found in _plugins/time.rb by rubocop

This cop is designed to help upgrade to Ruby 3.0. It will add the comment # frozen_string_literal: true to the top of files to enable frozen string literals. Frozen string literals may be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+.

Example: EnforcedStyle: when_needed (default)

# The `when_needed` style will add the frozen string literal comment
# to files only when the `TargetRubyVersion` is set to 2.3+.
# bad
module Foo
  # ...
end

# good
# frozen_string_literal: true

module Foo
  # ...
end

Example: EnforcedStyle: always

# The `always` style will always add the frozen string literal comment
# to a file, regardless of the Ruby version or if `freeze` or `<<` are
# called on a string literal.
# bad
module Bar
  # ...
end

# good
# frozen_string_literal: true

module Bar
  # ...
end

Example: EnforcedStyle: never

# The `never` will enforce that the frozen string literal comment does
# not exist in a file.
# bad
# frozen_string_literal: true

module Baz
  # ...
end

# good
module Baz
  # ...
end
Severity
Category
Status
Source
Language