Browse Source

SONAR-17738 Point to new documentation paths

tags/9.8.0.63668
Wouter Admiraal 1 year ago
parent
commit
52e98152e6
40 changed files with 85 additions and 77 deletions
  1. 2
    2
      server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx
  2. 2
    2
      server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
  3. 1
    1
      server/sonar-web/src/main/js/apps/background-tasks/components/Header.tsx
  4. 1
    1
      server/sonar-web/src/main/js/apps/projectBaseline/components/AppHeader.tsx
  5. 2
    2
      server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap
  6. 1
    1
      server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx
  7. 1
    1
      server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap
  8. 2
    2
      server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap
  9. 2
    2
      server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap
  10. 2
    2
      server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap
  11. 1
    1
      server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap
  12. 2
    2
      server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap
  13. 2
    2
      server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap
  14. 1
    1
      server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap
  15. 7
    7
      server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json
  16. 1
    1
      server/sonar-web/src/main/js/components/issue/components/IssueMessageTags.tsx
  17. 2
    2
      server/sonar-web/src/main/js/components/tutorials/components/CompilationInfo.tsx
  18. 5
    1
      server/sonar-web/src/main/js/components/tutorials/components/ProjectTokenScopeInfo.tsx
  19. 2
    2
      server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap
  20. 1
    1
      server/sonar-web/src/main/js/components/tutorials/jenkins/PreRequisitesStep.tsx
  21. 3
    3
      server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap
  22. 2
    2
      server/sonar-web/src/main/js/components/tutorials/other/DoneNextSteps.tsx
  23. 2
    2
      server/sonar-web/src/main/js/components/tutorials/other/TokenStep.tsx
  24. 4
    4
      server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap
  25. 3
    3
      server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap
  26. 1
    1
      server/sonar-web/src/main/js/components/tutorials/other/commands/DotNetExecute.tsx
  27. 1
    1
      server/sonar-web/src/main/js/components/tutorials/other/commands/ExecBuildWrapper.tsx
  28. 1
    1
      server/sonar-web/src/main/js/components/tutorials/other/commands/ExecScanner.tsx
  29. 4
    2
      server/sonar-web/src/main/js/components/tutorials/other/commands/JavaGradle.tsx
  30. 1
    1
      server/sonar-web/src/main/js/components/tutorials/other/commands/JavaMaven.tsx
  31. 1
    1
      server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap
  32. 3
    3
      server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap
  33. 5
    5
      server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap
  34. 2
    2
      server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap
  35. 1
    1
      server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap
  36. 7
    5
      server/sonar-web/src/main/js/helpers/constants.ts
  37. 1
    1
      sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java
  38. 1
    1
      sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java
  39. 1
    1
      sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java
  40. 1
    1
      sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java

+ 2
- 2
server/sonar-web/src/main/js/app/components/nav/component/branch-like/CurrentBranchLike.tsx View File

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'),
}, },
{ {

+ 2
- 2
server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap View File

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 {

+ 1
- 1
server/sonar-web/src/main/js/apps/background-tasks/components/Header.tsx View File

)} )}
<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>

+ 1
- 1
server/sonar-web/src/main/js/apps/projectBaseline/components/AppHeader.tsx View File

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>
), ),

+ 2
- 2
server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap View File

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)>,

+ 1
- 1
server/sonar-web/src/main/js/apps/settings/components/NewCodePeriod.tsx View File

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>
), ),

+ 1
- 1
server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap View File

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)>,

+ 1
- 1
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap View File

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)>,

+ 1
- 1
server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap View File

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)>,

+ 7
- 7
server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json View File

"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"
} }
], ],

+ 1
- 1
server/sonar-web/src/main/js/components/issue/components/IssueMessageTags.tsx View File

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')),
}, },
]} ]}

+ 2
- 2
server/sonar-web/src/main/js/components/tutorials/components/CompilationInfo.tsx View File

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>
), ),

+ 5
- 1
server/sonar-web/src/main/js/components/tutorials/components/ProjectTokenScopeInfo.tsx View File

{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>

+ 2
- 2
server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap View File

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)>,

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/jenkins/PreRequisitesStep.tsx View File

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>
), ),

+ 3
- 3
server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/components/tutorials/other/DoneNextSteps.tsx View File

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'
)} )}

+ 2
- 2
server/sonar-web/src/main/js/components/tutorials/other/TokenStep.tsx View File

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'),
}, },
]} ]}

+ 4
- 4
server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap View File

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)>,

+ 3
- 3
server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap View File

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",
}, },
] ]

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/other/commands/DotNetExecute.tsx View File

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>
), ),

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/other/commands/ExecBuildWrapper.tsx View File

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>
), ),

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/other/commands/ExecScanner.tsx View File

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>
), ),

+ 4
- 2
server/sonar-web/src/main/js/components/tutorials/other/commands/JavaGradle.tsx View File

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>
), ),

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/other/commands/JavaMaven.tsx View File

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>
), ),

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap View File

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)>,

+ 3
- 3
server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap View File

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)>,

+ 5
- 5
server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap View File

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)>,

+ 2
- 2
server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap View File

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)>,

+ 1
- 1
server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap View File

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)>,

+ 7
- 5
server/sonar-web/src/main/js/helpers/constants.ts View File

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 = [

+ 1
- 1
sonar-scanner-engine/src/main/java/org/sonar/scanner/scm/DefaultBlameOutput.java View File

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(),

+ 1
- 1
sonar-scanner-engine/src/main/java/org/sonar/scm/git/GitScmProvider.java View File

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

+ 1
- 1
sonar-scanner-engine/src/test/java/org/sonar/scanner/scm/DefaultBlameOutputTest.java View File

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

+ 1
- 1
sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java View File



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);
} }



Loading…
Cancel
Save