代码拉取完成,页面将自动刷新
# This configuration was generated by
# `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
# using RuboCop version 1.28.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# This cop supports safe auto-correction (--auto-correct).
I18n/GetText/DecorateFunctionMessage:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
I18n/GetText/DecorateString:
Enabled: false
I18n/GetText/DecorateStringFormattingUsingPercent:
Exclude:
- 'lib/puppet/provider/user/windows_adsi.rb'
- 'lib/puppet/transaction/resource_harness.rb'
I18n/RailsI18n/DecorateString:
Enabled: false
Lint/AmbiguousAssignment: # new in 1.7
Enabled: false
Lint/AmbiguousOperatorPrecedence: # new in 1.21
Enabled: false
Lint/AmbiguousRange: # new in 1.19
Enabled: false
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'lib/puppet/face/config.rb'
- 'lib/puppet/face/help.rb'
- 'lib/puppet/face/node/clean.rb'
- 'lib/puppet/provider/package/aix.rb'
- 'lib/puppet/provider/package/apt.rb'
- 'lib/puppet/provider/package/gem.rb'
- 'lib/puppet/provider/package/pip.rb'
- 'lib/puppet/provider/package/yum.rb'
- 'lib/puppet/provider/service/upstart.rb'
- 'lib/puppet/provider/user/directoryservice.rb'
- 'lib/puppet/type/file.rb'
- 'lib/puppet/type/file/source.rb'
- 'lib/puppet/type/resources.rb'
- 'lib/puppet/type/schedule.rb'
- 'lib/puppet/type/tidy.rb'
Lint/ConstantOverwrittenInRescue: # new in 1.31
Enabled: false
Lint/DeprecatedConstants: # new in 1.8
Enabled: false
Lint/DuplicateBranch: # new in 1.3
Enabled: false
Lint/DuplicateMagicComment: # new in 1.37
Enabled: false
Lint/DuplicateMatchPattern: # new in 1.50
Enabled: false
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
Enabled: false
Lint/EmptyBlock: # new in 1.1
Enabled: false
Lint/EmptyClass: # new in 1.3
Enabled: false
Lint/EmptyInPattern: # new in 1.16
Enabled: false
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
Enabled: false
Lint/ItWithoutArgumentsInBlock: # new in 1.59
Enabled: false
Lint/LambdaWithoutLiteralBlock: # new in 1.8
Enabled: false
Lint/LiteralAssignmentInCondition: # new in 1.58
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/MixedCaseRange: # new in 1.53
Enabled: false
Lint/NestedMethodDefinition:
Exclude:
- 'lib/puppet/pops/types/p_binary_type.rb'
- 'lib/puppet/pops/types/p_init_type.rb'
- 'lib/puppet/pops/types/p_object_type.rb'
- 'lib/puppet/pops/types/p_sem_ver_range_type.rb'
- 'lib/puppet/pops/types/p_sem_ver_type.rb'
- 'lib/puppet/pops/types/p_sensitive_type.rb'
- 'lib/puppet/pops/types/p_timespan_type.rb'
- 'lib/puppet/pops/types/p_timestamp_type.rb'
- 'lib/puppet/pops/types/p_uri_type.rb'
- 'lib/puppet/pops/types/types.rb'
- 'lib/puppet/type.rb'
Lint/NonAtomicFileOperation: # new in 1.31
Enabled: false
Lint/NoReturnInBeginEndBlocks: # new in 1.2
Enabled: false
Lint/NumberedParameterAssignment: # new in 1.9
Enabled: false
Lint/OrAssignmentToConstant: # new in 1.9
Enabled: false
Lint/RedundantDirGlobSort: # new in 1.8
Enabled: false
Lint/RedundantRegexpQuantifiers: # new in 1.53
Enabled: false
# Unsure how the changes in portage.rb from Lint/RedundantSplatExpansion impact
# the code
Lint/RedundantSplatExpansion:
Exclude:
- 'lib/puppet/provider/package/portage.rb'
Lint/RefinementImportMethods: # new in 1.27
Enabled: false
Lint/RequireRangeParentheses: # new in 1.32
Enabled: false
Lint/RequireRelativeSelfPath: # new in 1.22
Enabled: false
Lint/RescueException:
Exclude:
- 'ext/windows/service/daemon.rb'
- 'lib/puppet/configurer/fact_handler.rb'
- 'lib/puppet/generate/type.rb'
- 'lib/puppet/settings.rb'
- 'lib/puppet/transaction/resource_harness.rb'
- 'lib/puppet/util.rb'
- 'lib/puppet/util/autoload.rb'
- 'lib/puppet/util/command_line/trollop.rb'
- 'util/rspec_grouper'
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
Exclude:
- 'lib/puppet/application/face_base.rb'
- 'lib/puppet/ffi/windows/functions.rb'
- 'lib/puppet/forge/errors.rb'
- 'lib/puppet/functions/each.rb'
- 'lib/puppet/functions/filter.rb'
- 'lib/puppet/functions/map.rb'
- 'lib/puppet/functions/slice.rb'
- 'lib/puppet/pops/time/timespan.rb'
- 'lib/puppet/pops/types/iterable.rb'
- 'lib/puppet/pops/types/p_runtime_type.rb'
- 'lib/puppet/util/command_line.rb'
- 'lib/puppet/util/execution.rb'
- 'util/rspec_grouper'
Lint/SymbolConversion: # new in 1.9
Enabled: false
Lint/ToEnumArguments: # new in 1.1
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Lint/ToJSON:
Exclude:
- 'lib/puppet/module_tool/metadata.rb'
- 'lib/puppet/network/http/error.rb'
- 'lib/puppet/pops/serialization/json.rb'
Lint/TripleQuotes: # new in 1.9
Enabled: false
Lint/UnexpectedBlockArity: # new in 1.5
Enabled: false
Lint/UnmodifiedReduceAccumulator: # new in 1.1
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
Enabled: false
Lint/UselessRescue: # new in 1.43
Enabled: false
Lint/UselessRuby2Keywords: # new in 1.23
Enabled: false
Performance/BlockGivenWithExplicitBlock: # new in 1.9
Enabled: false
Performance/CollectionLiteralInLoop: # new in 1.8
Enabled: false
Performance/ConstantRegexp: # new in 1.9
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Performance/Count:
Exclude:
- 'lib/puppet/confine/any.rb'
- 'lib/puppet/confine/false.rb'
- 'lib/puppet/confine/true.rb'
- 'lib/puppet/graph/relationship_graph.rb'
- 'lib/puppet/provider.rb'
# This cop supports unsafe auto-correction (--auto-correct-all).
Performance/InefficientHashSearch:
Exclude:
- 'lib/puppet/face/node/clean.rb'
- 'lib/puppet/provider/nameservice/directoryservice.rb'
- 'lib/puppet/provider/user/directoryservice.rb'
- 'lib/puppet/resource.rb'
- 'lib/puppet/util/windows/adsi.rb'
Performance/MethodObjectAsBlock: # new in 1.9
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Performance/RedundantBlockCall:
Exclude:
- 'lib/puppet/application.rb'
- 'lib/puppet/context.rb'
- 'lib/puppet/file_bucket/file.rb'
- 'lib/puppet/functions/max.rb'
- 'lib/puppet/functions/min.rb'
- 'lib/puppet/gettext/stubs.rb'
- 'lib/puppet/network/http/api/server/v3.rb'
- 'lib/puppet/pal/pal_impl.rb'
- 'lib/puppet/pops/adaptable.rb'
- 'lib/puppet/pops/lookup/invocation.rb'
- 'lib/puppet/pops/model/factory.rb'
- 'lib/puppet/util.rb'
Performance/RedundantEqualityComparisonBlock: # new in 1.10
Enabled: false
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: MaxKeyValuePairs.
Performance/RedundantMerge:
Exclude:
- 'lib/puppet/x509/cert_provider.rb'
Performance/RedundantSplitRegexpArgument: # new in 1.10
Enabled: false
Performance/RedundantStringChars: # new in 1.7
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Performance/RegexpMatch:
Enabled: false
Performance/SortReverse: # new in 1.7
Enabled: false
Performance/Squeeze: # new in 1.7
Enabled: false
Performance/StringIdentifierArgument: # new in 1.13
Enabled: false
Performance/StringInclude: # new in 1.7
Enabled: false
Performance/Sum: # new in 1.8
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Performance/UnfreezeString:
Enabled: false
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
Exclude:
- 'lib/puppet/util/suidmanager.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: separated, grouped
Style/AccessorGrouping:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: prefer_alias, prefer_alias_method
Style/Alias:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
Exclude:
- 'lib/puppet/module_tool/metadata.rb'
- 'lib/puppet/node/environment.rb'
- 'lib/puppet/parameter/package_options.rb'
- 'lib/puppet/provider/package/dpkg.rb'
- 'lib/puppet/provider/package/gem.rb'
- 'lib/puppet/provider/package/rpm.rb'
- 'lib/puppet/provider/package/windows/package.rb'
- 'lib/puppet/settings.rb'
- 'lib/puppet/settings/base_setting.rb'
- 'lib/puppet/transaction/event.rb'
- 'lib/puppet/util/execution.rb'
# This cop supports safe auto-correction (--auto-correct).
Style/BisectedAttrAccessor:
Exclude:
- 'lib/puppet/module.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# IgnoredMethods: lambda, proc, it
Style/BlockDelimiters:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowOnConstant.
Style/CaseEquality:
Exclude:
- 'lib/puppet/indirector/terminus.rb'
- 'lib/puppet/interface/face_collection.rb'
- 'lib/puppet/module_tool/installed_modules.rb'
- 'lib/puppet/module_tool/shared_behaviors.rb'
- 'lib/puppet/util/command_line/puppet_option_parser.rb'
- 'lib/puppet/util/log/destination.rb'
- 'lib/puppet/util/multi_match.rb'
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Enabled: false
Style/ClassVars:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/ColonMethodCall:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
# SupportedStyles: backticks, percent_x, mixed
Style/CommandLiteral:
Exclude:
- 'ext/windows/service/daemon.rb'
- 'lib/puppet/provider/nameservice/directoryservice.rb'
- 'lib/puppet/util/reference.rb'
- 'lib/puppet/util/terminal.rb'
- 'lib/puppet/util/windows/process.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: Keywords, RequireColon.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
Style/CommentAnnotation:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/CommentedKeyword:
Exclude:
- 'lib/puppet/util/command_line/trollop.rb'
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
- 'lib/puppet/util/rdoc/generators/template/puppet/puppet.rb'
- 'lib/puppet/util/rpm_compare.rb'
- 'lib/puppet/util/windows/service.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Enabled: false
# Enabling this would require reworking Puppet's use of DateTime's #rfc2822, #httptime, and _strptime
Style/DateTime:
Enabled: false
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allowed_in_returns, forbidden
Style/DoubleNegation:
Exclude:
- 'lib/puppet/application/lookup.rb'
- 'lib/puppet/confine/boolean.rb'
- 'lib/puppet/http/service/compiler.rb'
- 'lib/puppet/parser/functions/fqdn_rand.rb'
- 'lib/puppet/pops/evaluator/evaluator_impl.rb'
- 'lib/puppet/pops/issue_reporter.rb'
- 'lib/puppet/pops/types/p_runtime_type.rb'
- 'lib/puppet/provider/package/apt.rb'
- 'lib/puppet/resource/status.rb'
- 'lib/puppet/type.rb'
- 'lib/puppet/util/feature.rb'
- 'lib/puppet/util/windows/adsi.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/EmptyLiteral:
Exclude:
- 'lib/puppet/parser/scope.rb'
- 'lib/puppet/pops/puppet_stack.rb'
- 'lib/puppet/pops/visitor.rb'
- 'lib/puppet/provider/package/portupgrade.rb'
- 'lib/puppet/provider/service/launchd.rb'
- 'lib/puppet/provider/user/directoryservice.rb'
- 'lib/puppet/type.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/Encoding:
Exclude:
- 'lib/puppet/face/module/install.rb'
- 'lib/puppet/face/module/list.rb'
- 'lib/puppet/face/module/upgrade.rb'
- 'lib/puppet/ffi/windows/structs.rb'
- 'lib/puppet/interface/action.rb'
- 'lib/puppet/module_tool.rb'
- 'lib/puppet/type.rb'
- 'lib/puppet/type/file.rb'
- 'lib/puppet/type/package.rb'
- 'lib/puppet/util/windows/service.rb'
# This cop supports safe auto-correction (--auto-correct).
Style/ExplicitBlockArgument:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Enabled: false
# Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Applying the safe auto-correct results in util_spec failures.
Style/GlobalStdStream:
Exclude:
- 'lib/puppet/application/apply.rb'
- 'lib/puppet/application/script.rb'
- 'lib/puppet/face/epp.rb'
- 'lib/puppet/face/parser.rb'
- 'lib/puppet/util.rb'
- 'lib/puppet/util/command_line.rb'
- 'lib/puppet/util/windows/daemon.rb'
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'lib/puppet/external/dot.rb'
- 'lib/puppet/test/test_helper.rb'
- 'lib/puppet/util/logging.rb'
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either
Style/HashSyntax:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/IfUnlessModifier:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# The auto-correct function introduces testing errors in the evaluating_parser_spec
Style/IfWithSemicolon:
Exclude:
- 'lib/puppet/pops/parser/evaluating_parser.rb'
# This cop requires significant changes to testing, will require its own effort
Style/ImplicitRuntimeError:
Enabled: false
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: InverseMethods, InverseBlocks.
Style/InverseMethods:
Exclude:
- 'lib/puppet/face/catalog/select.rb'
- 'lib/puppet/graph/relationship_graph.rb'
- 'lib/puppet/parser/compiler.rb'
- 'lib/puppet/pops/loader/loader_paths.rb'
- 'lib/puppet/pops/types/ruby_generator.rb'
- 'lib/puppet/pops/validation.rb'
- 'lib/puppet/pops/validation/checker4_0.rb'
- 'lib/puppet/provider/package/pkg.rb'
- 'lib/puppet/provider/user/user_role_add.rb'
- 'lib/puppet/reference/providers.rb'
- 'lib/puppet/type/file.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: IgnoredMethods.
Style/MethodCallWithoutArgsParentheses:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses:
Exclude:
- 'lib/puppet/pops/evaluator/evaluator_impl.rb'
- 'lib/puppet/pops/evaluator/relationship_operator.rb'
- 'lib/puppet/pops/issues.rb'
- 'lib/puppet/pops/label_provider.rb'
- 'lib/puppet/pops/model/factory.rb'
- 'lib/puppet/pops/model/model_label_provider.rb'
- 'lib/puppet/pops/model/model_tree_dumper.rb'
- 'lib/puppet/pops/model/tree_dumper.rb'
- 'lib/puppet/pops/parser/interpolation_support.rb'
- 'lib/puppet/pops/parser/parser_support.rb'
- 'lib/puppet/pops/utils.rb'
- 'lib/puppet/pops/validation.rb'
- 'lib/puppet/pops/validation/validator_factory_4_0.rb'
- 'lib/puppet/util/command_line/trollop.rb'
Style/MissingRespondToMissing:
Exclude:
- 'lib/puppet/module_tool/metadata.rb'
- 'lib/puppet/parser/scope.rb'
- 'lib/puppet/settings/alias_setting.rb'
- 'lib/puppet/util/command_line/trollop.rb'
- 'lib/puppet/util/feature.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: separated, grouped
Style/MixinGrouping:
Exclude:
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
Style/MultilineBlockChain:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/MultilineIfModifier:
Exclude:
- 'lib/puppet/face/config.rb'
- 'lib/puppet/module_tool/applications/installer.rb'
- 'lib/puppet/module_tool/shared_behaviors.rb'
- 'lib/puppet/network/http/api/indirected_routes.rb'
- 'lib/puppet/pops/evaluator/access_operator.rb'
- 'lib/puppet/pops/loader/task_instantiator.rb'
- 'lib/puppet/pops/model/model_tree_dumper.rb'
- 'lib/puppet/provider/package/windows.rb'
- 'lib/puppet/provider/service/upstart.rb'
- 'lib/puppet/resource/catalog.rb'
- 'lib/puppet/type/file/content.rb'
- 'lib/puppet/type/user.rb'
- 'lib/puppet/util/execution.rb'
- 'lib/puppet/util/windows/com.rb'
# This cop supports safe auto-correction (--auto-correct).
Style/MultilineIfThen:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: keyword, braces
Style/MultilineMemoization:
Exclude:
- 'lib/puppet/application.rb'
- 'lib/puppet/pops/types/types.rb'
- 'lib/puppet/type.rb'
# This cop supports safe auto-correction (--auto-correct).
Style/MultilineTernaryOperator:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/MultilineWhenThen:
Exclude:
- 'lib/puppet/graph/simple_graph.rb'
- 'lib/puppet/interface/documentation.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowMethodComparison.
Style/MultipleComparison:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: literals, strict
Style/MutableConstant:
Enabled: false
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: EnforcedStyle, IgnoredMethods.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Enabled: false
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: only_raise, only_fail, semantic
Style/SignalException:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
Exclude:
- 'lib/puppet/ffi/windows/api_types.rb'
- 'lib/puppet/file_system/memory_file.rb'
- 'lib/puppet/graph/simple_graph.rb'
- 'lib/puppet/interface/action.rb'
- 'lib/puppet/parser/resource.rb'
- 'lib/puppet/pops/model/factory.rb'
- 'lib/puppet/pops/model/model_label_provider.rb'
- 'lib/puppet/pops/types/type_formatter.rb'
- 'lib/puppet/provider/nameservice/directoryservice.rb'
- 'lib/puppet/provider/service/freebsd.rb'
- 'lib/puppet/type.rb'
- 'lib/puppet/util/command_line/trollop.rb'
- 'lib/puppet/util/metaid.rb'
- 'lib/puppet/util/windows/com.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/StderrPuts:
Exclude:
- 'bin/puppet'
- 'lib/puppet/application/agent.rb'
- 'lib/puppet/application/apply.rb'
- 'lib/puppet/application/describe.rb'
- 'lib/puppet/application/device.rb'
- 'lib/puppet/application/face_base.rb'
- 'lib/puppet/application/filebucket.rb'
- 'lib/puppet/application/script.rb'
- 'lib/puppet/face/config.rb'
- 'lib/puppet/reference/type.rb'
- 'lib/puppet/util.rb'
- 'lib/puppet/util/command_line/trollop.rb'
- 'lib/puppet/util/rdoc/generators/puppet_generator.rb'
- 'lib/puppet/util/reference.rb'
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowNamedUnderscoreVariables.
Style/TrailingUnderscoreVariable:
Exclude:
- 'lib/puppet/indirector/file_server.rb'
- 'lib/puppet/module/plan.rb'
- 'lib/puppet/pops/evaluator/closure.rb'
- 'lib/puppet/pops/parser/parser_support.rb'
- 'lib/puppet/provider/group/windows_adsi.rb'
- 'lib/puppet/provider/package/zypper.rb'
- 'lib/puppet/provider/service/launchd.rb'
- 'lib/puppet/provider/user/pw.rb'
- 'lib/puppet/provider/user/windows_adsi.rb'
- 'lib/puppet/resource/type.rb'
- 'lib/puppet/util/windows/registry.rb'
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
# 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
Style/TrivialAccessors:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/WhenThen:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
Style/WhileUntilModifier:
Exclude:
- 'lib/puppet/parser/scope.rb'
- 'lib/puppet/pops/parser/interpolation_support.rb'
- 'lib/puppet/pops/parser/locator.rb'
- 'lib/puppet/pops/parser/pn_parser.rb'
- 'lib/puppet/pops/types/p_object_type.rb'
- 'lib/puppet/util/windows/process.rb'
# This cop supports unsafe auto-correction (--auto-correct-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
Style/YodaCondition:
Enabled: false
# This cop supports unsafe auto-correction (--auto-correct-all).
Style/ZeroLengthPredicate:
Enabled: false
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 582
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。