Skip to content

Commit 177bf56

Browse files
committed
Move gofmt and goimports to golangci formatters
Signed-off-by: Fredrik Lönnegren <[email protected]>
1 parent d8729d7 commit 177bf56

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.golangci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ linters:
1919
- revive # replacement for golint
2020
- dupl # check duplicated code
2121
- goconst # check strings that can turn into constants
22-
- gofmt # check fmt
2322
- goheader # Check license headers, only checks files in current year
24-
- goimports # check imports
2523
- gocyclo # check complexity
2624
settings:
2725
gocyclo:
@@ -41,3 +39,7 @@ linters:
4139
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4240
See the License for the specific language governing permissions and
4341
limitations under the License.
42+
formatters:
43+
enable:
44+
- goimports
45+
- gofmt

0 commit comments

Comments
 (0)