Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spellcheck config + copyright year #1279

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copywrite.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema_version = 1
project {
license = "BUSL-1.1"
copyright_holder = "Mondoo, Inc."
copyright_year = 2023
copyright_year = 2024

# (OPTIONAL) A list of globs that should not have copyright/license headers.
# Supports doublestar glob patterns for more flexibility in defining which
Expand Down
23 changes: 23 additions & 0 deletions .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,29 @@
\bCrowd Strike\b
\b[Cc]rowdstrike\b

#
# Kubernetes Terms
#

# s.b. DaemonSet
\bDaemonset\b

# s.b. Dockershim
\bDockerShim\b
\bdockershim\b

# s.b. LimitRange
\bLimitrange\b

# s.b. Minikube
\bMiniKube\b

# s.b. ReplicaSet
\bReplicaset\b

# s.b. StatefulSet
\bStatefulset\b

#
# HashiCorp Products
#
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/spelling/reject.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ Sorce
^untilling$
^wether.*
\w*(?<!right-)click
deets
organisation
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
Parameters

Licensor: Mondoo, Inc. (“Mondoo”)
Licensed Work(s): cnspec version 9.0.0 and later. The Licensed Work is (c) 2023 Mondoo, Inc.
Licensed Work(s): cnspec version 9.0.0 and later. The Licensed Work is (c) 2024 Mondoo, Inc.
Additional Use Grant: You may use, distribute or host the Licensed Work in your own or your direct customers’ production environment, provided that such use, distribution or hosting does not include offering the Licensed Work to third parties as part of or in connection with an offering that is competitive with any of Mondoo’s products.
Change Date: Four years from the date the Licensed Work is published
Change License: MPL 2.0
Change Date: Four years from the date the Licensed Work is published
Change License: MPL 2.0

For information about alternative licensing arrangements for the Licensed Work, please contact licensing@mondoo.com.

Expand Down
4 changes: 2 additions & 2 deletions policy/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (e *Evidence) convertToPolicyGroup() *PolicyGroup {
}
}

// no queries or checks, we dont need a policy group
// no queries or checks, we don't need a policy group
if len(queries) == 0 && len(checks) == 0 {
return nil
}
Expand Down Expand Up @@ -124,7 +124,7 @@ func (f *Framework) GenerateEvidenceObjects() (*Policy, *FrameworkMap) {

// Generates a control map by extracting the control's evidence. If no evidence is present, this function returns nil.
func (ctrl *Control) generateEvidenceControlMap() *ControlMap {
// if no evidence, we dont need a control map
// if no evidence, we don't need a control map
if len(ctrl.GetEvidence()) == 0 {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion policy/evidence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestEvidenceFillUidIfEmpty(t *testing.T) {
Uid: "uid",
}
e.fillUidIfEmpty("framework", "control", "fallback")
// uid doesnt change if already set
// uid doesn't change if already set
require.Equal(t, e.Uid, "uid")
})
}
Expand Down
2 changes: 1 addition & 1 deletion policy/executor/internal/execution_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (em *executionManager) Start() {
if r.Error != "" {
// This case is tricky to handle. If we cannot run the query at
// all, its unclear what to report for the datapoint. If we
// report them in, then another query cant report them, at least
// report them in, then another query can't report them, at least
// with the way things are right now. If we don't report them,
// things will wait around for datapoint results that will never
// arrive.
Expand Down
Loading