Code Quality
Weight 20%avg_cc=0.00, max_cc=0, duplication=0.00%, dead_code=0
| Primary Language | Go |
|---|---|
| Primary Framework | Go Service |
| Detected Frameworks | Go Service; Container |
| Deployable Types | API |
| Technology Stack | Go, Docker, CI/CD, Kubernetes |
| Default Branch | master |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:04:10 AM |
| Source Repository | Open on GitHub |
6a750b37e233cace70c29b9b9a2e176096e1ada8mattermost/mattermost-operator6a750b37e233cace70c29b9b9a2e176096e1ada8graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["mattermost/mattermost-operator (179 components)"]):::atlasRoot
subgraph sg_dir_0_pkg["pkg (86)"]
direction TB
dir_0_pkg["pkg (86)"]:::atlasCategory
sub_0_0_client["client (44)"]:::atlasWorkflow
dir_0_pkg --> sub_0_0_client
sub_0_1_mattermost["mattermost (17)"]:::atlasWorkflow
dir_0_pkg --> sub_0_1_mattermost
sub_0_2_database["database (12)"]:::atlasWorkflow
dir_0_pkg --> sub_0_2_database
sub_0_more["+3 more submodules (13)"]:::atlasMore
dir_0_pkg --> sub_0_more
end
repo_root --> dir_0_pkg
subgraph sg_dir_1_config["config (26)"]
direction TB
dir_1_config["config (26)"]:::atlasCategory
sub_1_0_rbac["rbac (9)"]:::atlasWorkflow
dir_1_config --> sub_1_0_rbac
sub_1_1_crd["crd (7)"]:::atlasWorkflow
dir_1_config --> sub_1_1_crd
sub_1_2_samples["samples (4)"]:::atlasWorkflow
dir_1_config --> sub_1_2_samples
sub_1_more["+3 more submodules (6)"]:::atlasMore
dir_1_config --> sub_1_more
end
repo_root --> dir_1_config
subgraph sg_dir_2_controllers["controllers (25)"]
direction TB
dir_2_controllers["controllers (25)"]:::atlasCategory
sub_2_0_mattermost_clusterinstallation["mattermost/clusterinstallation (14)"]:::atlasWorkflow
dir_2_controllers --> sub_2_0_mattermost_clusterinstallation
sub_2_1_mattermost_mattermost["mattermost/mattermost (8)"]:::atlasWorkflow
dir_2_controllers --> sub_2_1_mattermost_mattermost
sub_2_2_mattermost_mattermostrestoredb["mattermost/mattermostrestoredb (3)"]:::atlasWorkflow
dir_2_controllers --> sub_2_2_mattermost_mattermostrestoredb
end
repo_root --> dir_2_controllers
subgraph sg_dir_3_apis["apis (22)"]
direction TB
dir_3_apis["apis (22)"]:::atlasCategory
sub_3_0_mattermost_v1beta1["mattermost/v1beta1 (13)"]:::atlasWorkflow
dir_3_apis --> sub_3_0_mattermost_v1beta1
sub_3_1_mattermost_v1alpha1["mattermost/v1alpha1 (9)"]:::atlasWorkflow
dir_3_apis --> sub_3_1_mattermost_v1alpha1
end
repo_root --> dir_3_apis
subgraph sg_dir_4_test["test (14)"]
direction TB
dir_4_test["test (14)"]:::atlasCategory
sub_4_0_e2e_external["e2e-external (8)"]:::atlasWorkflow
dir_4_test --> sub_4_0_e2e_external
sub_4_1_e2e["e2e (5)"]:::atlasWorkflow
dir_4_test --> sub_4_1_e2e
sub_4_2__module_root_["(module root) (1)"]:::atlasWorkflow
dir_4_test --> sub_4_2__module_root_
end
repo_root --> dir_4_test
dir_other_modules["+3 more modules (6)"]:::atlasMore
repo_root --> dir_other_modules
Showing top 60 representative components out of 179 across 8 module group(s):
Module pkg (86 components — module: 86)
Module config (26 components — module: 26)
Module controllers (25 components — module: 25)
Module apis (22 components — module: 22)
Module test (14 components — module: 14)
Module hack (3 components — module: 3)
Module version (2 components — module: 2)
Module (root) (1 components — module: 1)
apply_resource (test/e2e-external/apply_resource.go): module
bluegreen (controllers/mattermost/clusterinstallation/bluegreen.go): module
builtin (pkg/utils/builtin.go): module
cainjection_in_mattermosts (config/crd/patches/cainjection_in_mattermosts.yaml): module
canary (controllers/mattermost/clusterinstallation/canary.go): module
clientset (pkg/client/clientset/versioned/clientset.go): module
clientset (pkg/client/v1beta1/clientset/versioned/clientset.go): module
clientset_generated (pkg/client/clientset/versioned/fake/clientset_generated.go): module
clientset_generated (pkg/client/v1beta1/clientset/versioned/fake/clientset_generated.go): module
clusterinstallation (pkg/client/clientset/versioned/typed/mattermost/v1alpha1/clusterinstallation.go): module
clusterinstallation (pkg/client/informers/externalversions/mattermost/v1alpha1/clusterinstallation.go): module
clusterinstallation (pkg/client/listers/mattermost/v1alpha1/clusterinstallation.go): module
clusterinstallation_editor_role (config/rbac/clusterinstallation_editor_role.yaml): module
clusterinstallation_sizes (apis/mattermost/v1alpha1/clusterinstallation_sizes.go): module
clusterinstallation_test (apis/mattermost/v1alpha1/clusterinstallation_test.go): module
clusterinstallation_types (apis/mattermost/v1alpha1/clusterinstallation_types.go): module
clusterinstallation_utils (apis/mattermost/v1alpha1/clusterinstallation_utils.go): module
clusterinstallation_viewer_role (config/rbac/clusterinstallation_viewer_role.yaml): module
constants (pkg/mattermost/constants.go): module
constants (test/constants.go): module
controller (controllers/mattermost/clusterinstallation/controller.go): module
controller (controllers/mattermost/mattermost/controller.go): module
controller (controllers/mattermost/mattermostrestoredb/controller.go): module
controller_test (controllers/mattermost/clusterinstallation/controller_test.go): module
controller_test (controllers/mattermost/mattermost/controller_test.go): module
conversion (controllers/mattermost/clusterinstallation/conversion.go): module
conversion_test (controllers/mattermost/clusterinstallation/conversion_test.go): module
create_resources (pkg/resources/create_resources.go): module
create_resources_test (pkg/resources/create_resources_test.go): module
database (controllers/mattermost/mattermost/database.go): module
database (pkg/database/database.go): module
database_external (pkg/mattermost/database_external.go): module
database_external_test (pkg/mattermost/database_external_test.go): module
database_mysql (pkg/mattermost/database_mysql.go): module
database_mysql_test (pkg/mattermost/database_mysql_test.go): module
database_test (pkg/database/database_test.go): module
database_unmanaged (pkg/mattermost/database_unmanaged.go): module
db_util (apis/mattermost/v1beta1/db_util.go): module
db_util_test (apis/mattermost/v1beta1/db_util_test.go): module
doc (apis/mattermost/v1alpha1/doc.go): module
doc (pkg/client/clientset/versioned/doc.go): module
doc (pkg/client/clientset/versioned/fake/doc.go): module
doc (pkg/client/clientset/versioned/scheme/doc.go): module
doc (pkg/client/clientset/versioned/typed/mattermost/v1alpha1/doc.go): module
doc (pkg/client/clientset/versioned/typed/mattermost/v1alpha1/fake/doc.go): module
doc (pkg/client/v1beta1/clientset/versioned/doc.go): module
doc (pkg/client/v1beta1/clientset/versioned/fake/doc.go): module
doc (pkg/client/v1beta1/clientset/versioned/scheme/doc.go): module
doc (pkg/client/v1beta1/clientset/versioned/typed/mattermost/v1beta1/doc.go): module
doc (pkg/client/v1beta1/clientset/versioned/typed/mattermost/v1beta1/fake/doc.go): module
doc (pkg/database/mysql_operator/v1alpha1/doc.go): module
env_var (pkg/mattermost/env_var.go): module
expansion_generated (pkg/client/listers/mattermost/v1alpha1/expansion_generated.go): module
expansion_generated (pkg/client/v1beta1/listers/mattermost/v1beta1/expansion_generated.go): module
external_db_filestore_test (test/e2e-external/external_db_filestore_test.go): module
factory (pkg/client/informers/externalversions/factory.go): module
factory (pkg/client/v1beta1/informers/externalversions/factory.go): module
factory_interfaces (pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go): module
factory_interfaces (pkg/client/v1beta1/informers/externalversions/internalinterfaces/factory_interfaces.go): module
fake_clusterinstallation (pkg/client/clientset/versioned/typed/mattermost/v1alpha1/fake/fake_clusterinstallation.go): module
C (79.55/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | A | 100.00 | 0.20 | avg_cc=0.00, max_cc=0, duplication=0.00%, dead_code=0 |
| Dependency Health | B | 85.00 | 0.15 | dependencies=89, outdated=0, vulnerable=0, has_lockfile=False |
| Maintainability | A | 100.00 | 0.15 | avg_cognitive=0.00, max_cognitive=0, fitness_violations=0, oversized_files=0 |
| Pipeline Health | C | 78.00 | 0.15 | workflows=4, operational_antipatterns=9, parallel_branches=True |
| Security | F | 48.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=3 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
github.com/banzaicloud/k8s-objectmatcher 1.8.0 (golang, go.mod)github.com/evanphx/json-patch/v5 5.9.11 (golang, go.mod)github.com/go-logr/logr 1.4.4 (golang, go.mod)github.com/mattermost/blubr 0.1.0 (golang, go.mod)github.com/mattn/goveralls 0.0.12 (golang, go.mod)github.com/mikefarah/yq/v3 3.0.0-20201202084205-8846255d1c37 (golang, go.mod)github.com/minio/minio-operator 0.0.0-20200214142425-158e343f1f19 (golang, go.mod)github.com/pborman/uuid 1.2.1 (golang, go.mod)github.com/pkg/errors 0.9.1 (golang, go.mod)github.com/sirupsen/logrus 1.10.2 (golang, go.mod)github.com/stretchr/testify 1.12.1 (golang, go.mod)github.com/vrischmann/envconfig 1.4.1 (golang, go.mod)golang.org/x/net 0.62.0 (golang, go.mod)k8s.io/api 0.37.2 (golang, go.mod)k8s.io/apimachinery 0.37.2 (golang, go.mod)k8s.io/client-go 0.37.2 (golang, go.mod)k8s.io/code-generator 0.37.2 (golang, go.mod)k8s.io/kube-openapi 0.0.0-20260721132016-d427ff9ee9ad (golang, go.mod)sigs.k8s.io/controller-runtime 0.25.2 (golang, go.mod)sigs.k8s.io/yaml 1.6.0 (golang, go.mod)emperror.dev/errors 0.8.1 (golang, go.mod)github.com/beorn7/perks 1.0.1 (golang, go.mod)github.com/cespare/xxhash/v2 2.3.0 (golang, go.mod)github.com/davecgh/go-spew 1.1.2-0.20180830191138-d8f796af33cc (golang, go.mod)github.com/emicklei/go-restful/v3 3.14.0 (golang, go.mod)github.com/evanphx/json-patch 5.9.11+incompatible (golang, go.mod)github.com/fatih/color 1.19.0 (golang, go.mod)github.com/fsnotify/fsnotify 1.10.1 (golang, go.mod)github.com/fxamacker/cbor/v2 2.10.0 (golang, go.mod)github.com/go-logr/zapr 1.3.0 (golang, go.mod)flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_3ae77945_13db_442b_8d1e_4873ce08a29e["3ae77945-13db-442b-8d1e-4873ce08a29e"]:::atlasCategory
mod_config_crd["config/crd"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_Dockerfile["Dockerfile"]:::atlasWorkflow
art_Dockerfile_fips["Dockerfile.fips"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_ci_yml_test["ci.yml#test"]:::atlasJob
end
mod_3ae77945_13db_442b_8d1e_4873ce08a29e -->|PACKAGED_BY| art_Dockerfile
mod_3ae77945_13db_442b_8d1e_4873ce08a29e -->|PACKAGED_BY| art_Dockerfile_fips
mod_config_crd -->|BUILT_BY| job_ci_yml_test
3ae77945-13db-442b-8d1e-4873ce08a29e (code_module) —[PACKAGED_BY]—> Dockerfile (container)3ae77945-13db-442b-8d1e-4873ce08a29e (code_module) —[PACKAGED_BY]—> Dockerfile.fips (container)config/crd (code_module) —[BUILT_BY]—> ci.yml#test (ci_job)graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["mattermost/mattermost-operator (4 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (3 workflows · 8 jobs)"]
direction TB
subgraph sg_wf_0_cd["cd (3 jobs)"]
direction TB
wf_0_cd(["Trigger: cd"]):::atlasWorkflow
job_0_build["build"]:::atlasJob
job_0_build_fips["build-fips"]:::atlasJob
job_0_anchore_scan["anchore-scan"]:::atlasJob
wf_0_cd --> job_0_build
wf_0_cd --> job_0_build_fips
job_0_build --> job_0_anchore_scan
job_0_build_fips --> job_0_anchore_scan
end
pipeline_root --> wf_0_cd
subgraph sg_wf_1_ci["ci (4 jobs)"]
direction TB
wf_1_ci(["Trigger: ci"]):::atlasWorkflow
job_1_lint["lint"]:::atlasJob
job_1_test["test"]:::atlasJob
job_1_build["build"]:::atlasJob
wf_1_ci --> job_1_lint
wf_1_ci --> job_1_test
job_1_lint --> job_1_build
job_1_test --> job_1_build
end
pipeline_root --> wf_1_ci
subgraph sg_wf_2_CleanDocker["CleanDocker (1 jobs)"]
direction TB
wf_2_CleanDocker(["Trigger: CleanDocker"]):::atlasWorkflow
job_2_clean_docker["clean-docker"]:::atlasJob
wf_2_CleanDocker --> job_2_clean_docker
end
pipeline_root --> wf_2_CleanDocker
end
subgraph sg_grp_1_Release___Deploy["Release & Deploy (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_3_notify_release["notify-release (1 jobs)"]
direction TB
wf_3_notify_release(["Trigger: notify-release"]):::atlasWorkflow
job_3_notify["notify"]:::atlasJob
wf_3_notify_release --> job_3_notify
end
pipeline_root --> wf_3_notify_release
endavg_cc=0.00, max_cc=0, duplication=0.00%, dead_code=0
vulnerabilities=0, secrets=0, pipeline_security_findings=3
avg_cognitive=0.00, max_cognitive=0, fitness_violations=0, oversized_files=0
coverage=unavailable, ci_test_job=True, test_files_detected=True
dependencies=89, outdated=0, vulnerable=0, has_lockfile=False
workflows=4, operational_antipatterns=9, parallel_branches=True
No per-file complexity hotspots recorded in this report.
All architectural boundary, cycle, and complexity thresholds passed.
No known OSV vulnerabilities detected across 89 parsed dependencies.
No hardcoded secret patterns detected.
Single-package repository or no monorepo workspace manifests.