For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:tools/openSUSE_Tumbleweed/devel:tools.repo
zypper refresh
zypper install cppcheck
For openSUSE Slowroll run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:tools/openSUSE_Slowroll/devel:tools.repo
zypper refresh
zypper install cppcheck
For openSUSE Factory zSystems run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:tools/openSUSE_Factory_zSystems/devel:tools.repo
zypper refresh
zypper install cppcheck
For openSUSE Factory PowerPC run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:tools/openSUSE_Factory_PowerPC/devel:tools.repo
zypper refresh
zypper install cppcheck
For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:tools/15.6/devel:tools.repo
zypper refresh
zypper install cppcheck
For 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/devel:tools/15.5/devel:tools.repo
zypper refresh
zypper install cppcheck