diff --git a/.gitignore b/.gitignore index bdaaaa30d002eadd4186a5dd067f64101162c5ae..2df65224e347b7d94c61db238220b38118c5a538 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # tooling **/build-tools/ artifacts/ +gl-codeclimate.json # containerlab clab-gosdn*/ diff --git a/.golangci.yml b/.golangci.yml index 30f446c5c6bb7faa65696b12964edc27ebfa6160..67e271bd5a40205ccd6bad8db07cfcc7b441bd4c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,21 +5,7 @@ run: concurrency: 8 timeout: 20m issues-exit-code: 1 - # directories to be ignored by linters - skip-dirs: - - api/ - - artifacts/ - - controller/test - - controller/mocks - - models/ - - forks/ - - plugins/examples/ - - clab-gosdn_csbi_arista_base/ - # ignore csbi, since we do not maintain it at the moment - - csbi/ skip-dirs-default: true - skip-files: - - http.go modules-download-mode: readonly # output settings -> code-climate for GitLab @@ -37,6 +23,20 @@ issues: exclude-use-default: false max-issues-per-linter: 0 max-same-issues: 0 + exclude-files: + - http.go + # directories to be ignored by linters + exclude-dirs: + - api/ + - artifacts/ + - controller/test + - controller/mocks + - models/ + - forks/ + - plugins/examples/ + - clab-gosdn_csbi_arista_base/ + # ignore csbi, since we do not maintain it at the moment + - csbi/ linters: # enable the specific needed linters