Comments (4)
This is working now 🎉 Thanks, @edigaryev!
from cirrus-ci-annotations.
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.
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.
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:
Please, also pay attention to texts (warnings) at the start and at the end.
from cirrus-ci-annotations.
Related Issues (19)
- Support Python UnitTest Results HOT 2
- Support RSpec HOT 11
- Support remark
- Move code to Agent repository HOT 3
- Support go-junit-report
- Duplicates from matrix HOT 2
- Output cops in RuboCop annotations HOT 2
- Support "go test -json" ouput HOT 3
- Support XCLogParser output
- Support JetBrains Qodana
- Support Flutter test report HOT 3
- Parse error messages for Flutter reports HOT 1
- Introduce Cirrus annotation format
- Please, add support for `eslint` annotations
- Support Deadnix HOT 2
- Support Golang Vet HOT 2
- Support TAP format
- Support annotations for jest reports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cirrus-ci-annotations.