Common Ground logo

Common Ground Component Checker

Component assessment for Dutch municipalities

Back to the rating guide

Tools and models

This page names the tools the checker uses for each measure, what each of them proves and what it does not, and where the checker deviates from the SIG/TÜV NORD maintainability model, with the reason. Parts marked in review are built but not merged yet.

How a component becomes a Common Ground component, from the version that is measured to Maintained, is explained in The path to Common Ground.

The estimate track is not calibrated against real SIG audits. There are no Sigrid results to compare with: it is checked against the published model v18.1 only.

What the checker reports

Information only

Some results are shown but never rated: project health (CHAOSS), usage and ecosystem, size, and the comparison with SonarQube. They have weight 0, no stars, and do not count in any rating or in the verdict.

The improvement rating

The overall rating is the weighted mean of all five categories: Security, Maintainability, Governance, Deployment and operations, and Architecture. It shows a supplier where a component can improve. It runs from 0.5 to 5.5 and is shown as 1 to 5 stars.

The verdict: suitable for Common Ground

Suitable for Common Ground is the threshold the Common Ground programme uses to decide whether to adopt a component as supported. It is not a condition for being listed: a component that is not yet suitable is still listed.

A component is suitable for Common Ground when all six of these hold: no mandatory criterion fails, the overall rating is at least 2.5, it has a valid maintenance contract, the maintainability estimate is at least 4 stars (a rating of 3.5 or more), publiccode.yml declares developmentStatus stable, and it names at least 1 organisation under usedBy. The ALV asks for one or more; we propose 2 from checklist 2027.1, because one user can be the supplier itself and two show that others reuse the component. 4 stars is the level at which SIG and TÜViT certify. The checker does not certify: certification is a manual assessment by SIG and TÜViT, and the checker only estimates whether a component looks ready for it. Whether adoption into Common Ground needs a SIG certificate is up to VNG as regievoerder. The ALV papers do not ask for one.

By design, most components will not reach 4 stars on maintainability. SIG calibrates its model so that 5% of systems get 5 stars and 30% get 4, so about one in three reaches 4 stars or more. The open benchmark is spread the same way: on each unit property and on duplication, 21 of its 60 repositories rate 4 or 5 stars. A component below 4 stars is not bad. It is not yet at the level at which SIG and TÜViT certify.

Two tracks, and why both

The open track

The open track uses only open-source tools and thresholds that anyone can check and regenerate. The thresholds come from a public benchmark of 60 Common Ground and Developer Overheid repositories, 57 of them for coupling. The benchmark list, the raw measures, the scripts and the thresholds file (thresholds-2026-11-18.2.json) are published with the checker.

The risk bounds are the metric values at 70, 80 and 90% of the benchmark's code (Alves, Ypma and Visser 2010; 80, 90 and 95% for unit interfacing). The star limits come from Algorithm 1 of Alves, Correia and Visser 2011, as implemented in derive.py, with 5, 30, 30, 30 and 5% of the benchmark at 5 to 1 stars.

The derived bounds: unit size more than 29 / 42 / 71 lines, unit complexity McCabe above 5 / 7 / 10, unit interfacing more than 2 / 3 / 4 parameters, module coupling a fan-in above 2 / 3 / 5. SIG uses 15 / 30 / 60, 5 / 10 / 25, 2 / 4 / 6 and 10 / 20 / 50. They differ because they describe this benchmark, not SIG's. In these public repositories modules have few dependants: at least 70% of the code sits in modules with at most two, so the fan-in bounds land far below SIG's. And 30% of the unit code sits in units of more than 29 lines, so the unit size bounds land above SIG's.

Component entanglement does not spread as planned. 15 of the 57 repositories have a violation degree of 0 and cannot be told apart, so 26% of the benchmark gets 5 stars there instead of 5%.

We need it for openness and reproducibility. Anyone can see why a component gets its stars, and anyone can measure again and get the same answer.

The open track is not a SIG rating and does not predict one. It is shown next to the estimate, for information only (weight 0).

The estimate track

The estimate track is the closest open reproduction of the published SIG/TÜV NORD maintainability model: the guidance for producers v18.1 of 31 March 2026. It uses the same properties, the same scope rules and the published 4-star limits.

We need it because SIG audits the components in the end. The estimate tells a supplier early where an audit is likely to land.

The estimate is not calibrated against real SIG audits. There are no Sigrid results to compare with. It is checked against the published model v18.1 only.

Why both

Both tracks measure the same properties and add them up the same way. They differ in calibration: published open thresholds on one side, SIG's published 4-star limits on the other. So a gap between the two can be explained property by property. The checker shows them side by side and never presents the open rating as a SIG prediction.

Tools per measure

Maintainability
MeasureToolVersionLicenceWhat it provesWhat it does not prove
Unit size, unit complexity and unit interfacingestimate tracklizard1.24.3MITThe share of code in functions and methods that are long, have many branches (McCabe) or take many parameters, per language.That the code is easy to read. McCabe counts branches, not meaning. lizard is not SIG's parser, so its unit boundaries can differ from a Sigrid scan.
Unit size, unit complexity and unit interfacingopen track (in review, #66)lizard, rated with the open thresholds of thresholds-2026-11-18.2.json1.24.3MITWhere the component stands against the 60 public benchmark repositories, with bounds and limits anyone can regenerate.Where it would stand in SIG's benchmark. It is not a SIG rating and does not predict one.
Duplicationestimate trackthe vendored estimate script's own clone count, cross-checked with Simian 4.2.1 in strict modescript at ConductionNL/.github cd0fe04EUPL-1.2The share of redundant code lines: blocks of at least 6 code lines that are equal apart from whitespace, counted as copies minus one, per language. That is the v18.1 definition.Copies with renamed identifiers, which count as 0. Whether comments are stripped the way SIG does it, which only a real Sigrid scan can settle.
Duplication cross-checkestimate track (in review, #62)Simian in strict mode, replacing jscpd 4.0.54.2.1Apache-2.0A second, independent count of literal clones. On the six test repositories it landed in the same band as the estimate in 14 of 14 production cells.Anything for Vue, which Simian cannot read. It never changes the rating.
Duplicationopen track (in review, #61)jscpd, 6 lines, 30 tokens, weak mode, one run per language5.4.2MITThe share of duplicated lines as jscpd counts them, for every language the checker reads, Vue included.SIG's duplication figure. jscpd finds token clones that can run into neighbouring lines, and it divides by all lines instead of code lines.
Module coupling, component independence and component entanglementestimate trackthe vendored estimate script's import graph (regular expressions over imports), for PHP and Python, and JavaScript, TypeScript and Vue once #58 is mergedscript at ConductionNL/.github cd0fe04EUPL-1.2How many files depend on each file, how much code is used from outside its component, and how many dependencies between components run in cycles.Coupling at the level of calls: it counts dependencies, not invocations. The components come from our own directory rule, not from SIG.
Module coupling, component independence and component entanglementopen track (in review, #64)PHP: pdepend. Python: grimp, with import-linter for declared contracts. JavaScript, TypeScript and Vue: dependency-cruiserpdepend 3.0.0, grimp 3.18, import-linter 2.15, dependency-cruiser 17.4.3pdepend BSD-3-Clause, grimp and import-linter BSD-2-Clause, dependency-cruiser MITThe same properties as the estimate, from a dependency graph that a dedicated open-source tool resolved. With the unit properties and duplication, the open track rates all seven properties.Coupling at the level of calls. Fan-in counts the files that depend on a file, not the calls. The open track rates all three properties against the benchmark, from the fan-in histogram per language that the check reports.
Sizeboth tracks (in review, #59)scc on the production scope, never on the whole repository4.1.0MITThe lines of production code per language, and from them a rebuild effort: backfiring (QSM and ISBSG) for the open track, SIG v17.0 lines per person-year for the estimate.Quality. Size is context only and has no stars.
Comparison with SonarQubeinformation only (in review, #63)an existing SonarQube server, read through its Web API. The checker never runs a scan.tested with Community Build 26.10server LGPL-3.0, PHP, Python and JavaScript analyzers SONAR Source-Available License v1.0What a project's own SonarQube reports: the technical debt ratio and the issues of four rules.A rating. It is information only and never gives stars. The calibrated profile was fitted on six repositories.
Test code ratiocounted in the ratinga line count of test code against production code in the cloned repositorythe checker's ownEUPL-1.2How much test code there is next to the production code.That the tests run, pass, or test anything that matters. It is a stand-in for coverage.
Security
MeasureToolVersionLicenceWhat it provesWhat it does not prove
Vulnerabilities, dependency freshness, activity, licences and managementcounted in the ratingthe vendored Open Source Health script, which reads the lockfiles and queries OSV.dev, Packagist, the npm registry and PyPIscript at ConductionNL/.github 20cd81cEUPL-1.2Known vulnerabilities in the locked versions, how old those versions are, whether the dependencies still release, and their licence risk.That there are no unknown vulnerabilities, or that a vulnerable function is ever called. Only the lockfiles at the repository root are read, and development dependencies are left out.
Secretscounted in the ratinggitleaks over the files of the repository8.30.1MITThat no file in the checked tree matches one of gitleaks' secret patterns.That the git history is clean, or that a secret in a format gitleaks does not know is absent.
Secure codingcounted in the ratingthe checker's own pattern scanthe checker's ownEUPL-1.2Whether a fixed list of risky patterns appears in the source, such as dynamic code or switching off TLS verification.That the code is secure. It is a heuristic, not a static analysis.
Supply chaincounted in the ratingthe public OpenSSF Scorecard API (GitHub repositories only), and a search for an SPDX or CycloneDX documentthe result Scorecard last publishedScorecard Apache-2.0Practices such as branch protection, code review, pinned dependencies and signed releases, and that an SBOM file exists.That a release is safe, or that the SBOM is complete. The Scorecard result can be older than the commit checked.
Container imagescounted in the ratingthe Trivy security report Artifact Hub publishes for the component's Helm chart, read through the Artifact Hub APIthe report Artifact Hub last published; its scanner runs Trivy 0.76.2Artifact Hub and Trivy Apache-2.0That the Helm chart is registered on Artifact Hub, and how many known vulnerabilities per severity the images of its latest version have. The latest version is scanned again every day.That the images a municipality actually runs are safe: only the images from the chart's default values are scanned. It says nothing about versions older than one year, charts with more than 15 images, private images, or images over 4 GiB, which Artifact Hub skips. Vulnerabilities Trivy does not know are not counted.
Governance
MeasureToolVersionLicenceWhat it provesWhat it does not prove
Licensingcounted in the ratingthe licence the GitHub or GitLab API reports, a text match on the LICENSE file, and a scan for SPDX headers and REUSE filesthe checker's ownEUPL-1.2Which licence the repository declares, whether every declaration names the same one, and how many files carry a header.A legal review, or that the dependencies' licences are compatible. Those are rated under Security.
Project healthinformation only (in review, #60)six CHAOSS metrics, computed from the GitHub or GitLab APIthe checker's ownEUPL-1.2How many people carry the project, from how many organisations, and how fast pull requests and issues get an answer.Code quality. It is shown without stars and never counts in a rating.
Usage and ecosysteminformation only (in review, #65)per source: publiccode.yml, the Nextcloud App Store, release and package downloads, Docker Hub, deps.dev, GitHub stars and forks, and the commit authors of the last 12 monthsthe checker's ownEUPL-1.2What each source reports, with its date. Contributors are counted as from the owning organisation, from other organisations or unknown. After the repository's .mailmap, each author is placed by the domain of their email address. For a personal, hidden or noreply address the checker reads the company field of the public profile while counting, for at most 200 profiles per scan. When the organisation of more than half of the authors is unknown, no split is shown, only the total. Nothing personal is stored: no names, logins, addresses or companies, only counts.Real use. Downloads include CI and mirrors, and many government installations show up in no public source. It is shown per source and never ranked.
Architecture
MeasureToolVersionLicenceWhat it provesWhat it does not prove
NL API Design Rulescounted in the ratingSpectral with the API Design Rules rule set of developer.overheid.nl6.17.0Apache-2.0That the OpenAPI document follows the rules of the rule set.That the running API behaves like its document.

Where we deviate from SIG, and why

TopicSIGThe checkerWhy
BenchmarkSIG calibrates its thresholds on a private benchmark of the systems it has measured.The open track uses its own public benchmark of 60 repositories (57 for coupling), with Algorithm 1 of Alves et al. 2011. The estimate uses SIG's published 4-star limits. The 5, 3 and 2-star limits of the estimate are derived by the checker.SIG's benchmark is not public, and only its 4-star limits are published.
VolumeVolume was removed from the maintainability rating in v18.0. Sigrid still shows person-years as context.Size is shown as context only, with no stars. For the SIG-style person-years, PHP, Vue, HTML, CSS and SQL use the JavaScript factor of v17.0 as a proxy.SIG never published a factor for those languages. The JavaScript factor is the proxy; with the Python factor, OpenRegister would read 82.1 person-years instead of 59.7.
DuplicationSIG uses its own clone detector, which is not published.The estimate reproduces the v18.1 definition itself: 6 code lines, equal apart from whitespace, copies minus one. The open track uses jscpd 5 and labels its figure as jscpd duplicated lines.jscpd is the only open candidate that reads Vue, and Vue is 30% of OpenCatalogi's production code. Its definition differs, so its figure is never shown as SIG's.
Module couplingv18.1 counts incoming dependencies, such as invocations.The checker counts the distinct files that depend on a file. That can only count fewer, never more.There is no open, reproducible call graph for PHP, Python and JavaScript together.
Component entanglementv18.1 combines density and violation degree, each normalised by a benchmark maximum, and sets 4 stars at 0.075.The checker compares the raw violation degree with 0.075.SIG's normalisation is not published, so this star is a proxy.
ComponentsSIG picks the components of a system from a knowledge base it does not publish.The checker descends from the root while one directory holds more than 80% of the files, and takes the directories below as components. The rule is printed next to the numbers.It is the only rule we can publish. Component independence is where a real audit is likely to differ most.
ToolsSIG measures with its own, proprietary analysers.The checker uses only open-source tools. SonarQube is read only as an outside comparison, and never feeds a rating.Anyone must be able to run the same measurement and get the same numbers.
Languages in the open trackSIG rates duplication per language, and 4 stars needs every language within the limit.The open track pools all languages of a repository.A benchmark of 60 repositories is too small to calibrate each language apart. The estimate keeps SIG's per-language rule.
ScopeSigrid leaves out generated and third-party code, migrations and tests, through its default excludes.The checker follows those default excludes exactly, including .*/contrib/.*, and a repository's own sigrid.yaml.That is how an audit would scope the code. The cost is visible: on Open Forms the contrib rule drops 19,533 lines of its own plugin code.

Tools we tested and rejected

  • Quamoco, for an open quality model: The tooling is dead: the original repository was archived in 2018 without a licence file, and its models cover Java and C# only.
  • Maintainability Index (radon, PhpMetrics, escomplex), for an open maintainability score: The three tools use three scales that do not compare, and adding comments raises the score. It does not track SIG: radon's per-file medians are 95 to 100 on three Python repositories that the estimate rates 2.5 to 3.2.
  • code-maat, for a rating from change history: Hotspots and change coupling help decide where to look first, but they are not a rating and have no SIG counterpart. It needs the full history and took 4.46 GB on OpenRegister.
  • COCOMO and SLOCCount, for size and rebuild effort: COCOMO comes out 2.5 to 4.3 times higher than the SIG-style figure; on the whole repository, scc's COCOMO gives OpenRegister 1,050 person-years. SLOCCount is unmaintained since 2004 and cannot read Vue or TypeScript, so it misses 55% of OpenCatalogi.
  • OpenSSF Criticality Score, for project health: Its issue signals returned 0 for all six test repositories, while GitHub found 56 closed issues for Open Zaak in the same 90 days. It counts every tag as a release, and it measures how critical a project is as a dependency, not its quality.
  • SonarQube, for the open track: Its PHP, Python and JavaScript analyzers are source-available, not open source. With the default profile it rated all six test repositories A. It needs 4 GB for the server and 6 GB for the scanner, and 26 minutes on OpenRegister. It stays as an optional outside comparison only.
  • jscpd 4.0.5, for the estimate's duplication cross-check: It counted 2 to 5 times fewer duplicated lines, took 334 s on OpenRegister and ran out of memory on its tests. Simian 4.2.1 replaces it (in review). Simian itself was not rejected.
  • PMD CPD, for duplication: It ran out of memory on OpenRegister's PHP at 5.9 and 7 GB of heap, and it cannot read Vue.
  • PhpMetrics, for the PHP dependency graph: It misses Foo::class references. On OpenCatalogi that is 44 of 108 edges.
  • pyan3, for the Python dependency graph: It resolves calls by name and invents edges: 57% of uses stay unresolved, and 67 to 73% of its edges are not imports.
  • emerge, for one dependency tool for every language: It has no PHP and no Vue parser.
  • GrimoireLab and CollectOSS, for project health: Both are long-running collectors that need several services and databases, not a check that runs on demand.

Limits

  • The estimate track is not calibrated against real SIG audits. There are no Sigrid results to compare with. It is checked against the published model v18.1 only, and only the 4-star limits in it are published.
  • The open-track thresholds come from one benchmark of 60 public repositories, measured on 18 November 2026, and 57 for coupling: three repositories had a language that could not be measured. At most 12 repositories per owner count. Entanglement puts 26% of the benchmark at 5 stars, because 15 repositories score 0.
  • The star limits of the open track are our implementation of Algorithm 1 of the 2011 paper. The paper does not define its distribution function, so derive.py reads it as the number of repositories at a level or better. It is not a copy of SIG's own tooling.
  • The tools were compared on six repositories: OpenRegister, OpenCatalogi, Open Zaak, Open Forms, plugin-pdc-base and Objects API. The SonarQube profile was fitted on the same six. It orders them like the estimate (Spearman 0.94), but six repositories are too few to trust that order elsewhere.
  • Tool versions are pinned, because a new version can change the numbers. A version bump needs a new benchmark run.

Sources