Skip to content

Conversation

@decyjphr
Copy link
Collaborator

@decyjphr decyjphr commented Dec 27, 2024

Pull and test #683

  • resolves Updated according to lint rules #683
  • Also add code so that rulesets of sourcetype=enterprise is not handled as org level rulesets
  • Also add code so that security manager teams are not handled as regular teams

Gramatus and others added 7 commits September 17, 2024 20:19
Linting failed in deploymentConfig.js due to the static fields. Eslint supports this from ecmaVersion 13.
The full test suite failed because it tried to lint the tests, while the running linter did not do the same. Enabling linting gave errors due to jest having undef stuff, but overriding these files for jest env keeps the linting without these errors.
Removed to stop having eslint errors.
Updated with `npx standard --fix`.

Skipping environments.js and environments.test.js as they had a lot of
errors, handling those in a separate commit.
Updated with `npx standard --fix`.
This was done manually as no autofix was available.
Copilot AI review requested due to automatic review settings December 27, 2024 16:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 10 out of 15 changed files in this pull request and generated no comments.

Files not reviewed (5)
  • .eslintrc.json: Language not supported
  • test/unit/lib/plugins/environments.test.js: Evaluated as low risk
  • test/unit/lib/plugins/labels.test.js: Evaluated as low risk
  • test/unit/lib/env.test.js: Evaluated as low risk
  • test/unit/index.test.js: Evaluated as low risk
Comments suppressed due to low confidence (2)

lib/plugins/environments.js:86

  • The variable name existing_custom_branch_policies should be renamed to existingCustomBranchPolicies for consistency.
let existing_custom_branch_policies = existing.deployment_branch_policy === null ? null : existing.deployment_branch_policy.custom_branch_policies

lib/plugins/environments.js:90

  • The variable name attrs_custom_branch_policies should be renamed to attrsCustomBranchPolicies for consistency.
let attrs_custom_branch_policies = attrs.deployment_branch_policy === null ? null : attrs.deployment_branch_policy.custom_branch_policies

Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more

@decyjphr decyjphr merged commit 87beedc into main-enterprise Dec 28, 2024
5 checks passed
@decyjphr decyjphr deleted the decyjphr/pr-683 branch December 28, 2024 03:16
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.

3 participants