Giter VIP home page Giter VIP logo

Comments (4)

fkorotkov avatar fkorotkov commented on June 12, 2024 1

This is working now 🎉 Thanks, @edigaryev!

from cirrus-ci-annotations.

AlexWayfer avatar AlexWayfer commented on June 12, 2024

Default successful output (with warnings):

The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
 - Style/HashEachMethods
 - Style/HashTransformKeys
 - Style/HashTransformValues
Inspecting 87 files
.......................................................................................

87 files inspected, no offenses detected

With some offenses:

The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
 - Style/HashEachMethods
 - Style/HashTransformKeys
 - Style/HashTransformValues
Inspecting 87 files
....................................................................................W..

Offenses:

spec/unit/router_spec.rb:98:4: C: Layout/IndentationWidth: Use 1 (not 0) spaces for indentation.
			let(:path) { Flame::Path.new('/another') }
   
spec/unit/router_spec.rb:117:33: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
			let(:path) { Flame::Path.new("/one/foo") }
                                ^^^^^^^^^^
spec/unit/router_spec.rb:136:29: W: Lint/AmbiguousOperator: Ambiguous splat operator. Parenthesize the method arguments if it's surely a splat operator, or add a whitespace to the right of the * if it should be a multiplication.
		subject { super().path_of *args }
                            ^

87 files inspected, 3 offenses detected

from cirrus-ci-annotations.

AlexWayfer avatar AlexWayfer commented on June 12, 2024

I draw your attention that offenses are broken a little bit for in examples with tab-indentation.

With standard 2-spaces indentation:

const_memoization.rb:45:1: C: Style/Documentation: Missing top-level class documentation comment.
class PlatformD
^^^^^
const_memoization.rb:55:1: C: Layout/EmptyLines: Extra blank line detected.
const_memoization.rb:72:1: C: Layout/EmptyLines: Extra blank line detected.
const_memoization.rb:73:1: C: Layout/EmptyLineBetweenDefs: Use empty lines between method definitions.
def test
^^^^^^^^
const_memoization.rb:75:5: C: Layout/FirstArrayElementIndentation: Use 2 spaces for indentation in an array, relative to the first position after the preceding left parenthesis.
    via_simple_method,
    ^^^^^^^^^^^^^^^^^
const_memoization.rb:79:3: C: Layout/FirstArrayElementIndentation: Indent the right bracket the same as the first position after the preceding left parenthesis.
  ]).uniq.size) > 1
  ^
const_memoization.rb:102:1: C: Layout/EmptyLines: Extra blank line detected.
downcase_2.3.rb:18:20: C: Style/AsciiComments: Use only ascii symbols in comments.
#   SLUG.casecmp?('абвг')
                   ^^^^
env.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
puts 'Backticks:'
^
env.rb:5:6: C: Style/CommandLiteral: Use backticks around command string.
puts %x{echo $PATH}
     ^^^^^^^^^^^^^^
env.rb:5:6: C: Style/PercentLiteralDelimiters: %x-literals should be delimited by ( and ).
puts %x{echo $PATH}
     ^^^^^^^^^^^^^^
erubi/test.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
require "tilt"
^
erubi/test.rb:1:9: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
require "tilt"
        ^^^^^^

from cirrus-ci-annotations.

AlexWayfer avatar AlexWayfer commented on June 12, 2024

Considering the questions in #10, I'm providing RuboCop format and output options:

    -f, --format FORMATTER           Choose an output formatter. This option
                                     can be specified multiple times to enable
                                     multiple formatters at the same time.
                                     [p]rogress is used by default
                                       [a]utogenconf
                                       [c]lang
                                       [d]isabled
                                       [e]macs
                                       [fi]les
                                       [fu]ubar
                                       [h]tml
                                       [j]son
                                       [ju]nit
                                       [o]ffenses
                                       [pa]cman
                                       [p]rogress
                                       [q]uiet
                                       [s]imple
                                       [t]ap
                                       [w]orst
                                       custom formatter class name
    -o, --out FILE                   Write output to a file instead of STDOUT.
                                     This option applies to the previously
                                     specified --format, or the default format
                                     if no format is specified.

So, here is JSON output:

rubocop_json_output.txt

Please, also pay attention to texts (warnings) at the start and at the end.

from cirrus-ci-annotations.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.