Skip to content

Commit

Permalink
Hush up houndci-bot
Browse files Browse the repository at this point in the history
Add frozen_string_literal magic comment to every .rb file
  • Loading branch information
morygonzalez committed Feb 25, 2018
1 parent 52bdadc commit 57c6ac4
Show file tree
Hide file tree
Showing 158 changed files with 1,758 additions and 1,580 deletions.
2 changes: 2 additions & 0 deletions .hound.yml
@@ -0,0 +1,2 @@
ruby:
config_file: .rubocop.yml
43 changes: 43 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,43 @@
inherit_from: .rubocop_todo.yml

AllCops:
Exclude:
- 'db/seeds.rb'

Style/Documentation:
Enabled: false

Style/GuardClause:
Exclude:
- 'lib/lokka/app.rb'

Style/StringLiterals:
EnforcedStyle: single_quotes
SupportedStyles:
- single_quotes
- double_quotes

Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
SupportedStyles:
- with_first_parameter
- with_fixed_indentation

Metrics/BlockLength:
Exclude:
- 'lokka.gemspec'
- 'spec/**/*'
- 'lib/lokka/before.rb'
- 'lib/lokka/app.rb'
- 'lib/lokka/importer.rb'

Metrics/LineLength:
Exclude:
- 'lokka.gemspec'
- 'Gemfile'
- 'public/**/*'
IgnoredPatterns:
- '%r'
- '%q'
- '%Q'
- '/\/.+\//'
12 changes: 12 additions & 0 deletions .rubocop_todo.yml
@@ -0,0 +1,12 @@
Metrics/ModuleLength:
Exclude:
- 'lib/lokka/helpers/helpers.rb'

Metrics/LineLength:
Max: 120

Metrics/ClassLength:
Exclude:
- 'lib/lokka/app/entries.rb'
- 'lib/lokka/app/admin.rb'
- 'lib/lokka/models/entry.rb'
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -42,7 +42,7 @@ gem 'request_store'
gem 'aws-sdk-s3'
gem 'mimemagic'

Dir["public/plugin/lokka-*/Gemfile"].each {|path| eval(open(path) {|f| f.read }) }
Dir['public/plugin/lokka-*/Gemfile'].each {|path| eval(open(path) {|f| f.read }) }

group :production do
end
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Expand Up @@ -120,6 +120,7 @@ GEM
jmespath (1.3.1)
json (1.8.6)
kramdown (1.15.0)
method_source (0.9.0)
mimemagic (0.3.2)
mini_portile2 (2.3.0)
minitest (5.10.3)
Expand All @@ -131,6 +132,10 @@ GEM
padrino-support (= 0.14.1.1)
tilt (>= 1.4.1, < 3)
padrino-support (0.14.1.1)
pry (0.9.12.6)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
public_suffix (3.0.1)
rack (1.6.8)
rack-flash (0.1.2)
Expand Down Expand Up @@ -183,6 +188,7 @@ GEM
slim (3.0.9)
temple (>= 0.7.6, < 0.9)
tilt (>= 1.3.3, < 2.1)
slop (3.6.0)
stringex (1.5.1)
tapp (1.3.0)
thor
Expand Down Expand Up @@ -250,6 +256,7 @@ DEPENDENCIES
mimemagic
nokogiri
padrino-helpers (~> 0.14.1.1)
pry
rack
rack-flash (~> 0.1.2)
rack-test (= 0.6.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -42,7 +42,7 @@ to your terminal

## How to make a theme

Make a directory for theme in public/theme and you need to create entries.erb and entry.erb at least. (erb, haml and slim is available.)
Make a directory for theme in public/theme and you need to create entries.erb and entry.erb at least. (erb, haml :and slim is available.)

### Index page

Expand Down
10 changes: 5 additions & 5 deletions Rakefile
Expand Up @@ -2,7 +2,7 @@ require './init'
require 'yard'
include Rake::DSL if defined? Rake::DSL

task :default => ['spec:setup', 'db:delete', :spec]
task default: ['spec:setup', 'db:delete', :spec]

desc 'Migrate the Lokka database'
task 'db:migrate' do
Expand All @@ -14,7 +14,7 @@ desc 'Execute seed script'
task 'db:seed' do
puts 'Initializing Database...'
DataMapper::Logger.new(STDOUT, :debug)
DataMapper.logger.set_log STDERR, :debug, "SQL: ", true
DataMapper.logger.set_log STDERR, :debug, 'SQL: ', true
Lokka::Database.new.connect.seed
end

Expand All @@ -36,7 +36,7 @@ task :bundle do
end

desc 'Install'
task :install => %w(bundle db:setup)
task install: %w(bundle db:setup)

desc 'Generate documentation for Lokka'
task :doc do
Expand All @@ -50,9 +50,9 @@ end

begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec => 'spec:setup') do |spec|
RSpec::Core::RakeTask.new(spec: 'spec:setup') do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = ['-cfs']
end
rescue LoadError => e
rescue LoadError => _e
end
2 changes: 1 addition & 1 deletion bin/autospec
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/coderay
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/compass
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/edit_json.rb
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/erubis
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/haml
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/html2haml
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/htmldiff
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/kramdown
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/ldiff
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/nokogiri
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/padrino
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/prettify_json.rb
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/rackup
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/rake
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/rake2thor
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/redcloth
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/ripl
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/ripl-rack
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/rspec
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/sass
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/sass-convert
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/scss
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/slimrb
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/tapp
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/thor
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down
2 changes: 1 addition & 1 deletion bin/tilt
Expand Up @@ -7,7 +7,7 @@
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
Pathname.new(__FILE__).realpath)

require 'rubygems'
Expand Down

0 comments on commit 57c6ac4

Please sign in to comment.