1# This configuration was generated by 2# `rubocop --auto-gen-config` 3# on 2022-12-30 04:58:05 UTC using RuboCop version 1.41.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: 1 10# Configuration parameters: Severity, Include. 11# Include: **/*.gemspec 12Gemspec/RequiredRubyVersion: 13 Exclude: 14 - 'tools/grpc-tools.gemspec' 15 16# Offense count: 1 17# This cop supports safe autocorrection (--autocorrect). 18# Configuration parameters: EnforcedStyle, IndentationWidth. 19# SupportedStyles: with_first_argument, with_fixed_indentation 20Layout/ArgumentAlignment: 21 Exclude: 22 - 'qps/proxy-worker.rb' 23 24# Offense count: 3 25# This cop supports safe autocorrection (--autocorrect). 26# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth. 27# SupportedStyles: case, end 28Layout/CaseIndentation: 29 Exclude: 30 - 'tools/platform_check.rb' 31 32# Offense count: 1 33# This cop supports safe autocorrection (--autocorrect). 34# Configuration parameters: AllowForAlignment. 35Layout/CommentIndentation: 36 Exclude: 37 - 'qps/client.rb' 38 39# Offense count: 88 40# This cop supports safe autocorrection (--autocorrect). 41Layout/EmptyLineAfterGuardClause: 42 Enabled: false 43 44# Offense count: 1 45# This cop supports safe autocorrection (--autocorrect). 46Layout/EmptyLineAfterMagicComment: 47 Exclude: 48 - 'tools/grpc-tools.gemspec' 49 50# Offense count: 41 51# This cop supports safe autocorrection (--autocorrect). 52# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines. 53Layout/EmptyLineBetweenDefs: 54 Exclude: 55 - 'pb/src/proto/grpc/testing/test_services_pb.rb' 56 - 'qps/client.rb' 57 - 'qps/histogram.rb' 58 - 'qps/proxy-worker.rb' 59 - 'qps/qps-common.rb' 60 - 'qps/server.rb' 61 - 'qps/worker.rb' 62 63# Offense count: 1 64# This cop supports safe autocorrection (--autocorrect). 65Layout/EmptyLines: 66 Exclude: 67 - 'qps/qps-common.rb' 68 69# Offense count: 1 70# This cop supports safe autocorrection (--autocorrect). 71# Configuration parameters: AllowAliasSyntax, AllowedMethods. 72# AllowedMethods: alias_method, public, protected, private 73Layout/EmptyLinesAroundAttributeAccessor: 74 Exclude: 75 - 'lib/grpc/generic/active_call.rb' 76 77# Offense count: 12 78# This cop supports safe autocorrection (--autocorrect). 79# Configuration parameters: EnforcedStyle. 80# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only 81Layout/EmptyLinesAroundClassBody: 82 Exclude: 83 - 'pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb' 84 - 'pb/grpc/testing/metrics_services_pb.rb' 85 - 'pb/src/proto/grpc/testing/test_services_pb.rb' 86 - 'qps/src/proto/grpc/testing/benchmark_service_services_pb.rb' 87 - 'qps/src/proto/grpc/testing/proxy-service_services_pb.rb' 88 - 'qps/src/proto/grpc/testing/report_qps_scenario_service_services_pb.rb' 89 - 'qps/src/proto/grpc/testing/worker_service_services_pb.rb' 90 91# Offense count: 23 92# This cop supports safe autocorrection (--autocorrect). 93# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. 94Layout/ExtraSpacing: 95 Exclude: 96 - 'bin/math_client.rb' 97 - 'bin/math_server.rb' 98 - 'lib/grpc/generic/active_call.rb' 99 - 'lib/grpc/generic/bidi_call.rb' 100 - 'lib/grpc/generic/rpc_desc.rb' 101 - 'lib/grpc/generic/rpc_server.rb' 102 - 'lib/grpc/generic/service.rb' 103 - 'pb/grpc/health/checker.rb' 104 - 'spec/call_spec.rb' 105 - 'spec/channel_credentials_spec.rb' 106 - 'spec/client_server_spec.rb' 107 - 'spec/generic/active_call_spec.rb' 108 - 'spec/generic/client_stub_spec.rb' 109 - 'spec/generic/rpc_server_spec.rb' 110 111# Offense count: 1 112# This cop supports safe autocorrection (--autocorrect). 113# Configuration parameters: IndentationWidth, EnforcedStyle. 114# SupportedStyles: spaces, tabs 115Layout/IndentationStyle: 116 Exclude: 117 - 'qps/client.rb' 118 119# Offense count: 1 120# This cop supports safe autocorrection (--autocorrect). 121# Configuration parameters: EnforcedStyle. 122# SupportedStyles: symmetrical, new_line, same_line 123Layout/MultilineHashBraceLayout: 124 Exclude: 125 - 'spec/generic/active_call_spec.rb' 126 127# Offense count: 121 128# This cop supports safe autocorrection (--autocorrect). 129# Configuration parameters: EnforcedStyle. 130# SupportedStyles: symmetrical, new_line, same_line 131Layout/MultilineMethodCallBraceLayout: 132 Enabled: false 133 134# Offense count: 2 135# This cop supports safe autocorrection (--autocorrect). 136# Configuration parameters: EnforcedStyle, IndentationWidth. 137# SupportedStyles: aligned, indented, indented_relative_to_receiver 138Layout/MultilineMethodCallIndentation: 139 Exclude: 140 - 'spec/generic/rpc_desc_spec.rb' 141 142# Offense count: 1 143# This cop supports safe autocorrection (--autocorrect). 144# Configuration parameters: EnforcedStyle. 145# SupportedStyles: symmetrical, new_line, same_line 146Layout/MultilineMethodDefinitionBraceLayout: 147 Exclude: 148 - 'spec/generic/client_stub_spec.rb' 149 150# Offense count: 4 151# This cop supports safe autocorrection (--autocorrect). 152# Configuration parameters: EnforcedStyle, IndentationWidth. 153# SupportedStyles: aligned, indented 154Layout/MultilineOperationIndentation: 155 Exclude: 156 - 'qps/proxy-worker.rb' 157 158# Offense count: 8 159# This cop supports safe autocorrection (--autocorrect). 160Layout/SpaceAfterComma: 161 Exclude: 162 - 'qps/client.rb' 163 - 'qps/histogram.rb' 164 165# Offense count: 30 166# This cop supports safe autocorrection (--autocorrect). 167# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. 168# SupportedStylesForExponentOperator: space, no_space 169Layout/SpaceAroundOperators: 170 Exclude: 171 - 'qps/client.rb' 172 - 'qps/histogram.rb' 173 - 'qps/proxy-worker.rb' 174 - 'qps/server.rb' 175 - 'spec/generic/active_call_spec.rb' 176 177# Offense count: 1 178# This cop supports safe autocorrection (--autocorrect). 179# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. 180# SupportedStyles: space, no_space 181# SupportedStylesForEmptyBraces: space, no_space 182Layout/SpaceBeforeBlockBraces: 183 Exclude: 184 - 'qps/histogram.rb' 185 186# Offense count: 4 187# This cop supports safe autocorrection (--autocorrect). 188# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. 189# SupportedStyles: space, no_space, compact 190# SupportedStylesForEmptyBrackets: space, no_space 191Layout/SpaceInsideArrayLiteralBrackets: 192 Exclude: 193 - 'tools/bin/grpc_tools_ruby_protoc' 194 - 'tools/bin/grpc_tools_ruby_protoc_plugin' 195 196# Offense count: 1 197# This cop supports safe autocorrection (--autocorrect). 198# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. 199# SupportedStyles: space, no_space 200# SupportedStylesForEmptyBraces: space, no_space 201Layout/SpaceInsideBlockBraces: 202 Exclude: 203 - 'stress/stress_client.rb' 204 205# Offense count: 2 206# This cop supports safe autocorrection (--autocorrect). 207# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. 208# SupportedStyles: space, no_space, compact 209# SupportedStylesForEmptyBraces: space, no_space 210Layout/SpaceInsideHashLiteralBraces: 211 Exclude: 212 - 'qps/server.rb' 213 214# Offense count: 6 215# This cop supports safe autocorrection (--autocorrect). 216Layout/SpaceInsidePercentLiteralDelimiters: 217 Exclude: 218 - 'spec/generic/client_stub_spec.rb' 219 - 'tools/grpc-tools.gemspec' 220 221# Offense count: 1 222# This cop supports safe autocorrection (--autocorrect). 223# Configuration parameters: AllowInHeredoc. 224Layout/TrailingWhitespace: 225 Exclude: 226 - 'qps/worker.rb' 227 228# Offense count: 34 229# Configuration parameters: AllowedMethods. 230# AllowedMethods: enums 231Lint/ConstantDefinitionInBlock: 232 Exclude: 233 - 'spec/call_credentials_spec.rb' 234 - 'spec/channel_credentials_spec.rb' 235 - 'spec/client_auth_spec.rb' 236 - 'spec/compression_options_spec.rb' 237 - 'spec/debug_message_spec.rb' 238 - 'spec/generic/active_call_spec.rb' 239 - 'spec/generic/client_stub_spec.rb' 240 - 'spec/generic/rpc_desc_spec.rb' 241 - 'spec/generic/rpc_server_pool_spec.rb' 242 - 'spec/generic/rpc_server_spec.rb' 243 - 'spec/generic/service_spec.rb' 244 - 'spec/pb/health/checker_spec.rb' 245 - 'spec/server_credentials_spec.rb' 246 - 'spec/user_agent_spec.rb' 247 248# Offense count: 1 249# This cop supports unsafe autocorrection (--autocorrect-all). 250Lint/DuplicateRequire: 251 Exclude: 252 - 'spec/google_rpc_status_utils_spec.rb' 253 254# Offense count: 1 255Lint/IneffectiveAccessModifier: 256 Exclude: 257 - 'lib/grpc/generic/active_call.rb' 258 259# Offense count: 1 260# This cop supports unsafe autocorrection (--autocorrect-all). 261Lint/InterpolationCheck: 262 Exclude: 263 - 'qps/qps-common.rb' 264 265# Offense count: 4 266# Configuration parameters: MaximumRangeSize. 267Lint/MissingCopEnableDirective: 268 Exclude: 269 - 'end2end/call_credentials_returning_bad_metadata_doesnt_kill_background_thread_test.rb' 270 - 'end2end/call_credentials_timeout_test.rb' 271 - 'lib/grpc/generic/client_stub.rb' 272 273# Offense count: 14 274Lint/MissingSuper: 275 Exclude: 276 - 'bin/noproto_server.rb' 277 - 'end2end/channel_closing_client.rb' 278 - 'end2end/end2end_common.rb' 279 - 'end2end/graceful_sig_handling_client.rb' 280 - 'end2end/graceful_sig_stop_client.rb' 281 - 'end2end/killed_client_thread_test.rb' 282 - 'end2end/sig_handling_client.rb' 283 - 'lib/grpc/generic/service.rb' 284 - 'pb/grpc/health/checker.rb' 285 - 'qps/proxy-worker.rb' 286 - 'qps/worker.rb' 287 - 'stress/metrics_server.rb' 288 - 'stress/stress_client.rb' 289 290# Offense count: 4 291# This cop supports unsafe autocorrection (--autocorrect-all). 292Lint/PercentStringArray: 293 Exclude: 294 - 'spec/client_server_spec.rb' 295 - 'spec/generic/active_call_spec.rb' 296 - 'spec/generic/client_stub_spec.rb' 297 298# Offense count: 4 299# This cop supports safe autocorrection (--autocorrect). 300Lint/RedundantRequireStatement: 301 Exclude: 302 - 'end2end/end2end_common.rb' 303 - 'lib/grpc/generic/rpc_server.rb' 304 - 'qps/histogram.rb' 305 - 'stress/stress_client.rb' 306 307# Offense count: 4 308# This cop supports safe autocorrection (--autocorrect). 309Lint/ScriptPermission: 310 Exclude: 311 - 'qps/client.rb' 312 - 'qps/histogram.rb' 313 - 'qps/qps-common.rb' 314 - 'qps/server.rb' 315 316# Offense count: 1 317# Configuration parameters: AllowedPatterns, IgnoredPatterns. 318# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times) 319Lint/UnreachableLoop: 320 Exclude: 321 - 'spec/channel_connection_spec.rb' 322 323# Offense count: 2 324# This cop supports safe autocorrection (--autocorrect). 325# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. 326Lint/UnusedBlockArgument: 327 Exclude: 328 - 'qps/client.rb' 329 330# Offense count: 3 331# This cop supports safe autocorrection (--autocorrect). 332# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. 333Lint/UnusedMethodArgument: 334 Exclude: 335 - 'end2end/server_marshalling_graceful_errors_test.rb' 336 - 'qps/client.rb' 337 338# Offense count: 1 339# This cop supports safe autocorrection (--autocorrect). 340# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. 341Lint/UselessAccessModifier: 342 Exclude: 343 - 'lib/grpc/logconfig.rb' 344 345# Offense count: 1 346Lint/UselessAssignment: 347 Exclude: 348 - 'qps/client.rb' 349 350# Offense count: 1 351# This cop supports unsafe autocorrection (--autocorrect-all). 352Lint/UselessMethodDefinition: 353 Exclude: 354 - 'lib/grpc/generic/service.rb' 355 356# Offense count: 5 357# Configuration parameters: CheckForMethodsWithNoSideEffects. 358Lint/Void: 359 Exclude: 360 - 'spec/generic/rpc_server_spec.rb' 361 - 'stress/metrics_server.rb' 362 - 'stress/stress_client.rb' 363 364# Offense count: 61 365# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes. 366Metrics/AbcSize: 367 Max: 61 368 369# Offense count: 116 370# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. 371# AllowedMethods: refine 372Metrics/BlockLength: 373 Max: 563 374 375# Offense count: 2 376# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. 377Metrics/CyclomaticComplexity: 378 Max: 11 379 380# Offense count: 106 381# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. 382Metrics/MethodLength: 383 Max: 54 384 385# Offense count: 6 386# Configuration parameters: CountKeywordArgs, MaxOptionalParameters. 387Metrics/ParameterLists: 388 Max: 7 389 390# Offense count: 2 391# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. 392Metrics/PerceivedComplexity: 393 Max: 10 394 395# Offense count: 7 396Naming/AccessorMethodName: 397 Exclude: 398 - 'qps/server.rb' 399 - 'stress/metrics_server.rb' 400 - 'stress/stress_client.rb' 401 402# Offense count: 2 403# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. 404# CheckDefinitionPathHierarchyRoots: lib, spec, test, src 405# 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 406Naming/FileName: 407 Exclude: 408 - 'qps/src/proto/grpc/testing/proxy-service_pb.rb' 409 - 'qps/src/proto/grpc/testing/proxy-service_services_pb.rb' 410 411# Offense count: 28 412# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. 413# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to 414Naming/MethodParameterName: 415 Exclude: 416 - 'bin/noproto_client.rb' 417 - 'bin/noproto_server.rb' 418 - 'end2end/channel_closing_client.rb' 419 - 'end2end/multiple_killed_watching_threads_test.rb' 420 - 'lib/grpc/generic/service.rb' 421 - 'qps/proxy-worker.rb' 422 - 'qps/qps-common.rb' 423 - 'qps/worker.rb' 424 - 'spec/channel_spec.rb' 425 - 'spec/generic/active_call_spec.rb' 426 - 'spec/generic/client_stub_spec.rb' 427 - 'spec/generic/service_spec.rb' 428 - 'spec/server_spec.rb' 429 - 'spec/support/services.rb' 430 431# Offense count: 1 432# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. 433# NamePrefix: is_, has_, have_ 434# ForbiddenPrefixes: is_, has_, have_ 435# AllowedMethods: is_a? 436# MethodDefinitionMacros: define_method, define_singleton_method 437Naming/PredicateName: 438 Exclude: 439 - 'spec/**/*' 440 - 'ext/grpc/extconf.rb' 441 442# Offense count: 1 443# This cop supports safe autocorrection (--autocorrect). 444# Configuration parameters: PreferredName. 445Naming/RescuedExceptionsVariableName: 446 Exclude: 447 - 'lib/grpc/errors.rb' 448 449# Offense count: 5 450# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. 451# SupportedStyles: snake_case, normalcase, non_integer 452# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 453Naming/VariableNumber: 454 Exclude: 455 - 'qps/src/proto/grpc/testing/control_pb.rb' 456 457# Offense count: 2 458# This cop supports safe autocorrection (--autocorrect). 459# Configuration parameters: EnforcedStyle. 460# SupportedStyles: prefer_alias, prefer_alias_method 461Style/Alias: 462 Exclude: 463 - 'lib/grpc/generic/rpc_server.rb' 464 - 'lib/grpc/notifier.rb' 465 466# Offense count: 2 467# This cop supports unsafe autocorrection (--autocorrect-all). 468# Configuration parameters: EnforcedStyle. 469# SupportedStyles: always, conditionals 470Style/AndOr: 471 Exclude: 472 - 'ext/grpc/extconf.rb' 473 474# Offense count: 8 475# This cop supports safe autocorrection (--autocorrect). 476# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. 477# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces 478# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object 479# FunctionalMethods: let, let!, subject, watch 480# AllowedMethods: lambda, proc, it 481Style/BlockDelimiters: 482 Exclude: 483 - 'qps/client.rb' 484 - 'qps/proxy-worker.rb' 485 - 'qps/server.rb' 486 - 'qps/worker.rb' 487 488# Offense count: 1 489# This cop supports unsafe autocorrection (--autocorrect-all). 490Style/CaseLikeIf: 491 Exclude: 492 - 'lib/grpc/generic/bidi_call.rb' 493 494# Offense count: 1 495# This cop supports safe autocorrection (--autocorrect). 496# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. 497# AllowedMethods: ==, equal?, eql? 498Style/ClassEqualityComparison: 499 Exclude: 500 - 'lib/grpc/generic/rpc_server.rb' 501 502# Offense count: 2 503# This cop supports safe autocorrection (--autocorrect). 504Style/ClassMethods: 505 Exclude: 506 - 'tools/platform_check.rb' 507 508# Offense count: 3 509# This cop supports safe autocorrection (--autocorrect). 510# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. 511# SupportedStyles: assign_to_condition, assign_inside_condition 512Style/ConditionalAssignment: 513 Exclude: 514 - 'ext/grpc/extconf.rb' 515 - 'lib/grpc/generic/rpc_server.rb' 516 - 'lib/grpc/generic/service.rb' 517 518# Offense count: 2 519# This cop supports safe autocorrection (--autocorrect). 520Style/DefWithParentheses: 521 Exclude: 522 - 'ext/grpc/extconf.rb' 523 524# Offense count: 29 525# This cop supports safe autocorrection (--autocorrect). 526Style/Dir: 527 Enabled: false 528 529# Offense count: 24 530# Configuration parameters: AllowedConstants. 531Style/Documentation: 532 Enabled: false 533 534# Offense count: 8 535# This cop supports safe autocorrection (--autocorrect). 536# Configuration parameters: EnforcedStyle. 537# SupportedStyles: compact, expanded 538Style/EmptyMethod: 539 Exclude: 540 - 'bin/noproto_server.rb' 541 - 'lib/grpc/logconfig.rb' 542 - 'spec/generic/rpc_desc_spec.rb' 543 544# Offense count: 1 545# This cop supports safe autocorrection (--autocorrect). 546Style/ExpandPathArguments: 547 Exclude: 548 - 'lib/grpc.rb' 549 550# Offense count: 2 551# This cop supports safe autocorrection (--autocorrect). 552Style/ExplicitBlockArgument: 553 Exclude: 554 - 'lib/grpc/generic/active_call.rb' 555 - 'lib/grpc/generic/interceptors.rb' 556 557# Offense count: 118 558# This cop supports unsafe autocorrection (--autocorrect-all). 559# Configuration parameters: EnforcedStyle. 560# SupportedStyles: always, always_true, never 561Style/FrozenStringLiteralComment: 562 Enabled: false 563 564# Offense count: 66 565# This cop supports unsafe autocorrection (--autocorrect-all). 566Style/GlobalStdStream: 567 Enabled: false 568 569# Offense count: 15 570# Configuration parameters: AllowedVariables. 571Style/GlobalVars: 572 Exclude: 573 - 'ext/grpc/extconf.rb' 574 575# Offense count: 4 576# This cop supports safe autocorrection (--autocorrect). 577# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. 578Style/GuardClause: 579 Exclude: 580 - 'lib/grpc/generic/bidi_call.rb' 581 - 'lib/grpc/generic/rpc_server.rb' 582 - 'qps/client.rb' 583 584# Offense count: 12 585# This cop supports safe autocorrection (--autocorrect). 586# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. 587# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys 588# SupportedShorthandSyntax: always, never, either, consistent 589Style/HashSyntax: 590 Exclude: 591 - 'pb/src/proto/grpc/testing/empty_pb.rb' 592 - 'pb/src/proto/grpc/testing/messages_pb.rb' 593 - 'pb/src/proto/grpc/testing/test_pb.rb' 594 - 'qps/src/proto/grpc/core/stats_pb.rb' 595 - 'qps/src/proto/grpc/testing/benchmark_service_pb.rb' 596 - 'qps/src/proto/grpc/testing/control_pb.rb' 597 - 'qps/src/proto/grpc/testing/messages_pb.rb' 598 - 'qps/src/proto/grpc/testing/payloads_pb.rb' 599 - 'qps/src/proto/grpc/testing/report_qps_scenario_service_pb.rb' 600 - 'qps/src/proto/grpc/testing/stats_pb.rb' 601 - 'qps/src/proto/grpc/testing/worker_service_pb.rb' 602 - 'stress/metrics_server.rb' 603 604# Offense count: 3 605# This cop supports unsafe autocorrection (--autocorrect-all). 606Style/HashTransformKeys: 607 Exclude: 608 - 'spec/client_server_spec.rb' 609 610# Offense count: 1 611# This cop supports safe autocorrection (--autocorrect). 612# Configuration parameters: AllowIfModifier. 613Style/IfInsideElse: 614 Exclude: 615 - 'lib/grpc/generic/rpc_desc.rb' 616 617# Offense count: 32 618# This cop supports safe autocorrection (--autocorrect). 619Style/IfUnlessModifier: 620 Enabled: false 621 622# Offense count: 1 623# This cop supports unsafe autocorrection (--autocorrect-all). 624Style/InfiniteLoop: 625 Exclude: 626 - 'qps/proxy-worker.rb' 627 628# Offense count: 1 629# This cop supports unsafe autocorrection (--autocorrect-all). 630Style/LineEndConcatenation: 631 Exclude: 632 - 'qps/proxy-worker.rb' 633 634# Offense count: 3 635# This cop supports safe autocorrection (--autocorrect). 636# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. 637Style/MethodCallWithoutArgsParentheses: 638 Exclude: 639 - 'ext/grpc/extconf.rb' 640 - 'qps/client.rb' 641 642# Offense count: 14 643Style/MixinUsage: 644 Exclude: 645 - 'bin/math_client.rb' 646 - 'end2end/end2end_common.rb' 647 - 'end2end/multiple_killed_watching_threads_test.rb' 648 - 'spec/call_spec.rb' 649 - 'spec/channel_connection_spec.rb' 650 - 'spec/client_server_spec.rb' 651 - 'spec/generic/active_call_spec.rb' 652 - 'spec/generic/client_stub_spec.rb' 653 - 'spec/google_rpc_status_utils_spec.rb' 654 655# Offense count: 2 656# This cop supports safe autocorrection (--autocorrect). 657Style/MultilineIfModifier: 658 Exclude: 659 - 'lib/grpc/generic/bidi_call.rb' 660 - 'spec/spec_helper.rb' 661 662# Offense count: 5 663# This cop supports unsafe autocorrection (--autocorrect-all). 664# Configuration parameters: EnforcedStyle. 665# SupportedStyles: literals, strict 666Style/MutableConstant: 667 Exclude: 668 - 'lib/grpc/version.rb' 669 - 'spec/compression_options_spec.rb' 670 - 'spec/generic/active_call_spec.rb' 671 - 'tools/version.rb' 672 673# Offense count: 1 674# This cop supports safe autocorrection (--autocorrect). 675Style/NegatedWhile: 676 Exclude: 677 - 'qps/client.rb' 678 679# Offense count: 10 680# This cop supports unsafe autocorrection (--autocorrect-all). 681# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods. 682# SupportedStyles: predicate, comparison 683Style/NumericPredicate: 684 Exclude: 685 - 'spec/**/*' 686 - 'end2end/end2end_common.rb' 687 - 'ext/grpc/extconf.rb' 688 - 'lib/grpc/core/time_consts.rb' 689 - 'lib/grpc/generic/rpc_server.rb' 690 - 'qps/client.rb' 691 - 'qps/qps-common.rb' 692 693# Offense count: 3 694# Configuration parameters: AllowedMethods. 695# AllowedMethods: respond_to_missing? 696Style/OptionalBooleanParameter: 697 Exclude: 698 - 'lib/grpc/generic/active_call.rb' 699 - 'lib/grpc/generic/bidi_call.rb' 700 701# Offense count: 7 702# This cop supports safe autocorrection (--autocorrect). 703Style/ParallelAssignment: 704 Exclude: 705 - 'bin/math_server.rb' 706 - 'lib/grpc/generic/rpc_server.rb' 707 - 'spec/generic/client_stub_spec.rb' 708 - 'spec/generic/rpc_desc_spec.rb' 709 - 'spec/generic/rpc_server_pool_spec.rb' 710 - 'spec/generic/rpc_server_spec.rb' 711 712# Offense count: 9 713# This cop supports safe autocorrection (--autocorrect). 714# Configuration parameters: PreferredDelimiters. 715Style/PercentLiteralDelimiters: 716 Exclude: 717 - 'end2end/grpc_class_init_test.rb' 718 - 'spec/client_server_spec.rb' 719 - 'spec/generic/active_call_spec.rb' 720 - 'spec/generic/client_stub_spec.rb' 721 - 'tools/grpc-tools.gemspec' 722 723# Offense count: 3 724# This cop supports safe autocorrection (--autocorrect). 725# Configuration parameters: EnforcedStyle, AllowedCompactTypes. 726# SupportedStyles: compact, exploded 727Style/RaiseArgs: 728 Exclude: 729 - 'stress/metrics_server.rb' 730 731# Offense count: 2 732# This cop supports safe autocorrection (--autocorrect). 733Style/RedundantAssignment: 734 Exclude: 735 - 'spec/generic/client_stub_spec.rb' 736 737# Offense count: 4 738# This cop supports safe autocorrection (--autocorrect). 739Style/RedundantBegin: 740 Exclude: 741 - 'bin/math_server.rb' 742 - 'end2end/call_credentials_timeout_test.rb' 743 - 'end2end/channel_closing_client.rb' 744 - 'end2end/channel_closing_test.rb' 745 746# Offense count: 3 747# This cop supports safe autocorrection (--autocorrect). 748Style/RedundantFileExtensionInRequire: 749 Exclude: 750 - 'stress/metrics_server.rb' 751 - 'tools/grpc-tools.gemspec' 752 753# Offense count: 5 754# This cop supports unsafe autocorrection (--autocorrect-all). 755Style/RedundantInterpolation: 756 Exclude: 757 - 'pb/grpc/health/checker.rb' 758 759# Offense count: 4 760# This cop supports safe autocorrection (--autocorrect). 761Style/RedundantParentheses: 762 Exclude: 763 - 'lib/grpc/generic/rpc_server.rb' 764 - 'qps/client.rb' 765 - 'qps/proxy-worker.rb' 766 - 'spec/generic/rpc_desc_spec.rb' 767 768# Offense count: 8 769# This cop supports safe autocorrection (--autocorrect). 770# Configuration parameters: AllowMultipleReturnValues. 771Style/RedundantReturn: 772 Exclude: 773 - 'end2end/grpc_class_init_client.rb' 774 775# Offense count: 5 776# This cop supports safe autocorrection (--autocorrect). 777# Configuration parameters: EnforcedStyle. 778# SupportedStyles: implicit, explicit 779Style/RescueStandardError: 780 Exclude: 781 - 'end2end/end2end_common.rb' 782 - 'lib/grpc/generic/active_call.rb' 783 - 'spec/google_rpc_status_utils_spec.rb' 784 785# Offense count: 1 786# This cop supports unsafe autocorrection (--autocorrect-all). 787# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. 788# AllowedMethods: present?, blank?, presence, try, try! 789Style/SafeNavigation: 790 Exclude: 791 - 'lib/grpc/generic/bidi_call.rb' 792 793# Offense count: 127 794# This cop supports safe autocorrection (--autocorrect). 795# Configuration parameters: EnforcedStyle. 796# SupportedStyles: only_raise, only_fail, semantic 797Style/SignalException: 798 Enabled: false 799 800# Offense count: 1 801# This cop supports unsafe autocorrection (--autocorrect-all). 802Style/SlicingWithRange: 803 Exclude: 804 - 'lib/grpc/generic/rpc_server.rb' 805 806# Offense count: 2 807# This cop supports unsafe autocorrection (--autocorrect-all). 808# Configuration parameters: RequireEnglish, EnforcedStyle. 809# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names 810Style/SpecialGlobalVars: 811 Exclude: 812 - 'ext/grpc/extconf.rb' 813 - 'stress/stress_client.rb' 814 815# Offense count: 64 816# This cop supports safe autocorrection (--autocorrect). 817Style/StderrPuts: 818 Enabled: false 819 820# Offense count: 28 821# This cop supports unsafe autocorrection (--autocorrect-all). 822# Configuration parameters: Mode. 823Style/StringConcatenation: 824 Exclude: 825 - 'ext/grpc/extconf.rb' 826 - 'qps/proxy-worker.rb' 827 - 'qps/server.rb' 828 - 'qps/worker.rb' 829 - 'spec/generic/active_call_spec.rb' 830 - 'spec/generic/client_stub_spec.rb' 831 - 'tools/bin/grpc_tools_ruby_protoc' 832 - 'tools/bin/grpc_tools_ruby_protoc_plugin' 833 834# Offense count: 296 835# This cop supports safe autocorrection (--autocorrect). 836# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. 837# SupportedStyles: single_quotes, double_quotes 838Style/StringLiterals: 839 Enabled: false 840 841# Offense count: 1 842# This cop supports unsafe autocorrection (--autocorrect-all). 843Style/StructInheritance: 844 Exclude: 845 - 'lib/grpc/generic/rpc_desc.rb' 846 847# Offense count: 10 848# This cop supports safe autocorrection (--autocorrect). 849# Configuration parameters: MinSize. 850# SupportedStyles: percent, brackets 851Style/SymbolArray: 852 EnforcedStyle: brackets 853 854# Offense count: 2 855# This cop supports unsafe autocorrection (--autocorrect-all). 856# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments. 857# AllowedMethods: define_method 858Style/SymbolProc: 859 Exclude: 860 - 'qps/client.rb' 861 - 'stress/stress_client.rb' 862 863# Offense count: 1 864# This cop supports safe autocorrection (--autocorrect). 865# Configuration parameters: EnforcedStyleForMultiline. 866# SupportedStylesForMultiline: comma, consistent_comma, no_comma 867Style/TrailingCommaInHashLiteral: 868 Exclude: 869 - 'bin/math_client.rb' 870 871# Offense count: 7 872# This cop supports safe autocorrection (--autocorrect). 873# Configuration parameters: AllowNamedUnderscoreVariables. 874Style/TrailingUnderscoreVariable: 875 Exclude: 876 - 'spec/channel_credentials_spec.rb' 877 - 'spec/server_credentials_spec.rb' 878 879# Offense count: 3 880# This cop supports safe autocorrection (--autocorrect). 881# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods. 882# AllowedMethods: 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 883Style/TrivialAccessors: 884 Exclude: 885 - 'qps/histogram.rb' 886 887# Offense count: 2 888# This cop supports safe autocorrection (--autocorrect). 889Style/WhileUntilModifier: 890 Exclude: 891 - 'end2end/end2end_common.rb' 892 - 'qps/proxy-worker.rb' 893 894# Offense count: 5 895# This cop supports unsafe autocorrection (--autocorrect-all). 896Style/ZeroLengthPredicate: 897 Exclude: 898 - 'ext/grpc/extconf.rb' 899 - 'lib/grpc/generic/rpc_server.rb' 900 901# Offense count: 46 902# This cop supports safe autocorrection (--autocorrect). 903# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. 904# URISchemes: http, https 905Layout/LineLength: 906 Max: 186 907