feat: add license headers (+spdx id)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9159cc315e
commit
3a2f85f683
@ -1,4 +1,7 @@
|
||||
---
|
||||
# Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test archlinux
|
||||
|
@ -1,3 +1,6 @@
|
||||
# Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
---
|
||||
failure-threshold: warning
|
||||
...
|
||||
|
@ -22,3 +22,13 @@ repos:
|
||||
rev: v0.0.1
|
||||
hooks:
|
||||
- id: hadolint-container
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: addlicense
|
||||
name: addlicence -check
|
||||
entry: >
|
||||
go run github.com/google/addlicense@v1.1.1 -check -v
|
||||
pass_filenames: true
|
||||
types_or: ["go", "yaml", "javascript", "dockerfile"]
|
||||
exclude: "^(devenv.yaml|assets/.*|templates/.*)$"
|
||||
language: system
|
||||
|
@ -1,4 +1,7 @@
|
||||
# syntax=docker/dockerfile-upstream:master-labs
|
||||
# Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
FROM docker.io/library/alpine:3.18.0 as dhall-cache
|
||||
ENV XDG_CACHE_HOME=/var/cache
|
||||
ENV DHALL_VERSION=1.42.0
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package app
|
||||
|
||||
import "errors"
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package app
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package settings
|
||||
|
||||
import "flag"
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package settings
|
||||
|
||||
import (
|
||||
|
5
bs.js
5
bs.js
@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
|
3
embed.go
3
embed.go
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package main
|
||||
|
||||
import "embed"
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package ent
|
||||
|
||||
//go:generate go run -mod=mod entgo.io/ent/cmd/ent generate ./schema
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package schema
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package schema
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package schema
|
||||
|
||||
import (
|
||||
|
3
error.go
3
error.go
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package main
|
||||
|
||||
import "errors"
|
||||
|
3
gen.go
3
gen.go
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package main
|
||||
|
||||
//go:generate npm i
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
type Iconier interface {
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import moduser "git.dotya.ml/mirre-mt/pcmt/modules/user"
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package handlers
|
||||
|
||||
type userSignin struct {
|
||||
|
10
justfile
10
justfile
@ -47,6 +47,16 @@ prod: tw build
|
||||
gen:
|
||||
go generate -v ./ent
|
||||
|
||||
# add licence headers to source code files.
|
||||
addlicense:
|
||||
go run github.com/google/addlicense@v1.1.1 \
|
||||
-v -s=only \
|
||||
-c "wanderer <a_mirre at utb dot cz>" \
|
||||
-l "AGPL-3.0-only" \
|
||||
-ignore "tmp/**" -ignore "assets/**" -ignore "config/testdata/**" \
|
||||
-ignore "*.dhall" -ignore "node_modules/**" -ignore "devenv.yaml" \
|
||||
.
|
||||
|
||||
# start pg.
|
||||
dbstart:
|
||||
mkdir -p tmp/db
|
||||
|
3
main.go
3
main.go
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package bluemonday
|
||||
|
||||
import "github.com/microcosm-cc/bluemonday"
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package db
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package funcmap
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package funcmap
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package password
|
||||
|
||||
import "golang.org/x/crypto/bcrypt"
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package template
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package template
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package template
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package user
|
||||
|
||||
// CtxKey serves as a key to context values for this package.
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package user
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package user
|
||||
|
||||
import (
|
||||
|
3
run.go
3
run.go
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package slogging
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
multipass: true,
|
||||
plugins: [
|
||||
|
@ -1,3 +1,8 @@
|
||||
/**
|
||||
* Copyright 2023 wanderer <a_mirre at utb dot cz>
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: ["./templates/**.{tmpl,html}"],
|
||||
|
Loading…
Reference in New Issue
Block a user