Skip to content

Commit

Permalink
move to go mod and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Oct 21, 2021
1 parent 27d928e commit 02a47cb
Show file tree
Hide file tree
Showing 11 changed files with 139 additions and 548 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push, pull_request]
name: Test
jobs:
sca:
name: Sca
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
test:
strategy:
matrix:
go-version: [1.17.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -v -race ./...
65 changes: 65 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
linters-settings:
dupl:
threshold: 100
funlen:
lines: 100
statements: 50
goconst:
min-len: 2
min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
gocyclo:
min-complexity: 15
govet:
check-shadowing: true
lll:
line-length: 140
maligned:
suggest-new: true
misspell:
locale: US

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- exhaustive
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Martin Lindhe
Copyright (c) 2017-2021 Martin Lindhe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 0 additions & 2 deletions Makefile

This file was deleted.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# About

[![Travis-CI](https://api.travis-ci.org/martinlindhe/uu.svg)](https://travis-ci.org/martinlindhe/uu)
[![codecov.io](https://codecov.io/github/martinlindhe/uu/coverage.svg?branch=master)](https://codecov.io/github/martinlindhe/uu?branch=master)
[![GoDoc](https://godoc.org/github.com/martinlindhe/uu?status.svg)](https://godoc.org/github.com/martinlindhe/uu)

Encoder/decoder for [UUencoded](https://en.wikipedia.org/wiki/Uuencoding) text

NOTE: Uses a direct copy of [encoding/base64/base64.go](https://github.com/golang/go/blob/31c96fc2276b54f844bb5a83f2b4f817f956d976/src/encoding/base64/base64.go), in order to provide compatibility with go 1.8 and older.


### License

Expand Down
Loading

0 comments on commit 02a47cb

Please sign in to comment.