-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,904 additions
and
1,023 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 @@ | ||
engines: | ||
rubocop: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- ruby | ||
|
||
ratings: | ||
paths: | ||
- "**.rb" | ||
|
||
exclude_paths: | ||
- examples/**/* | ||
- spec/**/* |
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,7 +1,40 @@ | ||
.rvmrc | ||
## Based on the templates from https://github.com/github/gitignore | ||
|
||
## Ruby | ||
*.gem | ||
*.swp | ||
.idea | ||
.gemtags | ||
pkg | ||
test | ||
*.rbc | ||
/.config | ||
/coverage/ | ||
/InstalledFiles | ||
/measurement/ | ||
/pkg/ | ||
/spec/reports/ | ||
/spec/examples.txt | ||
/test/tmp/ | ||
/test/version_tmp/ | ||
/tmp/ | ||
|
||
## Specific to RubyMotion: | ||
.dat* | ||
.repl_history | ||
build/ | ||
|
||
## Documentation cache and generated files: | ||
/.yardoc/ | ||
/_yardoc/ | ||
/doc/ | ||
/rdoc/ | ||
|
||
## Environment normalization: | ||
/.bundle/ | ||
/vendor/bundle | ||
/lib/bundler/man/ | ||
|
||
# for a library or gem, you might want to ignore these files since the code is | ||
# intended to run in multiple environments; otherwise, check them in: | ||
#Gemfile.lock | ||
.ruby-version | ||
.ruby-gemset | ||
|
||
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: | ||
.rvmrc |
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,60 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
Metrics/AbcSize: | ||
Max: 58 # TODO: Lower to 15 | ||
|
||
Metrics/BlockLength: | ||
Max: 35 | ||
Exclude: | ||
- spec/**/*.rb | ||
|
||
Metrics/BlockNesting: | ||
Max: 2 | ||
|
||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
|
||
Metrics/LineLength: | ||
AllowURI: true | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 35 # TODO: Lower to 15 | ||
|
||
Metrics/ModuleLength: | ||
Max: 150 # TODO: Lower to 100 | ||
|
||
Metrics/ParameterLists: | ||
Max: 4 | ||
CountKeywordArgs: true | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 10 | ||
|
||
Style/AccessModifierIndentation: | ||
EnforcedStyle: outdent | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Style/HashSyntax: | ||
Enabled: false | ||
|
||
Style/RaiseArgs: | ||
EnforcedStyle: compact | ||
|
||
Style/SpaceInsideHashLiteralBraces: | ||
EnforcedStyle: no_space | ||
|
||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
|
||
Style/TrailingCommaInLiteral: | ||
EnforcedStyleForMultiline: 'comma' |
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,20 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2017-04-19 14:47:45 -0500 using RuboCop version 0.48.1. | ||
# 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 | ||
Style/AccessorMethodName: | ||
Exclude: | ||
- 'lib/zabbixapi/classes/usergroups.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions. | ||
# SupportedStyles: assign_to_condition, assign_inside_condition | ||
Style/ConditionalAssignment: | ||
Exclude: | ||
- 'lib/zabbixapi/client.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
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,9 @@ | ||
--no-private | ||
--protected | ||
--tag authentication:"Authentication" | ||
--markup markdown | ||
- | ||
CHANGELOG.md | ||
LICENSE.md | ||
README.md | ||
examples/*.md |
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,21 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'jruby-openssl', platforms: :jruby | ||
gem 'rake', '~> 11.1' | ||
gem 'yard', '>= 0.9' | ||
|
||
group :development do | ||
gem 'pry' | ||
end | ||
|
||
group :test do | ||
gem 'coveralls' | ||
gem 'rspec', '>= 3.4.4' | ||
gem 'rubocop', '>= 0.38' | ||
gem 'simplecov', '>= 0.9' | ||
gem 'timecop' | ||
gem 'webmock', '>= 2.0.3' | ||
gem 'yardstick' | ||
end | ||
|
||
gemspec |
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 +1,25 @@ | ||
require 'bundler/gem_tasks' | ||
require 'bundler' | ||
Bundler::GemHelper.install_tasks | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task test: :spec | ||
|
||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new | ||
|
||
require 'yard' | ||
YARD::Rake::YardocTask.new | ||
|
||
require 'yardstick/rake/measurement' | ||
Yardstick::Rake::Measurement.new do |measurement| | ||
measurement.output = 'measurement/report.txt' | ||
end | ||
|
||
require 'yardstick/rake/verify' | ||
Yardstick::Rake::Verify.new do |verify| | ||
verify.threshold = 67.1 | ||
end | ||
|
||
task default: [:spec, :rubocop, :verify_measurements] |
Oops, something went wrong.