Skip to content

Conversation

@micahlee
Copy link
Contributor

Desired Outcome

Please describe the desired outcome for this PR. Said another way, what was
the original request that resulted in these code changes? Feel free to copy
this information from the connected issue.

Implemented Changes

Describe how the desired outcome above has been achieved with this PR. In
particular, consider:

  • What's changed? Why were these changes made?
  • How should the reviewer approach this PR, especially if manual tests are required?
  • Are there relevant screenshots you can add to the PR description?

Connected Issue/Story

Resolves #[relevant GitHub issue(s), e.g. 76]

CyberArk internal issue link: insert issue ID

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be
merged.

Changelog

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: insert issue ID
  • This PR does not require updating any documentation

Behavior

  • This PR changes product behavior and has been reviewed by a PO, or
  • These changes are part of a larger initiative that will be reviewed later, or
  • No behavior was changed with this PR

Security

  • Security architect has reviewed the changes in this PR,
  • These changes are part of a larger initiative with a separate security review, or
  • There are no security aspects to these changes

@micahlee micahlee force-pushed the policy_lifecycle_extension branch from aeb2a2c to 20c1d58 Compare October 18, 2022 14:39
@micahlee micahlee force-pushed the policy_lifecycle_extension branch from 20c1d58 to 5d7337d Compare October 18, 2022 15:57
# frozen_string_literal: true

# Loads a policy into the database, by operating on a PolicyVersion which has already been created with the policy id,
require 'conjur/extension_repository'

Choose a reason for hiding this comment

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

File orchestrate.rb has 300 lines of code (exceeds 250 allowed). Consider refactoring.

)
end

def call(method, **kwargs)

Choose a reason for hiding this comment

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

Method call has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.


private

def require_extensions

Choose a reason for hiding this comment

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

Method require_extensions has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.


private

def require_extensions

Choose a reason for hiding this comment

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

Method require_extensions has 32 lines of code (exceeds 25 allowed). Consider refactoring.

)
end

def call(method, **kwargs)

Choose a reason for hiding this comment

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

Complex method Conjur::ExtensionRepository::ExtensionSet#call (26.6)

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 5d7337d and detected 15 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 15

The test coverage on the diff in this pull request is 71.8% (50% is the threshold).

This pull request will bring the total coverage in the repository to 89.8% (-1.7% change).

View more on Code Climate.

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.

1 participant