doches/rwordnet

View on GitHub

Showing 392 of 392 total issues

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

    "\\" => "Pertainym (pertains to noun)",
Severity: Minor
Found in lib/rwordnet/pointers.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

    "&" => "Similar to",
Severity: Minor
Found in lib/rwordnet/pointers.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

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

  PART_MERONYM = "%p"
Severity: Minor
Found in lib/rwordnet/pointers.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Line is too long. [115/80]
Open

    # The offset, in bytes, at which the synsets contained in this lemma are stored in WordNet's internal database.
Severity: Minor
Found in lib/rwordnet/lemma.rb by rubocop

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

      @@cache = {}
Severity: Minor
Found in lib/rwordnet/lemma.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.

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

      line = lexicon_line.split(" ")
Severity: Minor
Found in lib/rwordnet/lemma.rb by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Line is too long. [100/80]
Open

    # The part of speech this pointer represents. One of 'n', 'v', 'a' (adjective), or 'r' (adverb).
Severity: Minor
Found in lib/rwordnet/pointer.rb by rubocop

Rename is_semantic? to semantic?.
Open

    def is_semantic?
Severity: Minor
Found in lib/rwordnet/pointer.rb by rubocop

This cop makes sure that predicates are named properly.

Example:

# bad
def is_even?(value)
end

# good
def even?(value)
end

# bad
def has_value?
end

# good
def value?
end

Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem bump should appear before rake.
Open

  gem "bump"
Severity: Minor
Found in Gemfile by rubocop

Gems should be alphabetically sorted within groups.

Example:

# bad
gem 'rubocop'
gem 'rspec'

# good
gem 'rspec'
gem 'rubocop'

# good
gem 'rubocop'

gem 'rspec'

# good only if TreatCommentsAsGroupSeparators is true
# For code quality
gem 'rubocop'
# For tests
gem 'rspec'

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

  gem "rdoc"
Severity: Minor
Found in Gemfile by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

XXX found
Open

05442916 08 n 01 XXX 0 002 @ 05443651 n 0000 ;c 06075527 n 0000 | (genetics) abnormal complement of three X chromosomes in a female  
Severity: Minor
Found in WordNet-3.0/dict/data.noun by fixme

XXX found
Open

13749407 23 n 03 thirty 0 30 0 XXX 0 001 @ 13745420 n 0000 | the cardinal number that is the product of ten and three  
Severity: Minor
Found in WordNet-3.0/dict/data.noun by fixme
Severity
Category
Status
Source
Language