Skip to content
Open

bs #2

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
reviewdog -reporter=github-pr-review -runners=rubocop
reviewdog -reporter=github-pr-review -runners=golint
14 changes: 14 additions & 0 deletions .reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
runner:
# examples
golint:
cmd: golint ./...
errorformat:
- "%f:%l:%c: %m"
level: warning
govet:
cmd: go vet -all .
format: govet
your-awesome-linter:
cmd: awesome-linter run
format: rdjson
name: AwesomeLinter
4 changes: 4 additions & 0 deletions sample.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
class Sample
def hello
puts "Hello Ruby!"
puts "brahms"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] <Style/StringLiterals> reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.

Suggested change
puts "brahms"
puts 'brahms'

puts 'jji'
end
end

# Now using above class to create objects
object = Sample. new
object.hello
puts "brhms"
puts "hhiD"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] <Style/StringLiterals> reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.

Suggested change
puts "hhiD"
puts 'hhiD'

puts "sjk"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop] <Style/StringLiterals> reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.

Suggested change
puts "sjk"
puts 'sjk'