data-test="only-one-branch-like" | data-test="only-one-branch-like" | ||||
links={[ | links={[ | ||||
{ | { | ||||
href: '/branches/overview/', | |||||
href: '/analyzing-source-code/branches/branch-analysis/', | |||||
label: translate('branch_like_navigation.only_one_branch.documentation'), | label: translate('branch_like_navigation.only_one_branch.documentation'), | ||||
}, | }, | ||||
{ | { | ||||
href: '/analysis/pull-request/', | |||||
href: '/analyzing-source-code/pull-request-analysis', | |||||
label: translate('branch_like_navigation.only_one_branch.pr_analysis'), | label: translate('branch_like_navigation.only_one_branch.pr_analysis'), | ||||
}, | }, | ||||
{ | { |
links={ | links={ | ||||
Array [ | Array [ | ||||
Object { | Object { | ||||
"href": "/branches/overview/", | |||||
"href": "/analyzing-source-code/branches/branch-analysis/", | |||||
"label": "branch_like_navigation.only_one_branch.documentation", | "label": "branch_like_navigation.only_one_branch.documentation", | ||||
}, | }, | ||||
Object { | Object { | ||||
"href": "/analysis/pull-request/", | |||||
"href": "/analyzing-source-code/pull-request-analysis", | |||||
"label": "branch_like_navigation.only_one_branch.pr_analysis", | "label": "branch_like_navigation.only_one_branch.pr_analysis", | ||||
}, | }, | ||||
Object { | Object { |
)} | )} | ||||
<p className="page-description"> | <p className="page-description"> | ||||
{translate('background_tasks.page.description')} | {translate('background_tasks.page.description')} | ||||
<DocLink className="spacer-left" to="/analysis/background-tasks/"> | |||||
<DocLink className="spacer-left" to="/analyzing-source-code/background-tasks/"> | |||||
{translate('learn_more')} | {translate('learn_more')} | ||||
</DocLink> | </DocLink> | ||||
</p> | </p> |
id="project_baseline.page.description" | id="project_baseline.page.description" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/project-administration/new-code-period/"> | |||||
<DocLink to="/project-administration/defining-new-code/"> | |||||
{translate('project_baseline.page.description.link')} | {translate('project_baseline.page.description.link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/project-administration/new-code-period/" | |||||
to="/project-administration/defining-new-code/" | |||||
> | > | ||||
project_baseline.page.description.link | project_baseline.page.description.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/project-administration/new-code-period/" | |||||
to="/project-administration/defining-new-code/" | |||||
> | > | ||||
project_baseline.page.description.link | project_baseline.page.description.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
id="settings.new_code_period.description" | id="settings.new_code_period.description" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/project-administration/new-code-period/"> | |||||
<DocLink to="/project-administration/defining-new-code/"> | |||||
{translate('learn_more')} | {translate('learn_more')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/project-administration/new-code-period/" | |||||
to="/project-administration/defining-new-code/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/github-integration/" | |||||
to="/devops-platform-integration/github-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/github-integration/" | |||||
to="/devops-platform-integration/github-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/azuredevops-integration/" | |||||
to="/devops-platform-integration/azure-devops-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/azuredevops-integration/" | |||||
to="/devops-platform-integration/azure-devops-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/bitbucket-cloud-integration/" | |||||
to="/devops-platform-integration/bitbucket-integration/bitbucket-cloud-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/bitbucket-cloud-integration/" | |||||
to="/devops-platform-integration/bitbucket-integration/bitbucket-cloud-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/bitbucket-integration/" | |||||
to="/devops-platform-integration/bitbucket-integration/bitbucket-server-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/github-integration/" | |||||
to="/devops-platform-integration/github-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/github-integration/" | |||||
to="/devops-platform-integration/github-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/gitlab-integration/" | |||||
to="/devops-platform-integration/gitlab-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/gitlab-integration/" | |||||
to="/devops-platform-integration/gitlab-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"doc_link": <withAppStateContext(DocLink) | "doc_link": <withAppStateContext(DocLink) | ||||
to="/analysis/azuredevops-integration/" | |||||
to="/devops-platform-integration/azure-devops-integration/" | |||||
> | > | ||||
learn_more | learn_more | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
"api_documentation": [], | "api_documentation": [], | ||||
"background_tasks": [ | "background_tasks": [ | ||||
{ | { | ||||
"link": "/analysis/background-tasks/", | |||||
"link": "/analyzing-source-code/background-tasks/", | |||||
"text": "About Background Tasks" | "text": "About Background Tasks" | ||||
} | } | ||||
], | ], | ||||
"marketplace": [], | "marketplace": [], | ||||
"overview": [ | "overview": [ | ||||
{ | { | ||||
"link": "/analysis/pull-request/", | |||||
"link": "/analyzing-source-code/pull-request-analysis", | |||||
"text": "Enable Pull Request Decoration" | "text": "Enable Pull Request Decoration" | ||||
}, | }, | ||||
{ | { | ||||
"link": "/analysis/ci-integration-overview/", | |||||
"link": "/analyzing-source-code/ci-integration/overview/", | |||||
"text": "Set up CI analysis" | "text": "Set up CI analysis" | ||||
}, | }, | ||||
{ | { | ||||
"text": "Clean as You Code" | "text": "Clean as You Code" | ||||
}, | }, | ||||
{ | { | ||||
"link": "/user-guide/connected-mode/", | |||||
"link": "/user-guide/sonarlint-connected-mode/", | |||||
"text": "SonarLint Connected Mode" | "text": "SonarLint Connected Mode" | ||||
} | } | ||||
], | ], | ||||
"project_activity": [], | "project_activity": [], | ||||
"project_baseline": [ | "project_baseline": [ | ||||
{ | { | ||||
"link": "/project-administration/new-code-period/", | |||||
"link": "/project-administration/defining-new-code/", | |||||
"text": "Defining New Code" | "text": "Defining New Code" | ||||
} | } | ||||
], | ], | ||||
"text": "Clean as You Code" | "text": "Clean as You Code" | ||||
}, | }, | ||||
{ | { | ||||
"link": "/analysis/pull-request/", | |||||
"link": "/analyzing-source-code/pull-request-analysis", | |||||
"text": "Analyzing Pull Requests" | "text": "Analyzing Pull Requests" | ||||
}, | }, | ||||
{ | { | ||||
"link": "/user-guide/connected-mode/", | |||||
"link": "/user-guide/sonarlint-connected-mode/", | |||||
"text": "SonarLint connected mode" | "text": "SonarLint connected mode" | ||||
} | } | ||||
], | ], |
content={translate('rules.status', ruleStatus, 'help')} | content={translate('rules.status', ruleStatus, 'help')} | ||||
links={[ | links={[ | ||||
{ | { | ||||
href: '/user-guide/rules/', | |||||
href: '/user-guide/rules/overview/', | |||||
label: translateWithParameters('see_x', translate('rules')), | label: translateWithParameters('see_x', translate('rules')), | ||||
}, | }, | ||||
]} | ]} |
defaultMessage={translate('onboarding.tutorial.cfamilly.compilation_database_info')} | defaultMessage={translate('onboarding.tutorial.cfamilly.compilation_database_info')} | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/languages/cfamily/"> | |||||
<DocLink to="/analyzing-source-code/languages/c-family/"> | |||||
{translate('onboarding.tutorial.cfamilly.compilation_database_info.link')} | {translate('onboarding.tutorial.cfamilly.compilation_database_info.link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), | ||||
defaultMessage={translate('onboarding.tutorial.cfamilly.speed_caching')} | defaultMessage={translate('onboarding.tutorial.cfamilly.speed_caching')} | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/languages/cfamily/#analysis-cache"> | |||||
<DocLink to="/analyzing-source-code/languages/c-family/#analysis-cache"> | |||||
{translate('onboarding.tutorial.cfamilly.speed_caching.link')} | {translate('onboarding.tutorial.cfamilly.speed_caching.link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
{translate('onboarding.token.text.user_account')} | {translate('onboarding.token.text.user_account')} | ||||
</Link> | </Link> | ||||
), | ), | ||||
doc_link: <DocLink to="/user-guide/user-token/">{translate('documentation')}</DocLink>, | |||||
doc_link: ( | |||||
<DocLink to="/user-guide/user-account/generating-and-using-tokens/"> | |||||
{translate('documentation')} | |||||
</DocLink> | |||||
), | |||||
}} | }} | ||||
/> | /> | ||||
</Alert> | </Alert> |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/languages/cfamily/" | |||||
to="/analyzing-source-code/languages/c-family/" | |||||
> | > | ||||
onboarding.tutorial.cfamilly.compilation_database_info.link | onboarding.tutorial.cfamilly.compilation_database_info.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/languages/cfamily/#analysis-cache" | |||||
to="/analyzing-source-code/languages/c-family/#analysis-cache" | |||||
> | > | ||||
onboarding.tutorial.cfamilly.speed_caching.link | onboarding.tutorial.cfamilly.speed_caching.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
id="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide" | id="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/jenkins/"> | |||||
<DocLink to="/analyzing-source-code/ci-integration/jenkins-integration/"> | |||||
{translate('onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link')} | {translate('onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/jenkins/" | |||||
to="/analyzing-source-code/ci-integration/jenkins-integration/" | |||||
> | > | ||||
onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link | onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/jenkins/" | |||||
to="/analyzing-source-code/ci-integration/jenkins-integration/" | |||||
> | > | ||||
onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link | onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/jenkins/" | |||||
to="/analyzing-source-code/ci-integration/jenkins-integration/" | |||||
> | > | ||||
onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link | onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide.link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
id="onboarding.analysis.auto_refresh_after_analysis.check_these_links" | id="onboarding.analysis.auto_refresh_after_analysis.check_these_links" | ||||
values={{ | values={{ | ||||
link_branches: ( | link_branches: ( | ||||
<DocLink to="/branches/overview/"> | |||||
<DocLink to="/analyzing-source-code/branches/branch-analysis/"> | |||||
{translate( | {translate( | ||||
'onboarding.analysis.auto_refresh_after_analysis.check_these_links.branches' | 'onboarding.analysis.auto_refresh_after_analysis.check_these_links.branches' | ||||
)} | )} | ||||
</DocLink> | </DocLink> | ||||
), | ), | ||||
link_pr_analysis: ( | link_pr_analysis: ( | ||||
<DocLink to="/analysis/pull-request/"> | |||||
<DocLink to="/analyzing-source-code/pull-request-analysis"> | |||||
{translate( | {translate( | ||||
'onboarding.analysis.auto_refresh_after_analysis.check_these_links.pr_analysis' | 'onboarding.analysis.auto_refresh_after_analysis.check_these_links.pr_analysis' | ||||
)} | )} |
content={translate('onboarding.token.name.help')} | content={translate('onboarding.token.name.help')} | ||||
links={[ | links={[ | ||||
{ | { | ||||
href: '/user-guide/user-token/', | |||||
href: '/user-guide/user-account/generating-and-using-tokens/', | |||||
label: translate('learn_more'), | label: translate('learn_more'), | ||||
}, | }, | ||||
]} | ]} | ||||
content={translate('onboarding.token.use_existing_token.help')} | content={translate('onboarding.token.use_existing_token.help')} | ||||
links={[ | links={[ | ||||
{ | { | ||||
href: '/user-guide/user-token/', | |||||
href: '/user-guide/user-account/generating-and-using-tokens/', | |||||
label: translate('learn_more'), | label: translate('learn_more'), | ||||
}, | }, | ||||
]} | ]} |
values={ | values={ | ||||
Object { | Object { | ||||
"link_branches": <withAppStateContext(DocLink) | "link_branches": <withAppStateContext(DocLink) | ||||
to="/branches/overview/" | |||||
to="/analyzing-source-code/branches/branch-analysis/" | |||||
> | > | ||||
onboarding.analysis.auto_refresh_after_analysis.check_these_links.branches | onboarding.analysis.auto_refresh_after_analysis.check_these_links.branches | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
"link_pr_analysis": <withAppStateContext(DocLink) | "link_pr_analysis": <withAppStateContext(DocLink) | ||||
to="/analysis/pull-request/" | |||||
to="/analyzing-source-code/pull-request-analysis" | |||||
> | > | ||||
onboarding.analysis.auto_refresh_after_analysis.check_these_links.pr_analysis | onboarding.analysis.auto_refresh_after_analysis.check_these_links.pr_analysis | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link_branches": <withAppStateContext(DocLink) | "link_branches": <withAppStateContext(DocLink) | ||||
to="/branches/overview/" | |||||
to="/analyzing-source-code/branches/branch-analysis/" | |||||
> | > | ||||
onboarding.analysis.auto_refresh_after_analysis.check_these_links.branches | onboarding.analysis.auto_refresh_after_analysis.check_these_links.branches | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
"link_pr_analysis": <withAppStateContext(DocLink) | "link_pr_analysis": <withAppStateContext(DocLink) | ||||
to="/analysis/pull-request/" | |||||
to="/analyzing-source-code/pull-request-analysis" | |||||
> | > | ||||
onboarding.analysis.auto_refresh_after_analysis.check_these_links.pr_analysis | onboarding.analysis.auto_refresh_after_analysis.check_these_links.pr_analysis | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
links={ | links={ | ||||
Array [ | Array [ | ||||
Object { | Object { | ||||
"href": "/user-guide/user-token/", | |||||
"href": "/user-guide/user-account/generating-and-using-tokens/", | |||||
"label": "learn_more", | "label": "learn_more", | ||||
}, | }, | ||||
] | ] | ||||
links={ | links={ | ||||
Array [ | Array [ | ||||
Object { | Object { | ||||
"href": "/user-guide/user-token/", | |||||
"href": "/user-guide/user-account/generating-and-using-tokens/", | |||||
"label": "learn_more", | "label": "learn_more", | ||||
}, | }, | ||||
] | ] | ||||
links={ | links={ | ||||
Array [ | Array [ | ||||
Object { | Object { | ||||
"href": "/user-guide/user-token/", | |||||
"href": "/user-guide/user-account/generating-and-using-tokens/", | |||||
"label": "learn_more", | "label": "learn_more", | ||||
}, | }, | ||||
] | ] |
id="onboarding.analysis.docs" | id="onboarding.analysis.docs" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/scan/sonarscanner-for-msbuild/"> | |||||
<DocLink to="/analyzing-source-code/scanners/sonarscanner-for-dotnet/"> | |||||
{translate('onboarding.analysis.msbuild.docs_link')} | {translate('onboarding.analysis.msbuild.docs_link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
id="onboarding.analysis.build_wrapper.docs" | id="onboarding.analysis.build_wrapper.docs" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/languages/cfamily/"> | |||||
<DocLink to="/analyzing-source-code/languages/c-family/"> | |||||
{translate('onboarding.analysis.build_wrapper.docs_link')} | {translate('onboarding.analysis.build_wrapper.docs_link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
id="onboarding.analysis.sq_scanner.docs" | id="onboarding.analysis.sq_scanner.docs" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/scan/sonarscanner/"> | |||||
<DocLink to="/analyzing-source-code/scanners/sonarscanner/"> | |||||
{translate('onboarding.analysis.sq_scanner.docs_link')} | {translate('onboarding.analysis.sq_scanner.docs_link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
id="onboarding.analysis.java.gradle.latest_version" | id="onboarding.analysis.java.gradle.latest_version" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/scan/sonarscanner-for-gradle/">{translate('here')}</DocLink> | |||||
<DocLink to="/analyzing-source-code/scanners/sonarscanner-for-gradle/"> | |||||
{translate('here')} | |||||
</DocLink> | |||||
), | ), | ||||
}} | }} | ||||
/> | /> | ||||
id="onboarding.analysis.docs" | id="onboarding.analysis.docs" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/scan/sonarscanner-for-gradle/"> | |||||
<DocLink to="/analyzing-source-code/scanners/sonarscanner-for-gradle/"> | |||||
{translate('onboarding.analysis.java.gradle.docs_link')} | {translate('onboarding.analysis.java.gradle.docs_link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
id="onboarding.analysis.docs" | id="onboarding.analysis.docs" | ||||
values={{ | values={{ | ||||
link: ( | link: ( | ||||
<DocLink to="/analysis/scan/sonarscanner-for-maven/"> | |||||
<DocLink to="/analyzing-source-code/scanners/sonarscanner-for-maven/"> | |||||
{translate('onboarding.analysis.java.maven.docs_link')} | {translate('onboarding.analysis.java.maven.docs_link')} | ||||
</DocLink> | </DocLink> | ||||
), | ), |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner-for-msbuild/" | |||||
to="/analyzing-source-code/scanners/sonarscanner-for-dotnet/" | |||||
> | > | ||||
onboarding.analysis.msbuild.docs_link | onboarding.analysis.msbuild.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/languages/cfamily/" | |||||
to="/analyzing-source-code/languages/c-family/" | |||||
> | > | ||||
onboarding.analysis.build_wrapper.docs_link | onboarding.analysis.build_wrapper.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/languages/cfamily/" | |||||
to="/analyzing-source-code/languages/c-family/" | |||||
> | > | ||||
onboarding.analysis.build_wrapper.docs_link | onboarding.analysis.build_wrapper.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/languages/cfamily/" | |||||
to="/analyzing-source-code/languages/c-family/" | |||||
> | > | ||||
onboarding.analysis.build_wrapper.docs_link | onboarding.analysis.build_wrapper.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner/" | |||||
to="/analyzing-source-code/scanners/sonarscanner/" | |||||
> | > | ||||
onboarding.analysis.sq_scanner.docs_link | onboarding.analysis.sq_scanner.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner/" | |||||
to="/analyzing-source-code/scanners/sonarscanner/" | |||||
> | > | ||||
onboarding.analysis.sq_scanner.docs_link | onboarding.analysis.sq_scanner.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner/" | |||||
to="/analyzing-source-code/scanners/sonarscanner/" | |||||
> | > | ||||
onboarding.analysis.sq_scanner.docs_link | onboarding.analysis.sq_scanner.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner/" | |||||
to="/analyzing-source-code/scanners/sonarscanner/" | |||||
> | > | ||||
onboarding.analysis.sq_scanner.docs_link | onboarding.analysis.sq_scanner.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner/" | |||||
to="/analyzing-source-code/scanners/sonarscanner/" | |||||
> | > | ||||
onboarding.analysis.sq_scanner.docs_link | onboarding.analysis.sq_scanner.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner-for-gradle/" | |||||
to="/analyzing-source-code/scanners/sonarscanner-for-gradle/" | |||||
> | > | ||||
here | here | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, | ||||
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner-for-gradle/" | |||||
to="/analyzing-source-code/scanners/sonarscanner-for-gradle/" | |||||
> | > | ||||
onboarding.analysis.java.gradle.docs_link | onboarding.analysis.java.gradle.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
values={ | values={ | ||||
Object { | Object { | ||||
"link": <withAppStateContext(DocLink) | "link": <withAppStateContext(DocLink) | ||||
to="/analysis/scan/sonarscanner-for-maven/" | |||||
to="/analyzing-source-code/scanners/sonarscanner-for-maven/" | |||||
> | > | ||||
onboarding.analysis.java.maven.docs_link | onboarding.analysis.java.maven.docs_link | ||||
</withAppStateContext(DocLink)>, | </withAppStateContext(DocLink)>, |
export const PROJECT_KEY_MAX_LEN = 400; | export const PROJECT_KEY_MAX_LEN = 400; | ||||
export const ALM_DOCUMENTATION_PATHS = { | export const ALM_DOCUMENTATION_PATHS = { | ||||
[AlmKeys.Azure]: '/analysis/azuredevops-integration/', | |||||
[AlmKeys.BitbucketServer]: '/analysis/bitbucket-integration/', | |||||
[AlmKeys.BitbucketCloud]: '/analysis/bitbucket-cloud-integration/', | |||||
[AlmKeys.GitHub]: '/analysis/github-integration/', | |||||
[AlmKeys.GitLab]: '/analysis/gitlab-integration/', | |||||
[AlmKeys.Azure]: '/devops-platform-integration/azure-devops-integration/', | |||||
[AlmKeys.BitbucketServer]: | |||||
'/devops-platform-integration/bitbucket-integration/bitbucket-server-integration/', | |||||
[AlmKeys.BitbucketCloud]: | |||||
'/devops-platform-integration/bitbucket-integration/bitbucket-cloud-integration/', | |||||
[AlmKeys.GitHub]: '/devops-platform-integration/github-integration/', | |||||
[AlmKeys.GitLab]: '/devops-platform-integration/gitlab-integration/', | |||||
}; | }; | ||||
export const IMPORT_COMPATIBLE_ALMS = [ | export const IMPORT_COMPATIBLE_ALMS = [ |
LOG.warn(" * " + f); | LOG.warn(" * " + f); | ||||
} | } | ||||
LOG.warn("This may lead to missing/broken features in SonarQube"); | LOG.warn("This may lead to missing/broken features in SonarQube"); | ||||
String link = "/documentation/analysis/scm-integration/"; | |||||
String link = "/documentation/analyzing-source-code/scm-integration/"; | |||||
analysisWarnings.addUnique(String.format("Missing blame information for %d %s. This may lead to some features not working correctly. " + | analysisWarnings.addUnique(String.format("Missing blame information for %d %s. This may lead to some features not working correctly. " + | ||||
"Please check the analysis logs and refer to <a href=\"%s\" target=\"_blank\">the documentation</a>.", | "Please check the analysis logs and refer to <a href=\"%s\" target=\"_blank\">the documentation</a>.", | ||||
allFilesToBlame.size(), | allFilesToBlame.size(), |
this.analysisWarnings = analysisWarnings; | this.analysisWarnings = analysisWarnings; | ||||
this.gitIgnoreCommand = gitIgnoreCommand; | this.gitIgnoreCommand = gitIgnoreCommand; | ||||
this.system2 = system2; | this.system2 = system2; | ||||
this.documentationLink = "/documentation/analysis/scm-integration/"; | |||||
this.documentationLink = "/documentation/analyzing-source-code/scm-integration/"; | |||||
} | } | ||||
@Override | @Override |
new DefaultBlameOutput(null, analysisWarnings, singletonList(file)).finish(true); | new DefaultBlameOutput(null, analysisWarnings, singletonList(file)).finish(true); | ||||
assertThat(analysisWarnings.warnings()).extracting(DefaultAnalysisWarnings.Message::getText) | assertThat(analysisWarnings.warnings()).extracting(DefaultAnalysisWarnings.Message::getText) | ||||
.containsOnly("Missing blame information for 1 file. This may lead to some features not working correctly. " + | .containsOnly("Missing blame information for 1 file. This may lead to some features not working correctly. " + | ||||
"Please check the analysis logs and refer to <a href=\"/documentation/analysis/scm-integration/\" target=\"_blank\">the documentation</a>."); | |||||
"Please check the analysis logs and refer to <a href=\"/documentation/analyzing-source-code/scm-integration/\" target=\"_blank\">the documentation</a>."); | |||||
} | } | ||||
@Test | @Test |
String warning = refNotFound | String warning = refNotFound | ||||
+ ". You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis" | + ". You may see unexpected issues and changes. Please make sure to fetch this ref before pull request analysis" | ||||
+ " and refer to <a href=\"/documentation/analysis/scm-integration/\" target=\"_blank\">the documentation</a>."; | |||||
+ " and refer to <a href=\"/documentation/analyzing-source-code/scm-integration/\" target=\"_blank\">the documentation</a>."; | |||||
verify(analysisWarnings).addUnique(warning); | verify(analysisWarnings).addUnique(warning); | ||||
} | } | ||||