Skip to content

Commit 17be2a8

Browse files
committed
Add rubocop to travis
1 parent 001517d commit 17be2a8

File tree

2 files changed

+187
-1
lines changed

2 files changed

+187
-1
lines changed

.rubocop_todo.yml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2017-01-27 09:19:36 +0900 using RuboCop version 0.44.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 15
10+
Lint/ParenthesesAsGroupedExpression:
11+
Exclude:
12+
- 'spec/cson_generator_spec.rb'
13+
- 'spec/json_generator_spec.rb'
14+
- 'spec/md_converter_spec.rb'
15+
16+
# Offense count: 1
17+
# Cop supports --auto-correct.
18+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
19+
Lint/UnusedMethodArgument:
20+
Exclude:
21+
- 'lib/ever2boost/note_list.rb'
22+
23+
# Offense count: 2
24+
Lint/UselessAssignment:
25+
Exclude:
26+
- 'lib/ever2boost/cson_generator.rb'
27+
- 'lib/ever2boost/evernote_authorizer.rb'
28+
29+
# Offense count: 2
30+
Metrics/AbcSize:
31+
Max: 32
32+
33+
# Offense count: 25
34+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
35+
# URISchemes: http, https
36+
Metrics/LineLength:
37+
Max: 193
38+
39+
# Offense count: 5
40+
# Configuration parameters: CountComments.
41+
Metrics/MethodLength:
42+
Max: 19
43+
44+
# Offense count: 3
45+
# Cop supports --auto-correct.
46+
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
47+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
48+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
49+
# FunctionalMethods: let, let!, subject, watch
50+
# IgnoredMethods: lambda, proc, it
51+
Style/BlockDelimiters:
52+
Exclude:
53+
- 'lib/ever2boost/enex_converter.rb'
54+
- 'lib/ever2boost/json_generator.rb'
55+
- 'spec/cson_generator_spec.rb'
56+
57+
# Offense count: 10
58+
Style/Documentation:
59+
Exclude:
60+
- 'spec/**/*'
61+
- 'test/**/*'
62+
- 'lib/ever2boost.rb'
63+
- 'lib/ever2boost/cli.rb'
64+
- 'lib/ever2boost/cson_generator.rb'
65+
- 'lib/ever2boost/enex_converter.rb'
66+
- 'lib/ever2boost/evernote_authorizer.rb'
67+
- 'lib/ever2boost/json_generator.rb'
68+
- 'lib/ever2boost/md_converter.rb'
69+
- 'lib/ever2boost/note.rb'
70+
- 'lib/ever2boost/note_list.rb'
71+
- 'lib/ever2boost/util.rb'
72+
73+
# Offense count: 1
74+
# Cop supports --auto-correct.
75+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
76+
Style/ExtraSpacing:
77+
Exclude:
78+
- 'lib/ever2boost/note_list.rb'
79+
80+
# Offense count: 1
81+
# Cop supports --auto-correct.
82+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
83+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
84+
Style/HashSyntax:
85+
Exclude:
86+
- 'Rakefile'
87+
88+
# Offense count: 1
89+
# Cop supports --auto-correct.
90+
# Configuration parameters: Width.
91+
Style/IndentationWidth:
92+
Exclude:
93+
- 'spec/cson_generator_spec.rb'
94+
95+
# Offense count: 1
96+
# Cop supports --auto-correct.
97+
Style/MethodCallParentheses:
98+
Exclude:
99+
- 'lib/ever2boost/note_list.rb'
100+
101+
# Offense count: 3
102+
# Cop supports --auto-correct.
103+
Style/MutableConstant:
104+
Exclude:
105+
- 'lib/ever2boost/cli.rb'
106+
- 'lib/ever2boost/evernote_authorizer.rb'
107+
- 'lib/ever2boost/version.rb'
108+
109+
# Offense count: 2
110+
# Cop supports --auto-correct.
111+
# Configuration parameters: PreferredDelimiters.
112+
Style/PercentLiteralDelimiters:
113+
Exclude:
114+
- 'ever2boost.gemspec'
115+
116+
# Offense count: 16
117+
# Cop supports --auto-correct.
118+
Style/RedundantSelf:
119+
Exclude:
120+
- 'lib/ever2boost/cson_generator.rb'
121+
- 'lib/ever2boost/evernote_authorizer.rb'
122+
- 'lib/ever2boost/json_generator.rb'
123+
- 'lib/ever2boost/note.rb'
124+
125+
# Offense count: 3
126+
# Cop supports --auto-correct.
127+
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
128+
# SupportedStyles: slashes, percent_r, mixed
129+
Style/RegexpLiteral:
130+
Exclude:
131+
- 'lib/ever2boost/md_converter.rb'
132+
133+
# Offense count: 1
134+
# Cop supports --auto-correct.
135+
Style/SpaceAfterComma:
136+
Exclude:
137+
- 'lib/ever2boost/json_generator.rb'
138+
139+
# Offense count: 2
140+
# Cop supports --auto-correct.
141+
# Configuration parameters: AllowForAlignment.
142+
Style/SpaceAroundOperators:
143+
Exclude:
144+
- 'lib/ever2boost/note_list.rb'
145+
146+
# Offense count: 6
147+
# Cop supports --auto-correct.
148+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
149+
# SupportedStyles: space, no_space
150+
Style/SpaceInsideBlockBraces:
151+
Exclude:
152+
- 'lib/ever2boost/evernote_authorizer.rb'
153+
- 'lib/ever2boost/md_converter.rb'
154+
- 'spec/cson_generator_spec.rb'
155+
- 'spec/json_generator_spec.rb'
156+
157+
# Offense count: 49
158+
# Cop supports --auto-correct.
159+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
160+
# SupportedStyles: single_quotes, double_quotes
161+
Style/StringLiterals:
162+
Exclude:
163+
- 'Rakefile'
164+
- 'bin/console'
165+
- 'ever2boost.gemspec'
166+
- 'lib/ever2boost.rb'
167+
- 'lib/ever2boost/cli.rb'
168+
- 'lib/ever2boost/cson_generator.rb'
169+
- 'lib/ever2boost/evernote_authorizer.rb'
170+
- 'lib/ever2boost/json_generator.rb'
171+
- 'lib/ever2boost/version.rb'
172+
- 'spec/cson_generator_spec.rb'
173+
- 'spec/enex_converter_spec.rb'
174+
- 'spec/ever2boost_spec.rb'
175+
- 'spec/json_generator_spec.rb'
176+
- 'spec/md_converter_spec.rb'
177+
- 'spec/spec_helper.rb'
178+
179+
# Offense count: 2
180+
# Cop supports --auto-correct.
181+
Style/UnneededPercentQ:
182+
Exclude:
183+
- 'ever2boost.gemspec'

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ rvm:
66
- 2.1.0
77
- 2.0.0
88
before_install: gem install bundler
9-
install: bundle install
9+
install:
10+
- bundle install
11+
- gem instal rubocop
12+
script: rubocop --config .rubocop_todo.yml --fail-level=W

0 commit comments

Comments
 (0)