puppetlabs/facter-ng

View on GitHub
.rubocop_todo.yml

Summary

Maintainability
Test Coverage
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 1000`
# on 2020-06-11 15:48:25 +0300 using RuboCop version 0.81.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: 82
# Configuration parameters: CustomTransform, IgnoreMethods.
RSpec/FilePath:
  Exclude:
    - 'spec/custom_facts/core/aggregate_spec.rb'
    - 'spec/custom_facts/core/directed_graph_spec.rb'
    - 'spec/custom_facts/core/execution/fact_manager_spec.rb'
    - 'spec/custom_facts/core/execution/posix_spec.rb'
    - 'spec/custom_facts/core/execution/windows_spec.rb'
    - 'spec/custom_facts/core/execution_spec.rb'
    - 'spec/custom_facts/core/logging_spec.rb'
    - 'spec/custom_facts/core/resolvable_spec.rb'
    - 'spec/custom_facts/core/suitable_spec.rb'
    - 'spec/custom_facts/util/collection_spec.rb'
    - 'spec/custom_facts/util/config_spec.rb'
    - 'spec/custom_facts/util/confine_spec.rb'
    - 'spec/custom_facts/util/directory_loader_spec.rb'
    - 'spec/custom_facts/util/fact_spec.rb'
    - 'spec/custom_facts/util/loader_spec.rb'
    - 'spec/custom_facts/util/normalization_spec.rb'
    - 'spec/custom_facts/util/parser_spec.rb'
    - 'spec/custom_facts/util/resolution_spec.rb'
    - 'spec/facter/facts_utils/uptime_parser_spec.rb'
    - 'spec/facter/facts_utils/windows_release_finder_spec.rb'
    - 'spec/facter/model/fact_collection_spec.rb'
    - 'spec/facter/model/resolved_fact_spec.rb'
    - 'spec/facter/resolvers/aio_agent_version_spec.rb'
    - 'spec/facter/resolvers/aix/architecture_resolver_spec.rb'
    - 'spec/facter/resolvers/aix/ffi_helper_spec.rb'
    - 'spec/facter/resolvers/aix/hardware_resolver_spec.rb'
    - 'spec/facter/resolvers/bsd/ffi_helper_spec.rb'
    - 'spec/facter/resolvers/disk_resolver_spec.rb'
    - 'spec/facter/resolvers/dmi_resolver_spec.rb'
    - 'spec/facter/resolvers/filesystems_resolver_spec.rb'
    - 'spec/facter/resolvers/fips_enabled_resolver_spec.rb'
    - 'spec/facter/resolvers/freebsd/ffi_helper_spec.rb'
    - 'spec/facter/resolvers/identity_resolver_spec.rb'
    - 'spec/facter/resolvers/load_averages_resolver_spec.rb'
    - 'spec/facter/resolvers/macosx/dmi_resolver_spec.rb'
    - 'spec/facter/resolvers/memory_resolver_spec.rb'
    - 'spec/facter/resolvers/mountpoints_resolver_spec.rb'
    - 'spec/facter/resolvers/processors_resolver_spec.rb'
    - 'spec/facter/resolvers/redhat_release_resolver_spec.rb'
    - 'spec/facter/resolvers/selinux_resolver_spec.rb'
    - 'spec/facter/resolvers/solaris/solaris_release_resolver_spec.rb'
    - 'spec/facter/resolvers/solaris/solaris_zone_name_spec.rb'
    - 'spec/facter/resolvers/solaris/zone_resolver_spec.rb'
    - 'spec/facter/resolvers/solaris/zpool_resolver_spec.rb'
    - 'spec/facter/resolvers/suse_relese_resolver_spec.rb'
    - 'spec/facter/resolvers/system_profile_resolver_spec.rb'
    - 'spec/facter/resolvers/utils/aix/odm_query_spec.rb'
    - 'spec/facter/resolvers/utils/macosx/filesystem_helper_spec.rb'
    - 'spec/facter/resolvers/utils/windows/win32ole_spec.rb'
    - 'spec/facter/resolvers/windows/dmi_bios_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/dmi_computersystem_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/hardware_architecture_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/identity_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/kernel_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/memory_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/netkvm_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/networking_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/processors_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/product_release_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/system32_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/virtualization_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/win_os_description_resolver_spec.rb'
    - 'spec/framework/config/config_reader_spec.rb'
    - 'spec/framework/config/fact_groups_spec.rb'
    - 'spec/framework/core/fact/external/external_fact_manager_spec.rb'
    - 'spec/framework/core/fact/internal/internal_fact_manager_spec.rb'
    - 'spec/framework/core/fact_loaders/class_discoverer_spec.rb'
    - 'spec/framework/core/fact_loaders/external_fact_loader_spec.rb'
    - 'spec/framework/core/fact_loaders/fact_loader_spec.rb'
    - 'spec/framework/core/fact_loaders/internal_fact_loader_spec.rb'
    - 'spec/framework/core/fact_manager_spec.rb'
    - 'spec/framework/core/options/option_store_spec.rb'
    - 'spec/framework/core/options/options_validator_spec.rb'
    - 'spec/framework/core/options_spec.rb'
    - 'spec/framework/core/session_cache_spec.rb'
    - 'spec/framework/detector/os_hierarchy_spec.rb'
    - 'spec/framework/formatters/fact_formatter_spec.rb'
    - 'spec/framework/formatters/hocon_fact_formatter_spec.rb'
    - 'spec/framework/formatters/json_fact_formatter_spec.rb'
    - 'spec/framework/formatters/legacy_fact_formatter_spec.rb'
    - 'spec/framework/formatters/yaml_fact_formatter_spec.rb'
    - 'spec/framework/utils/utils_spec.rb'

# Offense count: 15
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
  Exclude:
    - 'spec/custom_facts/core/execution/fact_manager_spec.rb'
    - 'spec/custom_facts/util/collection_spec.rb'
    - 'spec/custom_facts/util/confine_spec.rb'

# Offense count: 16
RSpec/LeakyConstantDeclaration:
  Exclude:
    - 'spec/custom_facts/core/resolvable_spec.rb'
    - 'spec/custom_facts/core/suitable_spec.rb'
    - 'spec/custom_facts/shared_contexts/platform.rb'
    - 'spec/custom_facts/util/collection_spec.rb'
    - 'spec/facter/resolvers/macosx/mountpoints_resolver_spec.rb'
    - 'spec/facter/resolvers/utils/windows/network_utils_spec.rb'

# Offense count: 96
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
  Exclude:
    - 'spec/custom_facts/core/aggregate_spec.rb'
    - 'spec/custom_facts/core/execution/fact_manager_spec.rb'
    - 'spec/custom_facts/core/execution/windows_spec.rb'
    - 'spec/custom_facts/core/execution_spec.rb'
    - 'spec/custom_facts/core/logging_spec.rb'
    - 'spec/custom_facts/core/resolvable_spec.rb'
    - 'spec/custom_facts/core/suitable_spec.rb'
    - 'spec/custom_facts/util/collection_spec.rb'
    - 'spec/custom_facts/util/confine_spec.rb'
    - 'spec/custom_facts/util/directory_loader_spec.rb'
    - 'spec/custom_facts/util/fact_spec.rb'
    - 'spec/custom_facts/util/loader_spec.rb'
    - 'spec/custom_facts/util/parser_spec.rb'
    - 'spec/custom_facts/util/resolution_spec.rb'
    - 'spec/facter/facts/aix/os/name_spec.rb'
    - 'spec/facter/facts/aix/os/release_spec.rb'
    - 'spec/facter/facts/macosx/is_virtual_spec.rb'
    - 'spec/facter/facts/macosx/mountpoints_spec.rb'
    - 'spec/facter/facts/macosx/os/architecture_spec.rb'
    - 'spec/facter/facts/macosx/os/family_spec.rb'
    - 'spec/facter/facts/macosx/os/name_spec.rb'
    - 'spec/facter/facts/sles/os/release_spec.rb'
    - 'spec/facter/facts/solaris/os/architecture_spec.rb'
    - 'spec/facter/facts/solaris/os/name_spec.rb'
    - 'spec/facter/facts/solaris/ruby/platform_spec.rb'
    - 'spec/facter/facts/solaris/ruby/sitedir_spec.rb'
    - 'spec/facter/facts/windows/dmi/manufacturer_spec.rb'
    - 'spec/facter/facts/windows/dmi/product/name_spec.rb'
    - 'spec/facter/facts/windows/dmi/product/serial_number_spec.rb'
    - 'spec/facter/facts/windows/dmi/product/uuid_spec.rb'
    - 'spec/facter/facts/windows/identity/user_spec.rb'
    - 'spec/facter/facts/windows/memory/system/available_bytes_spec.rb'
    - 'spec/facter/facts/windows/memory/system/available_spec.rb'
    - 'spec/facter/facts/windows/memory/system/total_bytes_spec.rb'
    - 'spec/facter/facts/windows/memory/system/total_spec.rb'
    - 'spec/facter/facts/windows/os/architecture_spec.rb'
    - 'spec/facter/facts/windows/os/family_spec.rb'
    - 'spec/facter/facts/windows/os/hardware_spec.rb'
    - 'spec/facter/facts/windows/os/name_spec.rb'
    - 'spec/facter/facts/windows/os/windows/edition_id_spec.rb'
    - 'spec/facter/facts/windows/os/windows/installation_type_spec.rb'
    - 'spec/facter/facts/windows/os/windows/product_name_spec.rb'
    - 'spec/facter/facts/windows/os/windows/release_id_spec.rb'
    - 'spec/facter/facts/windows/os/windows/system32_spec.rb'
    - 'spec/facter/facts/windows/processors/count_spec.rb'
    - 'spec/facter/facts/windows/processors/isa_spec.rb'
    - 'spec/facter/facts/windows/processors/physicalcount_spec.rb'
    - 'spec/facter/facts/windows/ruby/platform_spec.rb'
    - 'spec/facter/facts/windows/ruby/sitedir_spec.rb'
    - 'spec/facter/resolvers/utils/aix/odm_query_spec.rb'

# Offense count: 26
RSpec/SubjectStub:
  Exclude:
    - 'spec/custom_facts/core/aggregate_spec.rb'
    - 'spec/custom_facts/core/execution/posix_spec.rb'
    - 'spec/custom_facts/core/execution/windows_spec.rb'
    - 'spec/custom_facts/core/logging_spec.rb'
    - 'spec/custom_facts/core/resolvable_spec.rb'
    - 'spec/custom_facts/util/fact_spec.rb'
    - 'spec/custom_facts/util/resolution_spec.rb'

# Offense count: 134
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
  Exclude:
    - 'spec/custom_facts/core/aggregate_spec.rb'
    - 'spec/custom_facts/util/collection_spec.rb'
    - 'spec/custom_facts/util/confine_spec.rb'
    - 'spec/custom_facts/util/directory_loader_spec.rb'
    - 'spec/custom_facts/util/fact_spec.rb'
    - 'spec/custom_facts/util/resolution_spec.rb'
    - 'spec/facter/facts/aix/ssh_spec.rb'
    - 'spec/facter/facts/macosx/memory/swap/capacity_spec.rb'
    - 'spec/facter/facts/macosx/memory/swap/used_bytes_spec.rb'
    - 'spec/facter/facts/macosx/memory/system/capacity_spec.rb'
    - 'spec/facter/facts/macosx/memory/system/used_bytes_spec.rb'
    - 'spec/facter/facts/windows/dmi/product/serial_number_spec.rb'
    - 'spec/facter/facts/windows/hypervisors/hyperv_spec.rb'
    - 'spec/facter/facts/windows/hypervisors/kvm_spec.rb'
    - 'spec/facter/facts/windows/hypervisors/virtualbox_spec.rb'
    - 'spec/facter/facts/windows/hypervisors/vmware_spec.rb'
    - 'spec/facter/facts/windows/hypervisors/xen_spec.rb'
    - 'spec/facter/facts/windows/identity/privileged_spec.rb'
    - 'spec/facter/facts/windows/memory/system/capacity_spec.rb'
    - 'spec/facter/facts/windows/memory/system/used_bytes_spec.rb'
    - 'spec/facter/facts/windows/networking/interfaces_spec.rb'
    - 'spec/facter/facts/windows/networking/mtu_spec.rb'
    - 'spec/facter/facts/windows/processors/models_spec.rb'
    - 'spec/facter/facts/windows/virtualization/is_virtual_spec.rb'
    - 'spec/facter/facts/windows/virtualization/virtual_spec.rb'
    - 'spec/facter/query_parser_spec.rb'
    - 'spec/facter/resolvers/aix/architecture_resolver_spec.rb'
    - 'spec/facter/resolvers/aix/ffi_helper_spec.rb'
    - 'spec/facter/resolvers/aix/hardware_resolver_spec.rb'
    - 'spec/facter/resolvers/bsd/ffi_helper_spec.rb'
    - 'spec/facter/resolvers/freebsd/ffi_helper_spec.rb'
    - 'spec/facter/resolvers/macosx/mountpoints_resolver_spec.rb'
    - 'spec/facter/resolvers/mountpoints_resolver_spec.rb'
    - 'spec/facter/resolvers/utils/windows/network_utils_spec.rb'
    - 'spec/facter/resolvers/utils/windows/win32ole_spec.rb'
    - 'spec/facter/resolvers/windows/dmi_bios_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/dmi_computersystem_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/hardware_architecture_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/identity_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/kernel_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/memory_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/processors_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/system32_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/uptime_resolver_spec.rb'
    - 'spec/facter/resolvers/windows/win_os_description_resolver_spec.rb'
    - 'spec/framework/core/fact_loaders/external_fact_loader_spec.rb'
    - 'spec/framework/core/fact_loaders/fact_loader_spec.rb'
    - 'spec/framework/core/fact_manager_spec.rb'
    - 'spec/framework/core/session_cache_spec.rb'
    - 'spec/framework/formatters/hocon_fact_formatter_spec.rb'
    - 'spec/framework/formatters/json_fact_formatter_spec.rb'
    - 'spec/mocks/util.rb'