Skip to content
This repository was archived by the owner on Mar 21, 2020. It is now read-only.

Throw the project through rubocop #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
36 changes: 36 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Sure, these are nice but disable them for now.
Metrics/ClassLength:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Style/FileName:
Enabled: false

Style/GuardClause:
Enabled: false

Style/MethodName:
Enabled: false

Style/ClassAndModuleChildren:
Enabled: false

Style/Documentation:
Enabled: false

Style/MethodMissing:
Enabled: false

Style/GlobalVars:
Enabled: false
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in fluent-plugin-splunk-http-eventcollector.gemspec
# Specify your gem's dependencies in
# fluent-plugin-splunk-http-eventcollector.gemspec
gemspec

#gem "test-unit"
# gem "test-unit"
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "bundler/gem_tasks"
require 'bundler/gem_tasks'

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
Expand All @@ -7,4 +7,7 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end

task :default => :test
require 'rubocop/rake_task'
RuboCop::RakeTask.new

task default: %i[rubocop test]
47 changes: 25 additions & 22 deletions fluent-plugin-splunk-http-eventcollector.gemspec
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)

$LOAD_PATH.push File.expand_path('../lib', __FILE__)

Gem::Specification.new do |gem|
gem.name = "fluent-plugin-splunk-http-eventcollector"
gem.version = "0.2.0"
gem.authors = ["Bryce Chidester"]
gem.email = ["bryce.chidester@calyptix.com"]
gem.summary = "Splunk output plugin for Fluentd"
gem.description = "Splunk output plugin (HTTP Event Collector) for Fluentd event collector"
gem.homepage = "https://github.com/brycied00d/fluent-plugin-splunk-http-eventcollector"
gem.name = 'fluent-plugin-splunk-http-eventcollector'
gem.version = '0.2.0'
gem.authors = ['Bryce Chidester']
gem.email = ['bryce.chidester@calyptix.com']
gem.summary = 'Splunk output plugin for Fluentd'
gem.description = 'Splunk output plugin (HTTP Event Collector) for '\
'Fluentd event collector'
gem.homepage = 'https://github.com/brycied00d/fluent-plugin-splunk-http-eventcollector'
gem.license = 'BSD-2-Clause'
gem.extra_rdoc_files = [ "LICENSE", "README.md" ]
gem.files = [ ".gitignore", "Gemfile", "LICENSE", "README.md",
"Rakefile", "test/helper.rb",
"fluent-plugin-splunk-http-eventcollector.gemspec",
"lib/fluent/plugin/out_splunk-http-eventcollector.rb",
"test/plugin/test_out_splunk-http-eventcollector.rb" ]
gem.test_files = [ "test/helper.rb",
"test/plugin/test_out_splunk-http-eventcollector.rb" ]
gem.require_paths = ["lib"]
gem.extra_rdoc_files = ['LICENSE', 'README.md']
gem.files = ['.gitignore', 'Gemfile', 'LICENSE', 'README.md',
'Rakefile', 'test/helper.rb',
'fluent-plugin-splunk-http-eventcollector.gemspec',
'lib/fluent/plugin/out_splunk-http-eventcollector.rb',
'test/plugin/test_out_splunk-http-eventcollector.rb']
gem.test_files = ['test/helper.rb',
'test/plugin/test_out_splunk-http-eventcollector.rb']
gem.require_paths = ['lib']

gem.add_development_dependency "rake"
gem.add_development_dependency "test-unit", '~> 3.1'
gem.add_development_dependency "webmock", '~> 2.3', '>= 2.3.2'
gem.add_runtime_dependency "fluentd", '~> 0.12.12'
gem.add_runtime_dependency "net-http-persistent", '~> 2.9'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rubocop'
gem.add_development_dependency 'test-unit', '~> 3.1'
gem.add_development_dependency 'webmock', '~> 2.3', '>= 2.3.2'
gem.add_runtime_dependency 'fluentd', '~> 0.12.12'
gem.add_runtime_dependency 'net-http-persistent', '~> 2.9'
end
Loading