forked from hmlON/room538
-
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.
Add rubocop and reek and fix their offences
- Loading branch information
Showing
10 changed files
with
131 additions
and
50 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,56 @@ | ||
IrresponsibleModule: | ||
exclude: | ||
- Room538::Application | ||
- ApplicationCable::Channel | ||
- ApplicationCable::Connection | ||
- ApplicationHelper | ||
- ApplicationJob | ||
UncommunicativeModuleName: | ||
exclude: | ||
- Room538 | ||
|
||
"config/": | ||
IrresponsibleModule: | ||
enabled: false | ||
NestedIterators: | ||
enabled: false | ||
UtilityFunction: | ||
enabled: false | ||
|
||
"app/controllers": | ||
IrresponsibleModule: | ||
enabled: false | ||
NestedIterators: | ||
max_allowed_nesting: 2 | ||
UnusedPrivateMethod: | ||
enabled: false | ||
InstanceVariableAssumption: | ||
enabled: false | ||
|
||
"app/helpers": | ||
IrresponsibleModule: | ||
enabled: false | ||
UtilityFunction: | ||
enabled: fals | ||
|
||
"db/migrate": | ||
IrresponsibleModule: | ||
enabled: false | ||
TooManyStatements: | ||
enabled: false | ||
DuplicateMethodCall: | ||
enabled: false | ||
FeatureEnvy: | ||
enabled: false | ||
UncommunicativeVariableName: | ||
enabled: false | ||
|
||
"spec/": | ||
IrresponsibleModule: | ||
enabled: false | ||
UncommunicativeMethodName: | ||
enabled: false | ||
DuplicateMethodCall: | ||
enabled: false | ||
UtilityFunction: | ||
enabled: false |
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 @@ | ||
Rails: | ||
Enabled: true | ||
|
||
Metrics/LineLength: | ||
Max: 120 | ||
|
||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'app/controllers/application_controller.rb' | ||
- 'app/helpers/application_helper.rb' | ||
- 'app/mailers/application_mailer.rb' | ||
- 'app/models/application_record.rb' |
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,53 +1,31 @@ | ||
source 'https://rubygems.org' | ||
|
||
git_source(:github) do |repo_name| | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/') | ||
"https://github.com/#{repo_name}.git" | ||
end | ||
|
||
|
||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | ||
gem 'rails', '~> 5.0.1' | ||
# Use postgresql as the database for Active Record | ||
gem 'coffee-rails', '~> 4.2' | ||
gem 'jbuilder', '~> 2.5' | ||
gem 'jquery-rails' | ||
gem 'pg', '~> 0.18' | ||
# Use Puma as the app server | ||
gem 'puma', '~> 3.0' | ||
# Use SCSS for stylesheets | ||
gem 'rails', '~> 5.0.1' | ||
gem 'sass-rails', '~> 5.0' | ||
# Use Uglifier as compressor for JavaScript assets | ||
gem 'uglifier', '>= 1.3.0' | ||
# Use CoffeeScript for .coffee assets and views | ||
gem 'coffee-rails', '~> 4.2' | ||
# See https://github.com/rails/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', platforms: :ruby | ||
|
||
# Use jquery as the JavaScript library | ||
gem 'jquery-rails' | ||
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks | ||
gem 'turbolinks', '~> 5' | ||
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | ||
gem 'jbuilder', '~> 2.5' | ||
# Use Redis adapter to run Action Cable in production | ||
# gem 'redis', '~> 3.0' | ||
# Use ActiveModel has_secure_password | ||
# gem 'bcrypt', '~> 3.1.7' | ||
|
||
# Use Capistrano for deployment | ||
# gem 'capistrano-rails', group: :development | ||
gem 'uglifier', '>= 1.3.0' | ||
|
||
group :development, :test do | ||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | ||
gem 'byebug', platform: :mri | ||
end | ||
|
||
group :development do | ||
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code. | ||
gem 'web-console', '>= 3.3.0' | ||
gem 'listen', '~> 3.0.5' | ||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
gem 'reek', require: false | ||
gem 'rubocop', require: false | ||
gem 'spring' | ||
gem 'spring-watcher-listen', '~> 2.0.0' | ||
gem 'web-console', '>= 3.3.0' | ||
end | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] |
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
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