Skip to content

Commit

Permalink
Merge pull request #5226 from terraform-providers/r-package-move
Browse files Browse the repository at this point in the history
Move resource files into service packages
  • Loading branch information
tombuildsstuff authored Dec 23, 2019
2 parents 6e006ff + cfbb22b commit 3059f23
Show file tree
Hide file tree
Showing 1,159 changed files with 32,404 additions and 44,483 deletions.
8 changes: 0 additions & 8 deletions .golangci-travisrest.yml → .golangci-travis-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ linters:
- interfacer
- nakedret
- misspell
- structcheck
- typecheck
- unused
- unconvert
- varcheck
- vet
- vetshadow
- whitespace

linters-settings:
errcheck:
Expand Down
22 changes: 22 additions & 0 deletions .golangci-travis-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
run:
deadline: 30m10s
modules-download-mode: vendor

issues:
max-per-linter: 0
max-same-issues: 0

linters:
disable-all: true
enable:
- structcheck
- typecheck
- unused
- unconvert

linters-settings:
errcheck:
ignore: github.com/hashicorp/terraform-plugin-sdk/helper/schema:ForceNew|Set,fmt:.*,io:Close
misspell:
ignore-words:
- hdinsight
22 changes: 22 additions & 0 deletions .golangci-travis-3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
run:
deadline: 30m10s
modules-download-mode: vendor

issues:
max-per-linter: 0
max-same-issues: 0

linters:
disable-all: true
enable:
- varcheck
- vet
- vetshadow
- whitespace

linters-settings:
errcheck:
ignore: github.com/hashicorp/terraform-plugin-sdk/helper/schema:ForceNew|Set,fmt:.*,io:Close
misspell:
ignore-words:
- hdinsight
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ matrix:
include:
- name: "make lintstatic"
script: GOGC=15 make lintstatic
- name: "make linttravis"
script: GOGC=15 make lintrest
- name: "make linttravis1"
script: GOGC=5 make lintrest1
# TODO: fix/re-enable in a separate PR
#- name: "make linttravis2"
# script: GOGC=5 make lintrest2
#- name: "make linttravis3"
# script: GOGC=5 make lintrest3
- name: "make tflint"
script: make tflint
- name: "make test"
Expand Down
14 changes: 12 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,20 @@ lintstatic:
(while true; do sleep 300; echo "(I'm still alive and linting!)"; done) & PID=$$!; echo $$PID; \
golangci-lint run ./... -v --no-config --concurrency 1 --deadline=30m10s --disable-all --enable=staticcheck; ES=$$?; kill -9 $$PID; exit $$ES

lintrest:
lintrest1:
@echo "==> Checking source code against linters..."
(while true; do sleep 300; echo "(I'm still alive and linting!)"; done) & PID=$$!; echo $$PID; \
golangci-lint run ./... -v --concurrency 1 --deadline=30m10s --config .golangci-travisrest.yml ; ES=$$?; kill -9 $$PID; exit $$ES
golangci-lint run ./... -v --concurrency 1 --deadline=30m10s --config .golangci-travis-1.yml ; ES=$$?; kill -9 $$PID; exit $$ES

lintrest2:
@echo "==> Checking source code against linters..."
(while true; do sleep 300; echo "(I'm still alive and linting!)"; done) & PID=$$!; echo $$PID; \
golangci-lint run ./... -v --concurrency 1 --deadline=30m10s --config .golangci-travis-2.yml ; ES=$$?; kill -9 $$PID; exit $$ES

lintrest3:
@echo "==> Checking source code against linters..."
(while true; do sleep 300; echo "(I'm still alive and linting!)"; done) & PID=$$!; echo $$PID; \
golangci-lint run ./... -v --concurrency 1 --deadline=30m10s --config .golangci-travis-2.yml ; ES=$$?; kill -9 $$PID; exit $$ES

tflint:
@echo "==> Checking source code against terraform provider linters..."
Expand Down
91 changes: 0 additions & 91 deletions azurerm/data_source_api_management_api_test.go

This file was deleted.

Loading

0 comments on commit 3059f23

Please sign in to comment.