-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
137 changed files
with
8,402 additions
and
10,889 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
webui/dist | ||
webui/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "CLA Assistant" | ||
on: | ||
issue_comment: | ||
types: [created] | ||
pull_request_target: | ||
types: [opened,closed,synchronize] | ||
|
||
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings | ||
permissions: | ||
actions: write | ||
contents: write # this can be 'read' if the signatures are in remote repository | ||
pull-requests: write | ||
statuses: write | ||
|
||
jobs: | ||
CLAAssistant: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "CLA Assistant" | ||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' | ||
uses: contributor-assistant/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# the below token should have repo scope and must be manually added by you in the repository's secret | ||
# This token is required only if you have configured to store the signatures in a remote repository/organization | ||
# PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
with: | ||
path-to-signatures: 'zarf/cla-signatures-v1.json' | ||
path-to-document: 'https://github.com/andresbott/go-carbon/blob/main/docs/cla.md' # e.g. a CLA or a DCO document | ||
# branch should not be protected | ||
branch: 'main' | ||
allowlist: bot* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: GO | ||
on: [push] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
CGO_ENABLED: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
## Setup GO | ||
- name: Setup Go 1.22 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Display Go version | ||
run: go version | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update && \ | ||
sudo apt-get install -y libsqlite3-0 libsqlite3-dev build-essential | ||
## Setup node | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
## verify | ||
- name: build UI | ||
run: make package-ui | ||
- name: go test | ||
run: make test | ||
|
||
benchmark: | ||
runs-on: ubuntu-latest | ||
env: | ||
CGO_ENABLED: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
## Setup GO | ||
- name: Setup Go 1.22 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
- name: Display Go version | ||
run: go version | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update && \ | ||
sudo apt-get install -y libsqlite3-0 libsqlite3-dev build-essential | ||
- name: go benchmark | ||
run: make benchmark | ||
|
||
verify-license: | ||
name: verify licenses | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
## Setup GO | ||
- name: Setup Go 1.22 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: install go-licence-detectors | ||
run: go install go.elastic.co/go-licence-detector@latest | ||
|
||
- name: check licenses | ||
run: make license-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
# Project | ||
web/static/css/* | ||
web/static/js/* | ||
# NPM | ||
node_modules/ | ||
# ---> Go | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# linux related | ||
.directory | ||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
|
||
# User-specific stuff: | ||
.idea/ | ||
# IDE shenanigans | ||
*.iml | ||
.idea/ | ||
|
||
# build output | ||
dist/ | ||
|
||
# SPA | ||
app/spa/files/ui/* | ||
!app/spa/files/ui/.gitkeep | ||
|
||
# project databases | ||
carbon.db | ||
zarf/appData/session | ||
!zarf/appData/session/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
#run: | ||
# # Include test files or not. | ||
# # Default: true | ||
# tests: false | ||
|
||
linters-settings: | ||
gocognit: | ||
# Minimal code complexity to report. | ||
# Default: 30 (but we recommend 10-20) | ||
min-complexity: 25 | ||
revive: | ||
# Maximum number of open files at the same time. | ||
# See https://github.com/mgechev/revive#command-line-flags | ||
# Defaults to unlimited. | ||
max-open-files: 2048 | ||
# When set to false, ignores files with "GENERATED" header, similar to golint. | ||
# See https://github.com/mgechev/revive#available-rules for details. | ||
# Default: false | ||
ignore-generated-header: true | ||
severity: warning | ||
enable-all-rules: false | ||
# Sets the default failure confidence. | ||
# This means that linting errors with less than 0.8 confidence will be ignored. | ||
# Default: 0.8 | ||
confidence: 0.8 | ||
rules: | ||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#max-control-nesting | ||
- name: max-control-nesting | ||
severity: error | ||
disabled: false | ||
exclude: [""] | ||
arguments: [3] | ||
nestif: | ||
# Minimal complexity of if statements to report. | ||
# Default: 5 | ||
min-complexity: 5 | ||
|
||
linters: | ||
enable: | ||
- nestif | ||
- gocognit | ||
|
||
issues: | ||
# List of regexps of issue texts to exclude. | ||
# | ||
# But independently of 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` | ||
# | ||
# Default: https://golangci-lint.run/usage/false-positives/#default-exclusions | ||
exclude: | ||
- abcdef | ||
# Excluding configuration per-path, per-linter, per-text and per-source | ||
exclude-rules: | ||
# Exclude some linters from running on tests files. | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- gocognit | ||
- errcheck | ||
- dupl | ||
- gosec | ||
|
||
- path: example_test\.go | ||
linters: | ||
- govet | ||
- gocyclo | ||
- gocognit | ||
- errcheck | ||
- dupl | ||
- gosec | ||
# output configuration options | ||
output: | ||
sort-results: true | ||
sort-order: | ||
- file | ||
- severity | ||
- linter |
Oops, something went wrong.