Skip to content

Commit d6ffdaa

Browse files
authored
fix: add package comments and enable revive check (#844)
Signed-off-by: Aryan Behmardi <arianbehmard@gmail.com>
1 parent f26f754 commit d6ffdaa

File tree

31 files changed

+62
-3
lines changed

31 files changed

+62
-3
lines changed

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ issues:
3737
- linters:
3838
- govet
3939
text: "copylocks"
40-
- linters:
41-
- revive
42-
text: package-comments
4340
- linters:
4441
- staticcheck
4542
text: "Do not rely on the global seed"

agent/agent_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// agent_test contains tests for helper functions in the agent binary,
15+
// including validation of TaskExecID behavior.
1416
package main
1517

1618
import (

client/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package client contains helpers for working with containers managed by
15+
// firecracker-containerd, such as computing rootfs paths inside a microVM.
1416
package client
1517

1618
import "github.com/firecracker-microvm/firecracker-containerd/internal/bundle"

config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package config defines configuration structures and helpers used by
15+
// firecracker-containerd, including loading and validating config files.
1416
package config
1517

1618
import (

eventbridge/eventbridge.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package eventbridge implements an event forwarding bridge that translates
15+
// and relays containerd events to firecracker-containerd components.
1416
package eventbridge
1517

1618
import (

firecracker-control/client/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package client implements a Go client for interacting with the
15+
// firecracker-control service, providing access to VM and lifecycle
16+
// management APIs.
1417
package client
1518

1619
import (

firecracker-control/cmd/containerd/gomod_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// gomod_test keeps the firecracker-control containerd command and its
15+
// dependencies visible to Go's module tooling so they are not pruned.
1416
package main
1517

1618
import "github.com/containerd/containerd/cmd/ctr/app"

firecracker-control/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package service defines common constants shared by the firecracker-control
15+
// service implementation, such as plugin identifiers.
1416
package service
1517

1618
const (

internal/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package internal contains shared helpers and internal utilities used
15+
// across firecracker-containerd components.
1416
package internal
1517

1618
import (

internal/debug/debug.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// express or implied. See the License for the specific language governing
1212
// permissions and limitations under the License.
1313

14+
// Package debug provides helpers for configuring firecracker-containerd
15+
// logging and managing debug log levels across components.
1416
package debug
1517

1618
import (

0 commit comments

Comments
 (0)