forked from brotandgames/ciao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature rubocop integration + YARD documentation (brotandgames#20)
* Initial setup for Rubocop * Rubocop fix: Style/ClassAndModuleChildren * Rubocop fix: Style/GuardClause * Rubocop fix: Metrics/LineLength * Generate YARD documentation * Add rubocop checks to Travis CI * Rubocop fix: Lint/IneffectiveAccessModifier * Fix production.rb * Update description of status.
- Loading branch information
1 parent
63387fd
commit afdbf8a
Showing
106 changed files
with
7,485 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
Metrics/AbcSize: | ||
Max: 40 | ||
|
||
Metrics/BlockLength: | ||
Max: 300 | ||
|
||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
|
||
Metrics/MethodLength: | ||
Max: 35 | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2019-07-27 10:16:20 +0100 using RuboCop version 0.73.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
Lint/UriEscapeUnescape: | ||
Exclude: | ||
- 'app/validators/http_url_validator.rb' | ||
|
||
# Cop supports --auto-correct. | ||
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
AllowURI: true | ||
IgnoredPatterns: [".*#.*"] # ignore lines with comments | ||
AllowHeredoc: true | ||
Exclude: | ||
- 'config/**/*' | ||
- 'db/**/*' | ||
- 'bin/**/*' | ||
|
||
Style/Documentation: | ||
Exclude: | ||
- 'db/migrate/*' | ||
- 'test/test_helper.rb' | ||
- 'app/**/*' | ||
- 'config/application.rb' | ||
- 'test/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
app/models/check.rb 40bf0311001002af511a066cad10a3cc6180b25f | ||
app/jobs/application_job.rb 5755649620a15b1905ff6a343b2604e7bf8fee8d | ||
app/mailers/check_mailer.rb 32b55235d0ffc146c86542ee9ee8a9cfaf3557cc | ||
app/helpers/checks_helper.rb 2efa87ee9f98071c66033b8f9f895469286d2b4d | ||
app/models/application_record.rb 73507b0608fcd792376697d4b0bb8e25f63e1f3d | ||
app/validators/cron_validator.rb 2c879712ce9865014cc189f07d6a68f4713de1d6 | ||
app/helpers/application_helper.rb d0cfecb4c6d765c36684c31822818580eb5c3bdc | ||
app/mailers/application_mailer.rb 42cfb76a486b0b17dd0a8a6b6733c8cb8babd623 | ||
app/controllers/checks_controller.rb da04219bc3ad7a7a221e0cda0ac6543c69a80fd9 | ||
app/validators/http_url_validator.rb 786ec99fef4d50adeeb29b6c81cde724a5ab4464 | ||
app/channels/application_cable/channel.rb c37215169051d5564efe41d08f06c645e223bf34 | ||
app/controllers/application_controller.rb 2045a4a289f66e2e093494be16d8003b24923b31 | ||
app/channels/application_cable/connection.rb 52c7ca2b443ed5fa642c79092910af60ff882cf9 |
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module ApplicationCable | ||
class Channel < ActionCable::Channel::Base | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module ApplicationCable | ||
class Connection < ActionCable::Connection::Base | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class ApplicationController < ActionController::Base | ||
protect_from_forgery unless: -> { request.format.json? } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
module ApplicationHelper | ||
end |
Oops, something went wrong.