Skip to content

Commit ef2ea7b

Browse files
frelondavidcassany
authored andcommitted
Move gofmt and goimports to golangci formatters
Signed-off-by: Fredrik Lönnegren <[email protected]>
1 parent 94a9423 commit ef2ea7b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.golangci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ linters:
1111
default: none
1212
enable:
1313
- errcheck # all errors checked
14-
- gosimple # simplify code
1514
- govet # run govet
1615
- ineffassign # check ineffectual assignments
1716
- staticcheck # staticcheck
1817
- unused # unused constants, variables, functions and types
1918
- revive # replacement for golint
2019
- dupl # check duplicated code
2120
- goconst # check strings that can turn into constants
22-
- gofmt # check fmt
2321
- goheader # Check license headers, only checks files in current year
24-
- goimports # check imports
2522
- gocyclo # check complexity
2623
settings:
2724
gocyclo:
@@ -41,3 +38,7 @@ linters:
4138
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4239
See the License for the specific language governing permissions and
4340
limitations under the License.
41+
formatters:
42+
enable:
43+
- goimports
44+
- gofmt

0 commit comments

Comments
 (0)