Skip to content

Commit 3a459ae

Browse files
committed
chore: address linter feedback
1 parent 823fe18 commit 3a459ae

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

internal/service/environment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414

1515
// Environment attempts to update the environment variables
1616
// for the container based off the library resources.
17+
//
18+
// nolint: lll // ignore long line length due to parameters
1719
func Environment(c *pipeline.Container, b *library.Build, r *library.Repo, s *library.Service, version string) error {
1820
// check if container or container environment are empty
1921
if c == nil || c.Environment == nil {

internal/service/snapshot.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717

1818
// Snapshot creates a moment in time record of the
1919
// service and attempts to upload it to the server.
20+
//
21+
// nolint: lll // ignore long line length due to parameters
2022
func Snapshot(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Service) {
2123
// check if the build is not in a canceled status
2224
if !strings.EqualFold(s.GetStatus(), constants.StatusCanceled) {

internal/service/upload.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import (
1616

1717
// Upload tracks the final state of the service
1818
// and attempts to upload it to the server.
19+
//
20+
// nolint: lll // ignore long line length due to parameters
1921
func Upload(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Service) {
2022
// handle the service based off the status provided
2123
switch s.GetStatus() {

internal/step/environment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414

1515
// Environment attempts to update the environment variables
1616
// for the container based off the library resources.
17+
//
18+
// nolint: lll // ignore long line length due to parameters
1719
func Environment(c *pipeline.Container, b *library.Build, r *library.Repo, s *library.Step, version string) error {
1820
// check if container or container environment are empty
1921
if c == nil || c.Environment == nil {

internal/step/snapshot.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717

1818
// Snapshot creates a moment in time record of the
1919
// step and attempts to upload it to the server.
20+
//
21+
// nolint: lll // ignore long line length due to parameters
2022
func Snapshot(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Step) {
2123
// check if the build is not in a canceled status
2224
if !strings.EqualFold(s.GetStatus(), constants.StatusCanceled) {
@@ -65,6 +67,8 @@ func Snapshot(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logr
6567

6668
// SnapshotInit creates a moment in time record of the
6769
// init step and attempts to upload it to the server.
70+
//
71+
// nolint: lll // ignore long line length due to parameters
6872
func SnapshotInit(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Step, lg *library.Log) {
6973
// check if the build is not in a canceled status
7074
if !strings.EqualFold(s.GetStatus(), constants.StatusCanceled) {

internal/step/upload.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import (
1616

1717
// Upload tracks the final state of the step
1818
// and attempts to upload it to the server.
19+
//
20+
// nolint: lll // ignore long line length due to parameters
1921
func Upload(ctn *pipeline.Container, b *library.Build, c *vela.Client, l *logrus.Entry, r *library.Repo, s *library.Step) {
2022
// handle the step based off the status provided
2123
switch s.GetStatus() {

0 commit comments

Comments
 (0)