From a5ded8bc36469e44086df12ccdd0904e2b5f9e7e Mon Sep 17 00:00:00 2001 From: bytemare <3641580+bytemare@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:43:47 +0200 Subject: [PATCH] update-ci Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com> --- .github/.golangci.yml | 203 ------------------ .github/CODE_OF_CONDUCT.md | 57 ----- .github/CONTRIBUTING.md | 34 --- .github/ISSUE_TEMPLATE/bug-report.md | 45 ---- .github/ISSUE_TEMPLATE/config.yml | 5 - .github/Makefile | 53 ----- .../pull_request_template.md | 34 --- .github/SECURITY.md | 10 - .github/licence-header.tmpl | 7 - .github/workflows/ci.yml | 84 -------- .github/workflows/codeql.yml | 39 ---- .github/workflows/scorecards.yml | 55 ----- 12 files changed, 626 deletions(-) delete mode 100644 .github/.golangci.yml delete mode 100644 .github/CODE_OF_CONDUCT.md delete mode 100644 .github/CONTRIBUTING.md delete mode 100644 .github/ISSUE_TEMPLATE/bug-report.md delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/Makefile delete mode 100644 .github/PULL_REQUEST_TEMPLATE/pull_request_template.md delete mode 100644 .github/SECURITY.md delete mode 100644 .github/licence-header.tmpl delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/codeql.yml delete mode 100644 .github/workflows/scorecards.yml diff --git a/.github/.golangci.yml b/.github/.golangci.yml deleted file mode 100644 index 03900c6..0000000 --- a/.github/.golangci.yml +++ /dev/null @@ -1,203 +0,0 @@ -linters: - disable-all: true - enable: - - asciicheck - - bidichk - - bodyclose - - containedctx - - contextcheck - - cyclop - - deadcode - #- depguard - - dogsled - - dupl - - durationcheck - - errcheck - - errname - - errorlint - - exportloopref - - forbidigo - - forcetypeassert - - funlen - - gocognit - - goconst - - gocritic - - gocyclo - - godot - - godox - - goerr113 - - gofmt - - gofumpt - - goheader - - goimports - - gomodguard - - gomoddirectives - - goprintffuncname - - gosec - - gosimple - - govet - - ifshort - - importas - - ineffassign - - lll - - makezero - #- maligned - - megacheck - - misspell - - nakedret - - nestif - - nilerr - - nilnil - - noctx - - nolintlint - - paralleltest - - prealloc - - predeclared - - revive - - rowserrcheck - - sqlclosecheck - - staticcheck - - structcheck - - stylecheck - #- tagliatelle - - tenv - - testpackage - - thelper - - tparallel - - typecheck - - unconvert - - unparam - - unused - - varcheck - #- varnamelen - - wastedassign - - whitespace - #- wrapcheck - - wsl - #- exhaustive - #- exhaustivestruct - #- gci - #- gochecknoglobals - #- gochecknoinits - #- gomnd - #- nlreturn - presets: - - bugs - - unused - fast: false - -linters-settings: - dupl: - threshold: 100 - errcheck: - check-type-assertions: true - check-blank: true - funlen: - lines: 100 - statements: 50 - gocognit: - min-complexity: 15 - goconst: - min-len: 2 - min-occurrences: 2 - gocritic: - enabled-tags: - - diagnostic - - experimental - - opinionated - - performance - - style - gocyclo: - min-complexity: 15 - godox: - keywords: - - NOTE - - OPTIMIZE - - HACK - - TODO - - todo - gofmt: - simplify: true - goimports: - local-prefixes: github.com/bytemare/frost - gomnd: - settings: - mnd: - checks: - - argument - - case - - condition - - operation - - return - - assign - govet: - check-shadowing: true - - # settings per analyzer - settings: - printf: # analyzer name, run `go tool vet help` to see all analyzers - funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer - - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof - - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf - - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf - - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf - - # enable or disable analyzers by name - enable: - - atomicalign - disable-all: false - lll: - line-length: 120 - # tab width ('\t') in spaces. Default to 1. - tab-width: 4 - maligned: - suggest-new: true - misspell: - locale: US - prealloc: - simple: false - for-loops: true - unused: - check-exported: false - whitespace: - multi-if: false - multi-func: false - wsl: - # Allow declarations (var) to be cuddled. - allow-cuddle-declarations: true - # Allow trailing comments in ending of blocks - allow-trailing-comment: false - # Force newlines in end of case at this limit (0 = never). - force-case-trailing-whitespace: 0 - # Force cuddling of err checks with err var assignment - force-err-cuddling: true - # Allow leading comments to be separated with empty liens - allow-separated-leading-comment: false - -issues: - # List of regexps of issue texts to exclude, empty list by default. - # But independently from this option we use default exclude patterns, - # it can be disabled by `exclude-use-default: false`. To list all - # excluded by default patterns execute `golangci-lint run --help` - exclude: - - "should have a package comment, unless it's in another file for this package" - - exclude-rules: - - path: ./* - linters: - - exhaustive - - max-issues-per-linter: 0 - max-same-issues: 0 - - # Independently from option `exclude` we use default exclude patterns, - # it can be disabled by this option. To list all - # excluded by default patterns execute `golangci-lint run --help`. - # Default value for this option is true. - exclude-use-default: false - -run: - tests: false - -output: - format: github-actions \ No newline at end of file diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md deleted file mode 100644 index 9e07407..0000000 --- a/.github/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,57 +0,0 @@ - -# Contributor Covenant Code of Conduct [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](code_of_conduct.md) - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, caste, color, religion, or sexual identity -and orientation. - -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -* Focusing on what is best not just for us as individuals, but for the - overall community - -Examples of unacceptable behavior include: - -* The use of sexualized language or imagery, and sexual attention or - advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email - address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.0, available at -[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0]. - -Community Impact Guidelines were inspired by -[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. - -For answers to common questions about this code of conduct, see the FAQ at -[https://www.contributor-covenant.org/faq][FAQ]. Translations are available -at [https://www.contributor-covenant.org/translations][translations]. - -[homepage]: https://www.contributor-covenant.org -[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html -[Mozilla CoC]: https://github.com/mozilla/diversity -[FAQ]: https://www.contributor-covenant.org/faq -[translations]: https://www.contributor-covenant.org/translations diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md deleted file mode 100644 index 8e40d2f..0000000 --- a/.github/CONTRIBUTING.md +++ /dev/null @@ -1,34 +0,0 @@ -# How to contribute - -### Did you find a bug? 🐞 - -* 🔎 Please ensure your findings have not already been reported by searching on the project repository under [Issues](https://github.com/bytemare/frost). -* If you think your findings can be complementary to an existing issue, don't hesitate to join the conversation 😃☕ -* If there's no issue addressing the problem, [open a new one](https://github.com/bytemare/frost/issues/new). Please be clear in the title and description, and add relevant information. Bonus points if you provide a **code sample** and everything needed to reproduce the issue when expected behaviour is not occurring. -* If possible, use the relevant issue templates. - -### Do you have a fix? - -🎉 That's awesome! Pull requests are welcome! - -* Please [open an issue](https://github.com/bytemare/frost) beforehand, so we can discuss this. -* Fork this repo from `main`, and ensure your fork is up-to-date with it when submitting the PR. -* If your changes impact the documentation, please update it accordingly. -* If you added code that impact tests, please add tests with relevant coverage and test cases. Bonus points for fuzzing. -* 🛠️ Make sure the test suite passes. - -If your changes might have an impact on performance, please benchmark your code and measure the impact, share the results and the tests that lead to these results. - -Please note that changes that are purely cosmetic and do not add anything substantial to the stability, functionality, or testability of the project may not be accepted. - -### Coding Convention - -This project tries to be as Go idiomatic as possible. Conventions from [Effective Go](https://golang.org/doc/effective_go) apply here. Tests use a very opinionated linting configuration that you should use before committing to your changes. - -### Licence - -By contributing to this project, you agree that your contributions will be licensed under the project's [License](https://github.com/bytemare/template/blob/main/LICENSE). - -All contributions (including pull requests) must agree to the [Developer Certificate of Origin (DCO) version 1.1](http://developercertificate.org). It states that the contributor has the right to submit the patch for inclusion into the project. Simply submitting a contribution implies this agreement, however, please include the "Signed-off-by" git tag in every commit (this tag is a conventional way to confirm that you agree to the DCO). - -Thanks! :heart: \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md deleted file mode 100644 index 915c281..0000000 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -name: "\U0001F41E Bug report" -about: Create a report to help us improve -title: "[BUG]" -labels: bug -assignees: bytemare - ---- - - - -### Describe the bug -A clear and concise description of what the bug is. - -### Your setup - -**What version/commit of the project are you using?** - -**What version of go are you using?** -
-$ go version - -- -**What does the go environment look like?** -
go env
Output-$ go env - -