Commit 4c0dbf7
refactor: replace blank imports with explicit Init() in central compliance
Updated central/compliance/checks/all.go to call explicit Init() functions
for all compliance standards instead of using blank imports. Added
centralChecks.Init() call to central/app/app.go. Removed blank import from
central/compliance/manager/checks.go.
This completes the migration from automatic package-level init() to explicit
initialization for all central compliance checks (76 total check files):
- hipaa_164: 19 checks
- nist800-190: 13 checks
- nist80053: 20 checks
- pcidss32: 24 checks
- remote: wraps node checks
Changes:
- central/compliance/checks/all.go: blank imports → Init() calls
- central/app/app.go: added centralChecks.Init() call
- central/compliance/manager/checks.go: removed blank import
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f8083d4 commit 4c0dbf7
3 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments