From 6172bc20b813c3dd9ff0f1b4f60cae309bdeb3f2 Mon Sep 17 00:00:00 2001 From: Nicola Ferraro Date: Tue, 19 May 2020 15:06:49 +0200 Subject: [PATCH] chore(lint): fix codestyle --- pkg/cmd/modeline.go | 19 ++++++++++++++++++- pkg/cmd/modeline_test.go | 3 +-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/modeline.go b/pkg/cmd/modeline.go index aee189e9ba..3a4f321af8 100644 --- a/pkg/cmd/modeline.go +++ b/pkg/cmd/modeline.go @@ -1,15 +1,32 @@ +/* +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cmd import ( "context" "fmt" "path" + "path/filepath" "github.com/apache/camel-k/pkg/util/modeline" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/pflag" - "path/filepath" ) const ( diff --git a/pkg/cmd/modeline_test.go b/pkg/cmd/modeline_test.go index 4206b6d0fc..09ff8c37ea 100644 --- a/pkg/cmd/modeline_test.go +++ b/pkg/cmd/modeline_test.go @@ -4,7 +4,6 @@ contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -20,12 +19,12 @@ package cmd import ( "context" + "io/ioutil" "os" "path" "testing" "github.com/stretchr/testify/assert" - "io/ioutil" ) func TestModelineRunSimple(t *testing.T) {