Repository Analysis

swagger-api/swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.

0.4 Likely human-written View on GitHub
0.4
Adjusted Score
0.4
Raw Score
100%
Time Factor
2026-05-28
Last Push
28,818
Stars
JavaScript
Language
113,128
Lines of Code
924
Files
34
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 4LOW 30

Pattern Findings

34 matches across 5 categories. Click a row to expand file-level details.

Fake / Example Data9 hits · 11 pts
SeverityFileLineSnippet
LOW…st/unit/core/plugins/json-schema-2020-12-samples/fn.js21 "user@example.com"
LOW…st/unit/core/plugins/json-schema-2020-12-samples/fn.js233 ).toStrictEqual('{"name": "John Doe"}')
LOW…ress/static/documents/bugs/7996-tags-externalDocs.yaml7 description: "Foo: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
LOW…ress/static/documents/bugs/7996-tags-externalDocs.yaml7 description: "Foo: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
LOW…ress/static/documents/bugs/7996-tags-externalDocs.yaml13 description: "Bar: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
LOW…ress/static/documents/bugs/7996-tags-externalDocs.yaml13 description: "Bar: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
LOW…ins/json-schema-2020-12-samples/fn/generators/email.js4const emailGenerator = () => "user@example.com"
LOW…20-12-samples/fn/generators/media-types/application.js9 "application/ld+json": () => '{"name": "John Doe"}',
LOWsrc/core/plugins/json-schema-5-samples/fn/index.js30 "string_email": () => "user@example.com",
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippet
LOWtest/unit/core/plugins/spec/selectors.js341
LOWtest/e2e-cypress/support/commands.js1// ***********************************************
LOWtest/e2e-cypress/support/commands.js21// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
LOWtest/e2e-cypress/support/e2e.js1// ***********************************************************
LOW.claude/skills/add-oas-support.md1241function afterLoad({ fn, getSystem }) {
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply need
LOWsrc/core/system.js501
LOWsrc/core/plugins/json-schema-5-samples/fn/index.js221 type = "object"
LOWsrc/core/components/initialized-input.jsx1// This component provides an interface that feels like an uncontrolled input
LOWsrc/style/_dark-mode.scss41 #6a6a6a,
LOWsrc/style/_dark-mode.scss61 patch: (
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippet
LOWtest/e2e-cypress/support/helpers/multiple-examples.js7function ParameterPrimitiveTestCases({
LOWtest/e2e-cypress/support/helpers/multiple-examples.js166function RequestBodyPrimitiveTestCases({
LOWtest/e2e-cypress/support/helpers/multiple-examples.js581function ResponsePrimitiveTestCases({
LOWtest/e2e-cypress/e2e/features/deep-linking.cy.js193function OperationDeeplinkTestFactory({ baseUrl, elementToGet, correctElementId, correctFragment, correctHref }) {
LOWsrc/core/system.js16function createStoreWithMiddleware(rootReducer, initialState, getSystem) {
LOW…err/error-transformers/transformers/parameter-oneof.js30function createTailoredParameterError(err, jsSpec) {
LOWsrc/core/plugins/oas3/selectors.js27function validateRequestBodyIsRequired(selector) {
LOWsrc/core/utils/index.js238export function extractFileNameFromContentDispositionHeader(value){
LOWsrc/core/utils/index.js677export function getAcceptControllingResponse(responses) {
LOWsrc/core/utils/jsonParse.js11export function getKnownSyntaxHighlighterLanguage(val) {
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMtest/unit/core/plugins/spec/assets/petstore.json4 "description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](h
MEDIUM…st/e2e-cypress/static/documents/bugs/5043/swagger.yaml3 description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io]
MEDIUMtest/e2e-selenium/static/test-specs/petstore.json4 "description":"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMflavors/swagger-ui-react/release/run.sh21# Create a releasable package manifest