Skip to content

Update doc.md

Update doc.md #242

GitHub Actions / Codety scanner - Ruby required action Sep 11, 2024 in 0s

Ruby

found issues in 1 files

Annotations

Check warning on line 1 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L1

[naming] [file-name]  The name of this source file (`bad-ruby-code-examples.rb`) should use snake_case.

Check warning on line 1 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L1

[style] [frozen-string-literal-comment]  Missing frozen string literal comment.

Check warning on line 2 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L2

[lint] [useless-assignment]  Useless assignment to variable - `result`.

Check warning on line 2 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L2

[layout] [space-around-operators]  Operator `=` should be surrounded by a single space.

Check warning on line 2 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L2

[layout] [extra-spacing]  Unnecessary spacing detected.

Check warning on line 2 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L2

[lint] [unused-block-argument]  Unused block argument - `k`. If it's necessary, use `_` or `_k` as an argument name to indicate that it won't be used.

Check warning on line 4 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L4

[layout] [extra-spacing]  Unnecessary spacing detected.

Check warning on line 4 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L4

[naming] [method-parameter-name]  Method parameter must be at least 3 characters long.

Check warning on line 5 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L5

[lint] [useless-assignment]  Useless assignment to variable - `unused_var`. Use `_` or `_unused_var` as a variable name to indicate that it won't be used.

Check warning on line 5 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L5

[lint] [useless-assignment]  Useless assignment to variable - `used_var`. Use `_` or `_used_var` as a variable name to indicate that it won't be used.

Check warning on line 10 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L10

[lint] [useless-assignment]  Useless assignment to variable - `a`. Use `_` or `_a` as a variable name to indicate that it won't be used.

Check warning on line 10 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L10

[style] [parallel-assignment]  Do not use parallel assignment.

Check warning on line 10 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L10

[lint] [useless-assignment]  Useless assignment to variable - `b`. Use `_` or `_b` as a variable name to indicate that it won't be used.

Check warning on line 10 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L10

[lint] [useless-assignment]  Useless assignment to variable - `c`. Use `_` or `_c` as a variable name to indicate that it won't be used.

Check warning on line 10 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L10

[lint] [useless-assignment]  Useless assignment to variable - `d`. Use `_` or `_d` as a variable name to indicate that it won't be used.

Check warning on line 10 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L10

[layout] [extra-spacing]  Unnecessary spacing detected.

Check warning on line 13 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L13

[lint] [useless-assignment]  Useless assignment to variable - `заплата`.

Check warning on line 13 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L13

[naming] [ascii-identifiers]  Use only ascii symbols in identifiers.

Check warning on line 15 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L15

[layout] [empty-lines]  Extra blank line detected.

Check warning on line 17 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L17

[style] [redundant-exception]  Redundant `RuntimeError` argument can be removed.

Check warning on line 17 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L17

[layout] [space-after-comma]  Space missing after comma.

Check warning on line 17 in code-issue-examples/ruby/bad-ruby-code-examples.rb

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Ruby

code-issue-examples/ruby/bad-ruby-code-examples.rb#L17

[layout] [trailing-empty-lines]  Final newline missing.