Skip to content

Commit 0823bd4

Browse files
committed
Merge pull request #68 from cisco/release_1.1.0
Collapse Release 1.1.0 into master
2 parents b911038 + 8b2de30 commit 0823bd4

File tree

112 files changed

+14437
-6889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+14437
-6889
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
.bundle/*
12
pkg/*
3+
vendor/*
4+
coverage
5+
Gemfile.lock
26
*.gem

.rubocop.yml

+81-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,83 @@
11
# Rubocop configuration
22

3-
inherit_from: .rubocop_todo.yml
3+
# Code complexity metrics are tracked separately for lib/ vs. tests/
4+
# See lib/.rubocop.yml and tests/.rubocop.yml
5+
Metrics/AbcSize:
6+
Enabled: true
7+
8+
Metrics/CyclomaticComplexity:
9+
Enabled: true
10+
11+
Metrics/MethodLength:
12+
Enabled: true
13+
Exclude:
14+
- docs/*.rb
15+
16+
Metrics/ParameterLists:
17+
Enabled: true
18+
19+
Metrics/PerceivedComplexity:
20+
Enabled: true
21+
22+
# Template files have long lines before tag replacement
23+
Metrics/LineLength:
24+
Exclude:
25+
- docs/*.rb
26+
27+
#
28+
# Team preferences different from Rubocop defaults:
29+
#
30+
31+
# We don't find either of these to be useful:
32+
Metrics/ClassLength:
33+
Enabled: false
34+
35+
Metrics/ModuleLength:
36+
Enabled: false
37+
38+
# We like table alignment for readability
39+
Style/AlignHash:
40+
EnforcedHashRocketStyle: table
41+
EnforcedColonStyle: table
42+
43+
# Template files have wildcard strings in class names
44+
Style/ClassAndModuleCamelCase:
45+
Exclude:
46+
- docs/*.rb
47+
48+
# Permit is_a? and kind_of? interchangeably
49+
Style/ClassCheck:
50+
Enabled: false
51+
52+
# Template files have atypical file names on purpose
53+
Style/FileName:
54+
Exclude:
55+
- docs/*.rb
56+
57+
# As a team we like 'sprintf' rather than 'format'
58+
Style/FormatString:
59+
EnforcedStyle: sprintf
60+
61+
# Mixed keys are ugly. Use one or the other as needed
62+
Style/HashSyntax:
63+
EnforcedStyle: ruby19_no_mixed_keys
64+
65+
# Template files have wildcard strings in method names
66+
Style/MethodName:
67+
Exclude:
68+
- docs/*.rb
69+
70+
# "def foo(bar=baz)" not "def foo(bar = baz)"
71+
Style/SpaceAroundEqualsInParameterDefault:
72+
EnforcedStyle: no_space
73+
74+
# Make it neater to extend multi-line arrays and hashes
75+
Style/TrailingComma:
76+
EnforcedStyleForMultiline: comma
77+
78+
# Because an SnmpServer cannot be destroyed, we end most of the SnmpServer
79+
# test cases by explicitly returning the configuration to default.
80+
# Rubocop thinks this is a no-op but it isn't.
81+
Lint/UselessSetterCall:
82+
Exclude:
83+
- 'tests/test_snmpserver.rb'

.rubocop_todo.yml

-293
This file was deleted.

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Use Docker infrastructure
2+
sudo: false
3+
4+
language: ruby
5+
cache: bundler
6+
rvm:
7+
- 2.2.2
8+
- 2.1.6
9+
- 2.0.0

0 commit comments

Comments
 (0)