Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update kitchen tests (2) #832

Closed
wants to merge 64 commits into from
Closed

update kitchen tests (2) #832

wants to merge 64 commits into from

Conversation

fanny-jiang
Copy link
Contributor

What does this PR do?

Motivation

Additional Notes

Describe your test plan

Darren Gipson and others added 30 commits December 20, 2024 15:35
…ve legacy :: referencing. Changes for Puppet 8
… bcrypt_pbkdf 1.1 fails to install with Ruby 3.2.5
…ss docs due to space between class declaration and docs

# Ensures that a module is defined
# @param module_name Name of the module
def ensure_module_defined(module_name)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Code Quality Violation

Avoid top-level methods definition. Organize methods in modules/classes. (...read more)

This rule emphasizes the importance of organizing methods within modules or classes in Ruby. In Ruby, it's considered a best practice to wrap methods within classes or modules. This is because it helps in grouping related methods together, which in turn makes the code easier to understand, maintain, and reuse.

Not adhering to this rule can lead to a disorganized codebase, making it hard for other developers to understand and maintain the code. It can also lead to potential name clashes if a method is defined in the global scope.

To avoid violating this rule, always define your methods within a class or a module. For example, instead of writing def some_method; end, you should write class SomeClass def some_method; end end. This not only adheres to the rule but also improves the readability and maintainability of your code.

View in Datadog  Leave us feedback  Documentation

'full' => (RSpec::Support::OS.windows? ? '2019 SP1' : '14.04'),
},
# Get parameters from catalogue.
def get_from_catalogue(type, name, parameter)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Code Quality Violation

Avoid top-level methods definition. Organize methods in modules/classes. (...read more)

This rule emphasizes the importance of organizing methods within modules or classes in Ruby. In Ruby, it's considered a best practice to wrap methods within classes or modules. This is because it helps in grouping related methods together, which in turn makes the code easier to understand, maintain, and reuse.

Not adhering to this rule can lead to a disorganized codebase, making it hard for other developers to understand and maintain the code. It can also lead to potential name clashes if a method is defined in the global scope.

To avoid violating this rule, always define your methods within a class or a module. For example, instead of writing def some_method; end, you should write class SomeClass def some_method; end end. This not only adheres to the rule but also improves the readability and maintainability of your code.

View in Datadog  Leave us feedback  Documentation

@fanny-jiang fanny-jiang force-pushed the fanny/kitchen-tests-merge branch from d0442d7 to 0926931 Compare February 6, 2025 20:48
@fanny-jiang fanny-jiang force-pushed the fanny/kitchen-tests-merge branch from dc7e8d4 to 12d1de4 Compare February 6, 2025 21:35
Gemfile Outdated
# https://github.com/ffi/ffi/issues/1103 (pin only for Ruby >= 2.5 as this version is not compatible below. ffi 1.17 is not compatible with Ruby 2.5: https://github.com/ffi/ffi/issues/1103)
if ruby_version >= Gem::Version.new('2.5')
gem "ffi", "= 1.16.3", platforms: [:ruby]
gem "rexml", '= 3.2.6', require: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Library Vulnerability

rexml → 3.2.6

REXML ReDoS vulnerability (...read more)

View in Datadog  Leave us feedback  Documentation

@fanny-jiang fanny-jiang deleted the fanny/kitchen-tests-merge branch February 11, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants