Feat/component sync merge - #742
Quality Gate failed
Failed conditions
D Reliability Rating on New Code (required ≥ A)
E Security Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
Check warning on line 206 in spec/javascript/components/memberships/MembershipsTable.spec.js
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(newMemberBtns).toHaveLength(0)" over this generic assertion for better reporting; it works on any object with a numeric length property.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvIqS1IsCbTKF4Mr&open=AZ9YyvIqS1IsCbTKF4Mr&pullRequest=742
Check warning on line 170 in app/javascript/components/shared/ControlsSidepanels.vue
sonarqubecloud / SonarCloud Code Analysis
The "close-panel" event has been triggered but not declared on `emits` option.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvuES1IsCbTKF4SZ&open=AZ9YyvuES1IsCbTKF4SZ&pullRequest=742
Check warning on line 335 in app/javascript/components/shared/ControlsCommandBar.vue
sonarqubecloud / SonarCloud Code Analysis
The "spreadsheet-updated" event has been triggered but not declared on `emits` option.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvuzS1IsCbTKF4Sl&open=AZ9YyvuzS1IsCbTKF4Sl&pullRequest=742
Check warning on line 229 in spec/javascript/components/rules/RuleSatisfactions.spec.js
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(removeBtns).toHaveLength(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvEbS1IsCbTKF4MD&open=AZ9YyvEbS1IsCbTKF4MD&pullRequest=742
Check failure on line 17 in spec/requests/users/unlocks_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "/users/unlock" 3 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvSxS1IsCbTKF4OQ&open=AZ9YyvSxS1IsCbTKF4OQ&pullRequest=742
Check failure on line 9 in spec/requests/api/auth_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "S3cure!#Pass999" 3 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvTvS1IsCbTKF4OZ&open=AZ9YyvTvS1IsCbTKF4OZ&pullRequest=742
Check warning on line 75 in spec/javascript/components/rules/forms/DisaRuleDescriptionForm.spec.js
sonarqubecloud / SonarCloud Code Analysis
Replace these 3 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvCDS1IsCbTKF4Lx&open=AZ9YyvCDS1IsCbTKF4Lx&pullRequest=742
Check warning on line 226 in app/javascript/components/triage/TriageRuleSidebar.vue
sonarqubecloud / SonarCloud Code Analysis
The "select" event has been triggered but not declared on `emits` option.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyv1DS1IsCbTKF4T8&open=AZ9Yyv1DS1IsCbTKF4T8&pullRequest=742
Check warning on line 49 in app/javascript/components/shared/CommentThread.vue
sonarqubecloud / SonarCloud Code Analysis
The "reply" event has been triggered but not declared on `emits` option.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvvmS1IsCbTKF4St&open=AZ9YyvvmS1IsCbTKF4St&pullRequest=742
Check failure on line 22 in spec/requests/helpful_errors_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "/projects" 3 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvVIS1IsCbTKF4Oj&open=AZ9YyvVIS1IsCbTKF4Oj&pullRequest=742
Check warning on line 36 in spec/contracts/openapi_contract_validation_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Use a specific exception class instead of raising a string literal.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvbgS1IsCbTKF4Pb&open=AZ9YyvbgS1IsCbTKF4Pb&pullRequest=742
Check warning on line 63 in spec/javascript/components/triage/TriageRuleSidebar.spec.js
sonarqubecloud / SonarCloud Code Analysis
Prefer "expect(headers).toHaveLength(3)" over this generic assertion for better reporting; it works on any object with a numeric length property.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvKHS1IsCbTKF4M-&open=AZ9YyvKHS1IsCbTKF4M-&pullRequest=742
Check failure on line 137 in spec/requests/reviews_bulk_operations_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "/reviews/merge" 5 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvYDS1IsCbTKF4PF&open=AZ9YyvYDS1IsCbTKF4PF&pullRequest=742
Check failure on line 124 in spec/requests/sessions_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "Not Found" 3 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvXKS1IsCbTKF4O1&open=AZ9YyvXKS1IsCbTKF4O1&pullRequest=742
Check failure on line 26 in spec/lib/oidc_provider_registry_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "https://idp.int.identitysandbox.gov" 4 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyu_OS1IsCbTKF4K4&open=AZ9Yyu_OS1IsCbTKF4K4&pullRequest=742
Check warning on line 167 in spec/javascript/components/rules/RulesCodeEditorView.spec.js
sonarqubecloud / SonarCloud Code Analysis
Replace these 4 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvDsS1IsCbTKF4L7&open=AZ9YyvDsS1IsCbTKF4L7&pullRequest=742
Check warning on line 206 in app/javascript/components/rules/RuleReviews.vue
sonarqubecloud / SonarCloud Code Analysis
The "open-reply-composer" event has been triggered but not declared on `emits` option.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvpYS1IsCbTKF4Rq&open=AZ9YyvpYS1IsCbTKF4Rq&pullRequest=742
Check warning on line 36 in app/javascript/packs/api_docs.js
sonarqubecloud / SonarCloud Code Analysis
Use an object spread instead of `Object.assign` eg: `{ ...foo }`.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyveXS1IsCbTKF4P1&open=AZ9YyveXS1IsCbTKF4P1&pullRequest=742
Check warning on line 156 in app/javascript/components/rules/forms/RuleForm.vue
sonarqubecloud / SonarCloud Code Analysis
The "toggle-section-lock" event has been triggered but not declared on `emits` option.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9YyvmFS1IsCbTKF4RG&open=AZ9YyvmFS1IsCbTKF4RG&pullRequest=742
Check failure on line 17 in spec/models/srg_latest_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "Web Server SRG" 5 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyu5XS1IsCbTKF4J-&open=AZ9Yyu5XS1IsCbTKF4J-&pullRequest=742
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "C.ONLY-OURS" 5 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyu3wS1IsCbTKF4Jz&open=AZ9Yyu3wS1IsCbTKF4Jz&pullRequest=742
Check warning on line 117 in app/javascript/components/triage/TriageQueueNav.vue
sonarqubecloud / SonarCloud Code Analysis
Use <option> instead of the option role to ensure accessibility across all devices.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyv1pS1IsCbTKF4UH&open=AZ9Yyv1pS1IsCbTKF4UH&pullRequest=742
Check warning on line 17 in spec/contracts/support/openapi_contract_helpers.rb
sonarqubecloud / SonarCloud Code Analysis
Use a specific exception class instead of raising a string literal.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyvb9S1IsCbTKF4Pe&open=AZ9Yyvb9S1IsCbTKF4Pe&pullRequest=742
Check failure on line 11 in spec/models/concerns/version_sortable_spec.rb
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "<xml/>" 3 times.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyu5rS1IsCbTKF4KC&open=AZ9Yyu5rS1IsCbTKF4KC&pullRequest=742
Check warning on line 71 in app/javascript/composables/useRuleNavigation.js
sonarqubecloud / SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=mitre_vulcan&issues=AZ9Yyv63S1IsCbTKF4Us&open=AZ9Yyv63S1IsCbTKF4Us&pullRequest=742