.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-01-08 20:12:30 UTC using RuboCop version 1.59.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.
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Performance/RegexpMatch:
Exclude:
- 'install.rb'
# Offense count: 70
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Enabled: false
# Need to remove logger class variables
Style/ClassVars:
Exclude:
- 'lib/facter/framework/logging/logger.rb'
- 'spec/custom_facts/puppetlabs_spec/files.rb'
- 'spec/facter/util/file_helper_spec.rb'
- 'spec/framework/core/fact/internal/internal_fact_manager_spec.rb'
- 'spec/framework/logging/logger_spec.rb'
Style/Documentation:
Exclude:
- 'lib/facter.rb' # should be documented
- 'lib/facter/config.rb' # should be documented
- 'lib/facter/custom_facts/**/*' # should be documented
- 'lib/facter/facts/**/*' # don't care
- 'lib/facter/framework/**/*' # should be documented
- 'lib/facter/models/**/*' # should be documented
- 'lib/facter/resolvers/**/*' # don't care
- 'lib/facter/util/**/*'
- 'lib/facter/version.rb' # auto updated
- 'spec/**/*'
- 'spec_integration/**/*'
- 'scripts/*'
- 'install.rb'
# While it would be preferable to use a keyword argument for the proxy setting in #get_request and #put_request, if we
# add keyword arguments to those methods Ruby < 3 misinterprets earlier positional arguments as a keyword arguments.
# This is because those positional arguments are hashes that use symbols as keys.
# TODO: revisit this after we drop Ruby < 3 support.
Style/OptionalBooleanParameter:
Exclude:
- 'lib/facter/util/resolvers/http.rb'