1# This configuration was generated by 2# `rubocop --auto-gen-config` 3# on 2017-09-04 17:00:36 +0200 using RuboCop version 0.49.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: 3 10# Cop supports --auto-correct. 11# Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth. 12# SupportedStyles: case, end 13Layout/CaseIndentation: 14 Exclude: 15 - 'tools/platform_check.rb' 16 17# Offense count: 1 18# Cop supports --auto-correct. 19Layout/CommentIndentation: 20 Exclude: 21 - 'qps/client.rb' 22 23# Offense count: 1 24# Cop supports --auto-correct. 25Layout/EmptyLineAfterMagicComment: 26 Exclude: 27 - 'tools/grpc-tools.gemspec' 28 29# Offense count: 33 30# Cop supports --auto-correct. 31# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines. 32Layout/EmptyLineBetweenDefs: 33 Exclude: 34 - 'qps/client.rb' 35 - 'qps/histogram.rb' 36 - 'qps/proxy-worker.rb' 37 - 'qps/server.rb' 38 - 'qps/worker.rb' 39 40# Offense count: 1 41# Cop supports --auto-correct. 42Layout/EmptyLines: 43 Exclude: 44 - 'qps/qps-common.rb' 45 46# Offense count: 8 47# Cop supports --auto-correct. 48# Configuration parameters: EnforcedStyle, SupportedStyles. 49# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines 50Layout/EmptyLinesAroundClassBody: 51 Exclude: 52 - 'pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb' 53 - 'pb/grpc/testing/metrics_services_pb.rb' 54 - 'pb/src/proto/grpc/testing/test_services_pb.rb' 55 - 'qps/src/proto/grpc/testing/proxy-service_services_pb.rb' 56 - 'qps/src/proto/grpc/testing/services_services_pb.rb' 57 58# Offense count: 28 59# Cop supports --auto-correct. 60# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment. 61Layout/ExtraSpacing: 62 Enabled: false 63 64# Offense count: 1 65# Cop supports --auto-correct. 66# Configuration parameters: EnforcedStyle, SupportedStyles. 67# SupportedStyles: normal, rails 68Layout/IndentationConsistency: 69 Exclude: 70 - 'pb/grpc/health/checker.rb' 71 72# Offense count: 1 73# Cop supports --auto-correct. 74# Configuration parameters: Width, IgnoredPatterns. 75Layout/IndentationWidth: 76 Exclude: 77 - 'pb/grpc/health/checker.rb' 78 79# Offense count: 1 80# Cop supports --auto-correct. 81# Configuration parameters: EnforcedStyle, SupportedStyles. 82# SupportedStyles: symmetrical, new_line, same_line 83Layout/MultilineHashBraceLayout: 84 Exclude: 85 - 'spec/generic/active_call_spec.rb' 86 87# Offense count: 70 88# Cop supports --auto-correct. 89# Configuration parameters: EnforcedStyle, SupportedStyles. 90# SupportedStyles: symmetrical, new_line, same_line 91Layout/MultilineMethodCallBraceLayout: 92 Enabled: false 93 94# Offense count: 2 95# Cop supports --auto-correct. 96# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth. 97# SupportedStyles: aligned, indented, indented_relative_to_receiver 98Layout/MultilineMethodCallIndentation: 99 Exclude: 100 - 'spec/generic/rpc_desc_spec.rb' 101 102# Offense count: 1 103# Cop supports --auto-correct. 104# Configuration parameters: EnforcedStyle, SupportedStyles. 105# SupportedStyles: symmetrical, new_line, same_line 106Layout/MultilineMethodDefinitionBraceLayout: 107 Exclude: 108 - 'spec/generic/client_stub_spec.rb' 109 110# Offense count: 5 111# Cop supports --auto-correct. 112Layout/SpaceAfterColon: 113 Exclude: 114 - 'lib/grpc/generic/rpc_server.rb' 115 116# Offense count: 7 117# Cop supports --auto-correct. 118Layout/SpaceAfterComma: 119 Exclude: 120 - 'qps/client.rb' 121 122# Offense count: 27 123# Cop supports --auto-correct. 124# Configuration parameters: AllowForAlignment. 125Layout/SpaceAroundOperators: 126 Exclude: 127 - 'qps/client.rb' 128 - 'qps/histogram.rb' 129 - 'qps/proxy-worker.rb' 130 - 'qps/server.rb' 131 - 'spec/generic/active_call_spec.rb' 132 - 'spec/generic/rpc_server_spec.rb' 133 134# Offense count: 1 135# Cop supports --auto-correct. 136# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters. 137# SupportedStyles: space, no_space 138# SupportedStylesForEmptyBraces: space, no_space 139Layout/SpaceInsideBlockBraces: 140 Exclude: 141 - 'stress/stress_client.rb' 142 143# Offense count: 4 144# Cop supports --auto-correct. 145Layout/SpaceInsideBrackets: 146 Exclude: 147 - 'tools/bin/grpc_tools_ruby_protoc' 148 - 'tools/bin/grpc_tools_ruby_protoc_plugin' 149 150# Offense count: 2 151# Cop supports --auto-correct. 152# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces. 153# SupportedStyles: space, no_space, compact 154# SupportedStylesForEmptyBraces: space, no_space 155Layout/SpaceInsideHashLiteralBraces: 156 Exclude: 157 - 'qps/server.rb' 158 159# Offense count: 6 160# Cop supports --auto-correct. 161Layout/SpaceInsidePercentLiteralDelimiters: 162 Exclude: 163 - 'spec/generic/client_stub_spec.rb' 164 - 'tools/grpc-tools.gemspec' 165 166# Offense count: 3 167# Cop supports --auto-correct. 168Layout/Tab: 169 Exclude: 170 - 'pb/grpc/health/checker.rb' 171 - 'qps/client.rb' 172 173# Offense count: 1 174# Cop supports --auto-correct. 175Layout/TrailingWhitespace: 176 Exclude: 177 - 'qps/worker.rb' 178 179# Offense count: 1 180Lint/IneffectiveAccessModifier: 181 Exclude: 182 - 'lib/grpc/generic/active_call.rb' 183 184# Offense count: 4 185# Cop supports --auto-correct. 186Lint/PercentStringArray: 187 Exclude: 188 - 'spec/client_server_spec.rb' 189 - 'spec/generic/active_call_spec.rb' 190 - 'spec/generic/client_stub_spec.rb' 191 192# Offense count: 4 193Lint/ScriptPermission: 194 Exclude: 195 - 'qps/client.rb' 196 - 'qps/histogram.rb' 197 - 'qps/qps-common.rb' 198 - 'qps/server.rb' 199 200# Offense count: 2 201# Cop supports --auto-correct. 202# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. 203Lint/UnusedBlockArgument: 204 Exclude: 205 - 'qps/client.rb' 206 207# Offense count: 2 208# Cop supports --auto-correct. 209# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. 210Lint/UnusedMethodArgument: 211 Exclude: 212 - 'qps/client.rb' 213 214# Offense count: 1 215# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. 216Lint/UselessAccessModifier: 217 Exclude: 218 - 'lib/grpc/logconfig.rb' 219 220# Offense count: 1 221Lint/UselessAssignment: 222 Exclude: 223 - 'qps/client.rb' 224 225# Offense count: 4 226Lint/Void: 227 Exclude: 228 - 'stress/metrics_server.rb' 229 - 'stress/stress_client.rb' 230 231# Offense count: 53 232Metrics/AbcSize: 233 Max: 57 234 235# Offense count: 81 236# Configuration parameters: CountComments, ExcludedMethods. 237Metrics/BlockLength: 238 Max: 715 239 240# Offense count: 82 241# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. 242# URISchemes: http, https 243Metrics/LineLength: 244 Max: 141 245 246# Offense count: 82 247# Configuration parameters: CountComments. 248Metrics/MethodLength: 249 Max: 54 250 251# Offense count: 5 252# Configuration parameters: CountKeywordArgs. 253Metrics/ParameterLists: 254 Max: 7 255 256# Offense count: 1 257# Cop supports --auto-correct. 258Performance/RedundantBlockCall: 259 Exclude: 260 - 'spec/generic/client_stub_spec.rb' 261 262# Offense count: 5 263# Cop supports --auto-correct. 264# Configuration parameters: MaxKeyValuePairs. 265Performance/RedundantMerge: 266 Exclude: 267 - 'spec/generic/active_call_spec.rb' 268 - 'spec/generic/client_stub_spec.rb' 269 270# Offense count: 8 271# Cop supports --auto-correct. 272Performance/TimesMap: 273 Exclude: 274 - 'spec/channel_spec.rb' 275 - 'spec/client_server_spec.rb' 276 - 'spec/server_spec.rb' 277 278# Offense count: 7 279Style/AccessorMethodName: 280 Exclude: 281 - 'qps/server.rb' 282 - 'stress/metrics_server.rb' 283 - 'stress/stress_client.rb' 284 285# Offense count: 2 286# Cop supports --auto-correct. 287# Configuration parameters: EnforcedStyle, SupportedStyles. 288# SupportedStyles: prefer_alias, prefer_alias_method 289Style/Alias: 290 Exclude: 291 - 'lib/grpc/generic/rpc_server.rb' 292 - 'lib/grpc/notifier.rb' 293 294# Offense count: 7 295# Cop supports --auto-correct. 296# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods. 297# SupportedStyles: line_count_based, semantic, braces_for_chaining 298# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object 299# FunctionalMethods: let, let!, subject, watch 300# IgnoredMethods: lambda, proc, it 301Style/BlockDelimiters: 302 Exclude: 303 - 'qps/client.rb' 304 - 'qps/proxy-worker.rb' 305 - 'qps/server.rb' 306 - 'qps/worker.rb' 307 308# Offense count: 2 309# Cop supports --auto-correct. 310Style/ClassMethods: 311 Exclude: 312 - 'tools/platform_check.rb' 313 314# Offense count: 2 315# Cop supports --auto-correct. 316# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions. 317# SupportedStyles: assign_to_condition, assign_inside_condition 318Style/ConditionalAssignment: 319 Exclude: 320 - 'lib/grpc/generic/rpc_server.rb' 321 - 'lib/grpc/generic/service.rb' 322 323# Offense count: 19 324Style/Documentation: 325 Exclude: 326 - 'spec/**/*' 327 - 'test/**/*' 328 - 'pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb' 329 - 'pb/grpc/testing/metrics_services_pb.rb' 330 - 'pb/src/proto/grpc/testing/test_pb.rb' 331 - 'qps/client.rb' 332 - 'qps/histogram.rb' 333 - 'qps/proxy-worker.rb' 334 - 'qps/server.rb' 335 - 'qps/src/proto/grpc/testing/proxy-service_services_pb.rb' 336 - 'qps/src/proto/grpc/testing/services_pb.rb' 337 - 'qps/src/proto/grpc/testing/services_services_pb.rb' 338 - 'qps/worker.rb' 339 - 'stress/metrics_server.rb' 340 - 'stress/stress_client.rb' 341 - 'tools/platform_check.rb' 342 343# Offense count: 8 344# Cop supports --auto-correct. 345# Configuration parameters: EnforcedStyle, SupportedStyles. 346# SupportedStyles: compact, expanded 347Style/EmptyMethod: 348 Exclude: 349 - 'bin/noproto_server.rb' 350 - 'lib/grpc/logconfig.rb' 351 - 'spec/generic/rpc_desc_spec.rb' 352 353# Offense count: 2 354# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. 355# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS 356Style/FileName: 357 Exclude: 358 - 'qps/src/proto/grpc/testing/proxy-service_pb.rb' 359 - 'qps/src/proto/grpc/testing/proxy-service_services_pb.rb' 360 361# Offense count: 12 362# Configuration parameters: AllowedVariables. 363Style/GlobalVars: 364 Exclude: 365 - 'ext/grpc/extconf.rb' 366 367# Offense count: 3 368# Configuration parameters: MinBodyLength. 369Style/GuardClause: 370 Exclude: 371 - 'lib/grpc/generic/bidi_call.rb' 372 - 'lib/grpc/generic/rpc_server.rb' 373 - 'qps/client.rb' 374 375# Offense count: 1 376# Cop supports --auto-correct. 377# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. 378# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys 379Style/HashSyntax: 380 Exclude: 381 - 'stress/metrics_server.rb' 382 383# Offense count: 1 384Style/IfInsideElse: 385 Exclude: 386 - 'lib/grpc/generic/rpc_desc.rb' 387 388# Offense count: 4 389# Cop supports --auto-correct. 390# Configuration parameters: MaxLineLength. 391Style/IfUnlessModifier: 392 Exclude: 393 - 'ext/grpc/extconf.rb' 394 - 'qps/histogram.rb' 395 - 'stress/stress_client.rb' 396 397# Offense count: 1 398# Cop supports --auto-correct. 399Style/MethodCallWithoutArgsParentheses: 400 Exclude: 401 - 'qps/client.rb' 402 403# Offense count: 3 404# Cop supports --auto-correct. 405Style/MultilineIfModifier: 406 Exclude: 407 - 'lib/grpc/generic/bidi_call.rb' 408 - 'lib/grpc/generic/client_stub.rb' 409 - 'spec/spec_helper.rb' 410 411# Offense count: 7 412# Cop supports --auto-correct. 413Style/MutableConstant: 414 Exclude: 415 - 'ext/grpc/extconf.rb' 416 - 'lib/grpc/version.rb' 417 - 'spec/compression_options_spec.rb' 418 - 'spec/generic/active_call_spec.rb' 419 - 'tools/version.rb' 420 421# Offense count: 1 422# Cop supports --auto-correct. 423Style/NegatedWhile: 424 Exclude: 425 - 'qps/client.rb' 426 427# Offense count: 1 428# Cop supports --auto-correct. 429# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. 430# SupportedStyles: predicate, comparison 431Style/NumericPredicate: 432 Exclude: 433 - 'spec/**/*' 434 - 'ext/grpc/extconf.rb' 435 436# Offense count: 7 437# Cop supports --auto-correct. 438Style/ParallelAssignment: 439 Exclude: 440 - 'bin/math_server.rb' 441 - 'lib/grpc/generic/rpc_server.rb' 442 - 'spec/generic/client_stub_spec.rb' 443 - 'spec/generic/rpc_desc_spec.rb' 444 - 'spec/generic/rpc_server_pool_spec.rb' 445 - 'spec/generic/rpc_server_spec.rb' 446 447# Offense count: 8 448# Cop supports --auto-correct. 449# Configuration parameters: PreferredDelimiters. 450Style/PercentLiteralDelimiters: 451 Exclude: 452 - 'end2end/grpc_class_init_driver.rb' 453 - 'spec/client_server_spec.rb' 454 - 'spec/generic/active_call_spec.rb' 455 - 'spec/generic/client_stub_spec.rb' 456 - 'tools/grpc-tools.gemspec' 457 458# Offense count: 3 459# Cop supports --auto-correct. 460# Configuration parameters: EnforcedStyle, SupportedStyles. 461# SupportedStyles: compact, exploded 462Style/RaiseArgs: 463 Exclude: 464 - 'stress/metrics_server.rb' 465 466# Offense count: 4 467# Cop supports --auto-correct. 468Style/RedundantParentheses: 469 Exclude: 470 - 'lib/grpc/generic/rpc_server.rb' 471 - 'qps/client.rb' 472 - 'qps/proxy-worker.rb' 473 - 'spec/generic/rpc_desc_spec.rb' 474 475# Offense count: 5 476# Cop supports --auto-correct. 477# Configuration parameters: AllowMultipleReturnValues. 478Style/RedundantReturn: 479 Exclude: 480 - 'end2end/grpc_class_init_client.rb' 481 482# Offense count: 77 483# Cop supports --auto-correct. 484# Configuration parameters: EnforcedStyle, SupportedStyles. 485# SupportedStyles: only_raise, only_fail, semantic 486Style/SignalException: 487 Enabled: false 488 489# Offense count: 2 490# Cop supports --auto-correct. 491# Configuration parameters: EnforcedStyle, SupportedStyles. 492# SupportedStyles: use_perl_names, use_english_names 493Style/SpecialGlobalVars: 494 Exclude: 495 - 'ext/grpc/extconf.rb' 496 - 'stress/stress_client.rb' 497 498# Offense count: 189 499# Cop supports --auto-correct. 500# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline. 501# SupportedStyles: single_quotes, double_quotes 502Style/StringLiterals: 503 Exclude: 504 - 'pb/grpc/testing/metrics_pb.rb' 505 - 'pb/src/proto/grpc/testing/empty_pb.rb' 506 - 'pb/src/proto/grpc/testing/messages_pb.rb' 507 - 'qps/proxy-worker.rb' 508 - 'qps/server.rb' 509 - 'qps/src/proto/grpc/testing/control_pb.rb' 510 - 'qps/src/proto/grpc/testing/messages_pb.rb' 511 - 'qps/src/proto/grpc/testing/payloads_pb.rb' 512 - 'qps/src/proto/grpc/testing/proxy-service_pb.rb' 513 - 'qps/src/proto/grpc/testing/stats_pb.rb' 514 - 'qps/worker.rb' 515 516# Offense count: 1 517Style/StructInheritance: 518 Exclude: 519 - 'lib/grpc/generic/rpc_desc.rb' 520 521# Offense count: 10 522# Cop supports --auto-correct. 523# Configuration parameters: MinSize, SupportedStyles. 524# SupportedStyles: percent, brackets 525Style/SymbolArray: 526 EnforcedStyle: brackets 527 528# Offense count: 2 529# Cop supports --auto-correct. 530# Configuration parameters: IgnoredMethods. 531# IgnoredMethods: respond_to, define_method 532Style/SymbolProc: 533 Exclude: 534 - 'qps/client.rb' 535 - 'stress/stress_client.rb' 536 537# Offense count: 6 538# Cop supports --auto-correct. 539# Configuration parameters: AllowNamedUnderscoreVariables. 540Style/TrailingUnderscoreVariable: 541 Exclude: 542 - 'spec/channel_credentials_spec.rb' 543 - 'spec/server_credentials_spec.rb' 544 545# Offense count: 3 546# Cop supports --auto-correct. 547# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist. 548# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym 549Style/TrivialAccessors: 550 Exclude: 551 - 'qps/histogram.rb' 552 553# Offense count: 3 554# Cop supports --auto-correct. 555Style/UnneededInterpolation: 556 Exclude: 557 - 'pb/grpc/health/checker.rb' 558 559# Offense count: 1 560# Cop supports --auto-correct. 561Style/YodaCondition: 562 Exclude: 563 - 'stress/stress_client.rb' 564 565# Offense count: 2 566# Cop supports --auto-correct. 567Style/ZeroLengthPredicate: 568 Exclude: 569 - 'lib/grpc/generic/rpc_server.rb' 570