Skip to content

Commit 4b3cc6e

Browse files
Updated github links v2
1 parent c3f231d commit 4b3cc6e

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ make
1313

1414
An example of a flawed C++ code. The https://github.com/sonarsource-cfamily-examples/code[code repository] is meant to be compiled with different build systems using different CI pipelines on Linux, MacOS, and Windows.
1515

16-
The https://github.com/sonarsource-cfamily-examples/code[code repository] is forked into other repositories in https://github.com/sc-sq-c-family-examples[this collection] to add a specific build system, platform, and CI.
16+
The https://github.com/sonarsource-cfamily-examples/code[code repository] is forked into other repositories in https://github.com/sonarsource-cfamily-examples[this collection] to add a specific build system, platform, and CI.
1717
The downstream repositories are analyzed either with https://www.sonarqube.org/[SonarQube] or https://sonarcloud.io/[SonarCloud].
1818

1919
You can find examples for:

examples-structure.adoc

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11

22
= Structure of the Examples Org
3-
https://github.com/sc-sq-c-family-examples[This GitHub organization] contains a collection of example configurations for different platforms, build systems, and CI services all with one goal: analyze the code on https://www.sonarqube.org/[SonarQube] or https://sonarcloud.io/[SonarCloud].
3+
https://github.com/sonarsource-cfamily-examples[This GitHub organization] contains a collection of example configurations for different platforms, build systems, and CI services all with one goal: analyze the code on https://www.sonarqube.org/[SonarQube] or https://sonarcloud.io/[SonarCloud].
44

55
The repositories form a hierarchy.
66

7-
* The hierarchy starts from the https://github.com/sc-sq-c-family-examples/code[code-only repository] that contains the flawed code and the common boilerplate files.
8-
* The second level of hierarchy are OS\build-system repositories, such as https://github.com/sc-sq-c-family-examples/windows-msbuild[windows-msbuild] or https://github.com/sc-sq-c-family-examples/linux-cmake[linux-cmake]. They take the code from the code-only repository as is and add the build configuration files for the corresponding OS and build system.
9-
* The last level of hierarchy are the CI-enabled repositoroes (for example, https://github.com/sc-sq-c-family-examples/linux-cmake-azure-sc[linux-cmake-azure-sc]). These repositories build upon the repositories with configured builds and add a CI configuration for popular CI services. In the CI config they set up a SonarCloud (repository name ending in `-sc`) or a SonarQube (repository name ending in `-sq`) connection.
7+
* The hierarchy starts from the https://github.com/sonarsource-cfamily-examples/code[code-only repository] that contains the flawed code and the common boilerplate files.
8+
* The second level of hierarchy are OS\build-system repositories, such as https://github.com/sonarsource-cfamily-examples/windows-msbuild[windows-msbuild] or https://github.com/sonarsource-cfamily-examples/linux-cmake[linux-cmake]. They take the code from the code-only repository as is and add the build configuration files for the corresponding OS and build system.
9+
* The last level of hierarchy are the CI-enabled repositoroes (for example, https://github.com/sonarsource-cfamily-examples/linux-cmake-azure-sc[linux-cmake-azure-sc]). These repositories build upon the repositories with configured builds and add a CI configuration for popular CI services. In the CI config they set up a SonarCloud (repository name ending in `-sc`) or a SonarQube (repository name ending in `-sq`) connection.
1010

11-
Here is an example dependency path: https://github.com/sc-sq-c-family-examples/code[code] -> https://github.com/sc-sq-c-family-examples/linux-cmake[linux-cmake] -> https://github.com/sc-sq-c-family-examples/linux-cmake-azure-sc[linux-cmake-azure-sc].
11+
Here is an example dependency path: https://github.com/sonarsource-cfamily-examples/code[code] -> https://github.com/sonarsource-cfamily-examples/linux-cmake[linux-cmake] -> https://github.com/sonarsource-cfamily-examples/linux-cmake-azure-sc[linux-cmake-azure-sc].
1212

1313
== Forking the code repository
1414
Since GitHub disallows forking of a repository within the same organization, here is the equivalent in `git` commands (on the example of `linux-cmake`):
1515

1616
Clone the newly created repository:
1717
----
18-
git clone git@github.com:sc-sq-c-family-examples/linux-cmake
18+
git clone git@github.com:sonarsource-cfamily-examples/linux-cmake
1919
cd linux-cmake
2020
----
21-
Add the https://github.com/sc-sq-c-family-examples/code[code repository] as a second remote named `code`:
21+
Add the https://github.com/sonarsource-cfamily-examples/code[code repository] as a second remote named `code`:
2222
----
23-
git remote add code git@github.com:sc-sq-c-family-examples/code
23+
git remote add code git@github.com:sonarsource-cfamily-examples/code
2424
----
2525
Get the code:
2626
----
2727
git pull code main
2828
----
29-
If the contents of the https://github.com/sc-sq-c-family-examples/code[code repository] changes, you can pull the changes with the last command.
29+
If the contents of the https://github.com/sonarsource-cfamily-examples/code[code repository] changes, you can pull the changes with the last command.
3030

3131
Push the changes to the custom repository:
3232
----
3333
git push origin main
3434
----
3535

36-
This will enable the flow of changes from the https://github.com/sc-sq-c-family-examples/code[code] repository to the https://github.com/sc-sq-c-family-examples/linux-cmake[linux-cmake] repository (the first arrow in the example above).
36+
This will enable the flow of changes from the https://github.com/sonarsource-cfamily-examples/code[code] repository to the https://github.com/sonarsource-cfamily-examples/linux-cmake[linux-cmake] repository (the first arrow in the example above).
3737

38-
To make the changes flow further to the https://github.com/sc-sq-c-family-examples/linux-cmake-azure-sc[linux-cmake-azure-sc] repository:
38+
To make the changes flow further to the https://github.com/sonarsource-cfamily-examples/linux-cmake-azure-sc[linux-cmake-azure-sc] repository:
3939
----
40-
git clone git@github.com:sc-sq-c-family-examples/linux-cmake-azure-sc
40+
git clone git@github.com:sonarsource-cfamily-examples/linux-cmake-azure-sc
4141
cd linux-cmake-azure-sc
42-
git remote add code git@github.com:sc-sq-c-family-examples/linux-cmake
42+
git remote add code git@github.com:sonarsource-cfamily-examples/linux-cmake
4343
git pull code main
4444
git push origin main
4545
----

0 commit comments

Comments
 (0)