Thank you for your interest in contributing to Fluxgate.
- Fork the repository and clone your fork.
- Ensure you have Go 1.22 or later installed.
- Run
go mod downloadto fetch dependencies.
go test ./...gofmt -w .go vet ./...go build ./cmd/fluxgate- Create a feature branch from
main. - Make your changes, ensuring all tests pass.
- Format your code with
gofmt. - Write clear commit messages.
- Open a pull request against
main.
New rules should:
- Follow the existing rule function signature in
internal/scanner/rules.go. - Include a unique rule ID (e.g.,
FG-006). - Have corresponding test fixtures in
test/fixtures/. - Include unit tests in
internal/scanner/rules_test.go.
Be respectful and constructive. We are all working toward safer CI/CD pipelines.
By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.