Skip to content

Commit 3a304e5

Browse files
authored
feat: SCTE-35 2023r1 compliance (#69)
1 parent c6d5e81 commit 3a304e5

File tree

12 files changed

+714
-68
lines changed

12 files changed

+714
-68
lines changed

.github/workflows/release.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: release
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
tags: "v*"
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Create release
15+
uses: softprops/action-gh-release@v2
16+
id: release
17+
with:
18+
draft: false
19+
name: ${{ github.ref_name }}
20+
generate_release_notes: true
21+
append_body: true

.golangci.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
run:
33
tests: false
4-
timeout: 5m
54

65
linters-settings:
76
errcheck:
@@ -16,7 +15,6 @@ linters:
1615
- containedctx
1716
- contextcheck
1817
- copyloopvar
19-
- decorder
2018
- errname
2119
- errorlint
2220
- exhaustive
@@ -26,19 +24,15 @@ linters:
2624
- godox
2725
- gofmt
2826
- goimports
29-
- goprintffuncname
3027
- gosec
31-
- intrange
3228
- misspell
3329
- noctx
34-
- nosprintfhostport
3530
- revive
36-
- sqlclosecheck
3731
- stylecheck
32+
- sqlclosecheck
3833
- testpackage
3934
- unparam
40-
- wastedassign
41-
- whitespace
35+
- unused
4236

4337
issues:
4438
include:

.yamllint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
braces:
6+
min-spaces-inside: 0
7+
max-spaces-inside: 1
8+
comments:
9+
require-starting-space: true
10+
ignore-shebangs: true
11+
min-spaces-from-content: 1
12+
indentation:
13+
spaces: 2
14+
indent-sequences: true
15+
line-length: disable
16+
quoted-strings:
17+
quote-type: double
18+
required: false
19+
ignore: |
20+
Taskfile.yaml

Taskfile.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
version: "3"
3+
4+
vars:
5+
VERSION: "v1.5.0"
6+
7+
tasks:
8+
clean:
9+
desc: "Clean build artifacts"
10+
dir: "{{.ROOT_DIR}}"
11+
silent: true
12+
cmds:
13+
- go clean -cache -testcache
14+
15+
test:
16+
desc: "Run test suite"
17+
dir: "{{.ROOT_DIR}}"
18+
silent: true
19+
cmds:
20+
- go test -cover --race ./...
21+
22+
release:
23+
desc: "Create a release for the current version."
24+
silent: true
25+
preconditions:
26+
- sh: git diff --exit-code
27+
msg: please commit changes before releasing
28+
cmds:
29+
- git diff --exit-code && git tag -a "v{{.VERSION}}" -m "Tagged v{{.VERSION}}"
30+
- git push origin main --atomic --follow-tags

docs/SCTE_35_2023r1.pdf

4.83 MB
Binary file not shown.

0 commit comments

Comments
 (0)