Merge pull request #3 from opf/feature/houndci-config-ruby-style
Add Hound/Rubocop config; Make Ruby style consistentpull/6827/head
commit
fc4ba6f627
@ -0,0 +1,3 @@ |
||||
ruby: |
||||
enabled: true |
||||
config_file: .rubocop.yml |
@ -0,0 +1,265 @@ |
||||
AllCops: |
||||
Exclude: |
||||
- *.gemspec |
||||
|
||||
AccessorMethodName: |
||||
Enabled: false |
||||
|
||||
ActionFilter: |
||||
Enabled: false |
||||
|
||||
Alias: |
||||
Enabled: false |
||||
|
||||
AndOr: |
||||
Enabled: false |
||||
|
||||
ArrayJoin: |
||||
Enabled: false |
||||
|
||||
AsciiComments: |
||||
Enabled: false |
||||
|
||||
AsciiIdentifiers: |
||||
Enabled: false |
||||
|
||||
Attr: |
||||
Enabled: false |
||||
|
||||
BlockNesting: |
||||
Enabled: false |
||||
|
||||
Blocks: |
||||
Enabled: false |
||||
|
||||
CaseEquality: |
||||
Enabled: false |
||||
|
||||
CharacterLiteral: |
||||
Enabled: false |
||||
|
||||
ClassAndModuleChildren: |
||||
Enabled: false |
||||
|
||||
ClassLength: |
||||
Enabled: false |
||||
|
||||
ClassVars: |
||||
Enabled: false |
||||
|
||||
CollectionMethods: |
||||
PreferredMethods: |
||||
find: detect |
||||
reduce: inject |
||||
collect: map |
||||
find_all: select |
||||
|
||||
ColonMethodCall: |
||||
Enabled: false |
||||
|
||||
CommentAnnotation: |
||||
Enabled: false |
||||
|
||||
CyclomaticComplexity: |
||||
Enabled: false |
||||
|
||||
Delegate: |
||||
Enabled: false |
||||
|
||||
DeprecatedHashMethods: |
||||
Enabled: false |
||||
|
||||
Documentation: |
||||
Enabled: false |
||||
|
||||
DotPosition: |
||||
EnforcedStyle: leading |
||||
|
||||
DoubleNegation: |
||||
Enabled: false |
||||
|
||||
EachWithObject: |
||||
Enabled: false |
||||
|
||||
EmptyLiteral: |
||||
Enabled: false |
||||
|
||||
Encoding: |
||||
Enabled: false |
||||
|
||||
EvenOdd: |
||||
Enabled: false |
||||
|
||||
FileName: |
||||
Enabled: false |
||||
|
||||
FlipFlop: |
||||
Enabled: false |
||||
|
||||
FormatString: |
||||
Enabled: false |
||||
|
||||
GlobalVars: |
||||
Enabled: false |
||||
|
||||
GuardClause: |
||||
Enabled: false |
||||
|
||||
IfUnlessModifier: |
||||
Enabled: false |
||||
|
||||
IfWithSemicolon: |
||||
Enabled: false |
||||
|
||||
InlineComment: |
||||
Enabled: false |
||||
|
||||
Lambda: |
||||
Enabled: false |
||||
|
||||
LambdaCall: |
||||
Enabled: false |
||||
|
||||
LineEndConcatenation: |
||||
Enabled: false |
||||
|
||||
LineLength: |
||||
Max: 100 |
||||
|
||||
MethodLength: |
||||
Enabled: false |
||||
|
||||
ModuleFunction: |
||||
Enabled: false |
||||
|
||||
NegatedIf: |
||||
Enabled: false |
||||
|
||||
NegatedWhile: |
||||
Enabled: false |
||||
|
||||
Next: |
||||
Enabled: false |
||||
|
||||
NilComparison: |
||||
Enabled: false |
||||
|
||||
Not: |
||||
Enabled: false |
||||
|
||||
NumericLiterals: |
||||
Enabled: false |
||||
|
||||
OneLineConditional: |
||||
Enabled: false |
||||
|
||||
OpMethod: |
||||
Enabled: false |
||||
|
||||
ParameterLists: |
||||
Enabled: false |
||||
|
||||
PercentLiteralDelimiters: |
||||
Enabled: false |
||||
|
||||
PerlBackrefs: |
||||
Enabled: false |
||||
|
||||
PredicateName: |
||||
NamePrefixBlacklist: |
||||
- is_ |
||||
|
||||
Proc: |
||||
Enabled: false |
||||
|
||||
RaiseArgs: |
||||
Enabled: false |
||||
|
||||
RegexpLiteral: |
||||
Enabled: false |
||||
|
||||
SelfAssignment: |
||||
Enabled: false |
||||
|
||||
SingleLineBlockParams: |
||||
Enabled: false |
||||
|
||||
SingleLineMethods: |
||||
Enabled: false |
||||
|
||||
SignalException: |
||||
Enabled: false |
||||
|
||||
SpecialGlobalVars: |
||||
Enabled: false |
||||
|
||||
StringLiterals: |
||||
EnforcedStyle: single_quotes |
||||
|
||||
VariableInterpolation: |
||||
Enabled: false |
||||
|
||||
TrailingComma: |
||||
Enabled: false |
||||
|
||||
TrivialAccessors: |
||||
Enabled: false |
||||
|
||||
VariableInterpolation: |
||||
Enabled: false |
||||
|
||||
WhenThen: |
||||
Enabled: false |
||||
|
||||
WhileUntilModifier: |
||||
Enabled: false |
||||
|
||||
WordArray: |
||||
Enabled: false |
||||
|
||||
# Lint |
||||
|
||||
AmbiguousOperator: |
||||
Enabled: false |
||||
|
||||
AmbiguousRegexpLiteral: |
||||
Enabled: false |
||||
|
||||
AssignmentInCondition: |
||||
Enabled: false |
||||
|
||||
ConditionPosition: |
||||
Enabled: false |
||||
|
||||
DeprecatedClassMethods: |
||||
Enabled: false |
||||
|
||||
ElseLayout: |
||||
Enabled: false |
||||
|
||||
HandleExceptions: |
||||
Enabled: false |
||||
|
||||
InvalidCharacterLiteral: |
||||
Enabled: false |
||||
|
||||
LiteralInCondition: |
||||
Enabled: false |
||||
|
||||
LiteralInInterpolation: |
||||
Enabled: false |
||||
|
||||
Loop: |
||||
Enabled: false |
||||
|
||||
ParenthesesAsGroupedExpression: |
||||
Enabled: false |
||||
|
||||
RequireParentheses: |
||||
Enabled: false |
||||
|
||||
UnderscorePrefixedVariableName: |
||||
Enabled: false |
||||
|
||||
Void: |
||||
Enabled: false |
@ -1,22 +1,22 @@ |
||||
# encoding: UTF-8 |
||||
$:.push File.expand_path("../lib", __FILE__) |
||||
$:.push File.expand_path('../lib', __FILE__) |
||||
|
||||
require 'open_project/auth_plugins/version' |
||||
|
||||
Gem::Specification.new do |s| |
||||
s.name = "openproject-auth_plugins" |
||||
s.name = 'openproject-auth_plugins' |
||||
s.version = OpenProject::AuthPlugins::VERSION |
||||
s.authors = "Finn GmbH" |
||||
s.email = "info@finn.de" |
||||
s.homepage = "https://www.openproject.org/projects/auth-plugins" |
||||
s.authors = 'Finn GmbH' |
||||
s.email = 'info@finn.de' |
||||
s.homepage = 'https://www.openproject.org/projects/auth-plugins' |
||||
s.summary = 'OpenProject Auth Plugins' |
||||
s.description = "Integration of OmniAuth strategy providers for authentication in Openproject." |
||||
s.license = "GPLv3" |
||||
s.description = 'Integration of OmniAuth strategy providers for authentication in Openproject.' |
||||
s.license = 'GPLv3' |
||||
|
||||
s.files = Dir["{app,config,db,lib}/**/*"] + %w(doc/CHANGELOG.md README.md) |
||||
s.files = Dir['{app,config,db,lib}/**/*'] + %w(doc/CHANGELOG.md README.md) |
||||
|
||||
s.add_dependency "rails", "~> 3.2.14" |
||||
s.add_dependency "omniauth", "~> 1.0" |
||||
s.add_dependency 'rails', '~> 3.2.14' |
||||
s.add_dependency 'omniauth', '~> 1.0' |
||||
|
||||
s.add_development_dependency "rspec", "~> 2.14" |
||||
s.add_development_dependency 'rspec', '~> 2.14' |
||||
end |
||||
|
Loading…
Reference in new issue