3 Star 3 Fork 1

Gitee 极速下载/Puppet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/puppetlabs/puppet
克隆/下载
.rubocop_todo.yml 25.41 KB
一键复制 编辑 原始数据 按行查看 历史
Aria Li 提交于 2024-03-08 11:29 . (PUP-11993) Style/WordArray
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/puppet.git
git@gitee.com:mirrors/puppet.git
mirrors
puppet
Puppet
main

搜索帮助