-
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.
- Loading branch information
Showing
42 changed files
with
2,841 additions
and
0 deletions.
There are no files selected for viewing
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,15 @@ | ||
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
coverage: | ||
range: 50..80 | ||
round: down | ||
precision: 2 | ||
|
||
ignore: | ||
- "*_test.go" | ||
- "vendor" | ||
|
||
fixes: | ||
- "github.com/xmidt-org/__PROJECT__/::" |
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,28 @@ | ||
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
version: 2 | ||
updates: | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every day | ||
interval: "daily" | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: daily | ||
labels: | ||
- "dependencies" | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" | ||
open-pull-requests-limit: 10 |
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,27 @@ | ||
# SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- README.md | ||
- CONTRIBUTING.md | ||
- MAINTAINERS.md | ||
- LICENSE | ||
- NOTICE | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ci: | ||
uses: xmidt-org/shared-go/.github/workflows/ci.yml@59f5d322b0ee953245334530336f8e6503cacb65 # v4.4.27 | ||
with: | ||
release-type: library | ||
yaml-lint-skip: false | ||
secrets: inherit |
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,16 @@ | ||
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: 'Dependabot auto approval' | ||
|
||
on: | ||
pull_request_target | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
package: | ||
uses: xmidt-org/.github/.github/workflows/dependabot-approver-template.yml@main | ||
secrets: inherit |
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,18 @@ | ||
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: 'PROJ: xmidt-team' | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
package: | ||
uses: xmidt-org/.github/.github/workflows/proj-template.yml@proj-v1 | ||
secrets: inherit |
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,25 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
coverage* | ||
report.json | ||
|
||
# Ignore the vendor structure | ||
*vendor/ | ||
|
||
# Ignore the various build artifacts | ||
.ignore | ||
|
||
# Vim | ||
*.swp | ||
|
||
cmd/skeleton/skeleton |
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 @@ | ||
# SPDX-FileCopyrightText: 2023 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
linters: | ||
enable: | ||
- bodyclose | ||
- dupl | ||
- errorlint | ||
- funlen | ||
- goconst | ||
- gosec | ||
- misspell | ||
- unconvert | ||
- prealloc | ||
disable: | ||
- errcheck | ||
- ineffassign | ||
|
||
issues: | ||
exclude-rules: | ||
- path: _test.go | ||
linters: | ||
- dupl | ||
- funlen | ||
|
||
linters-settings: | ||
errorlint: | ||
# Report non-wrapping error creation using fmt.Errorf | ||
errorf: false | ||
misspell: | ||
locale: US |
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,44 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: skeleton | ||
Upstream-Contact: Weston Schmidt <[email protected] | ||
Source: https://github.com/xmidt-org/skeleton | ||
|
||
Files: NOTICE | ||
Copyright: SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: .gitignore | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: .whitesource | ||
Copyright: SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: CONTRIBUTING.md | ||
Copyright: SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: MAINTAINERS.md | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: README.md | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: go.mod | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: go.sum | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: .vscode/*.json | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 | ||
|
||
Files: cmd/skeleton/README.md | ||
Copyright: SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
License: Apache-2.0 |
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,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Package", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "auto", | ||
"program": "${workspaceFolder}/cmd/fides" | ||
} | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"scanSettings": { | ||
"baseBranches": [] | ||
}, | ||
"checkRunSettings": { | ||
"vulnerableCheckRunConclusionLevel": "failure", | ||
"displayMode": "diff" | ||
}, | ||
"issueSettings": { | ||
"minSeverityLevel": "LOW" | ||
} | ||
} |
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,37 @@ | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
|
||
extends: default | ||
|
||
ignore: [] | ||
|
||
rules: | ||
braces: | ||
level: warning | ||
max-spaces-inside: 1 | ||
brackets: | ||
level: warning | ||
max-spaces-inside: 1 | ||
colons: | ||
level: warning | ||
max-spaces-after: -1 | ||
commas: | ||
level: warning | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: | ||
present: true | ||
empty-lines: | ||
max: 2 | ||
hyphens: | ||
max-spaces-after: 1 | ||
indentation: | ||
level: error | ||
indent-sequences: consistent | ||
line-length: | ||
level: warning | ||
max: 90 | ||
allow-non-breakable-words: true | ||
allow-non-breakable-inline-mappings: true | ||
truthy: disable |
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,66 @@ | ||
Contribution Guidelines | ||
======================= | ||
|
||
We love to see contributions to the project and have tried to make it easy to | ||
do so. If you would like to contribute code to this project you can do so | ||
through GitHub by [forking the repository and sending a pull request](http://gun.io/blog/how-to-github-fork-branch-and-pull-request/). | ||
|
||
Before Comcast merges your code into the project you must sign the | ||
[Comcast Contributor License Agreement (CLA)](https://gist.github.com/ComcastOSS/a7b8933dd8e368535378cda25c92d19a). | ||
|
||
If you haven't previously signed a Comcast CLA, you'll automatically be asked | ||
to when you open a pull request. Alternatively, we can e-mail you a PDF that | ||
you can sign and scan back to us. Please send us an e-mail or create a new | ||
GitHub issue to request a PDF version of the CLA. | ||
|
||
If you have a trivial fix or improvement, please create a pull request and | ||
request a review from a [maintainer](MAINTAINERS.md) of this repository. | ||
|
||
If you plan to do something more involved, that involves a new feature or | ||
changing functionality, please first create an [issue](#issues) so a discussion of | ||
your idea can happen, avoiding unnecessary work and clarifying implementation. | ||
|
||
A relevant coding style guideline is the [Go Code Review Comments](https://code.google.com/p/go-wiki/wiki/CodeReviewComments). | ||
|
||
Documentation | ||
------------- | ||
|
||
If you contribute anything that changes the behavior of the application, | ||
document it in the follow places as applicable: | ||
* the code itself, through clear comments and unit tests | ||
* [README](README.md) | ||
|
||
This includes new features, additional variants of behavior, and breaking | ||
changes. | ||
|
||
Testing | ||
------- | ||
|
||
Tests are written using golang's standard testing tools, and are run prior to | ||
the PR being accepted. | ||
|
||
Issues | ||
------ | ||
|
||
For creating an issue: | ||
* **Bugs:** please be as thorough as possible, with steps to recreate the issue | ||
and any other relevant information. | ||
* **Feature Requests:** please include functionality and use cases. If this is | ||
an extension of a current feature, please include whether or not this would | ||
be a breaking change or how to extend the feature with backwards | ||
compatibility. | ||
* **Security Vulnerability:** please report it at | ||
https://my.xfinity.com/vulnerabilityreport and contact the [maintainers](MAINTAINERS.md). | ||
|
||
If you wish to work on an issue, please assign it to yourself. If you have any | ||
questions regarding implementation, feel free to ask clarifying questions on | ||
the issue itself. | ||
|
||
Pull Requests | ||
------------- | ||
|
||
* should be narrowly focused with no more than 3 or 4 logical commits | ||
* when possible, address no more than one issue | ||
* should be reviewable in the GitHub code review tool | ||
* should be linked to any issues it relates to (i.e. issue number after (#) in commit messages or pull request message) | ||
* should conform to idiomatic golang code formatting |
Oops, something went wrong.