Skip to content

Commit 09e0fba

Browse files
author
Sinyaev Anton Yuryevich
committed
init commit
0 parents  commit 09e0fba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+9557
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Used func: '...'
16+
2. What you actually wanted to do: '...'
17+
3. What has been expected: '...'
18+
4. What you got actual: '....'
19+
5. Error Log (if any): '...'
20+
6. Allure-Report screenshot (if any): '...'
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Screenshots**
26+
If applicable, add screenshots to help explain your problem.
27+
28+
**Additional context**
29+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
golangci:
13+
name: lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: allure-golangci-lint
18+
run: cd ./pkg/allure && make lint
19+
- name: framework-golangci-lint
20+
run: cd ./pkg/framework && make lint
21+
- name: provider-golangci-lint
22+
run: cd ./pkg/provider && make lint
23+
- name: examples-golangci-lint
24+
run: make lint
25+
26+
test:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: allure-test
31+
run: cd ./pkg/allure && make test
32+
- name: provider-test
33+
run: cd ./pkg/allure && make test
34+
- name: framework-test
35+
run: cd ./pkg/allure && make test

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.idea/
2+
testdata/
3+
allure-results/
4+
bin/
5+
6+
# Binaries for programs and plugins
7+
*.exe
8+
*.exe~
9+
*.dll
10+
*.so
11+
*.dylib
12+
13+
# Test binary, build with `go test -c`
14+
*.test
15+
16+
# Output of the go coverage tool, specifically when used with LiteIDE
17+
*.out

.golangci.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# More info on config here: https://github.com/golangci/golangci-lint#config-file
2+
run:
3+
deadline: 10s
4+
timeout: 5m
5+
issues-exit-code: 1
6+
tests: true
7+
skip-dirs:
8+
- bin
9+
- vendor
10+
- var
11+
- tmp
12+
skip-files:
13+
- \.pb\.go$
14+
- \.pb\.goclay\.go$
15+
- \_test.go$
16+
17+
output:
18+
format: colored-line-number
19+
print-issued-lines: true
20+
print-linter-name: true
21+
22+
linters-settings:
23+
govet:
24+
check-shadowing: true
25+
golint:
26+
min-confidence: 0
27+
dupl:
28+
threshold: 100
29+
goconst:
30+
min-len: 2
31+
min-occurrences: 2
32+
33+
linters:
34+
disable-all: true
35+
enable:
36+
- golint
37+
- govet
38+
- errcheck
39+
- deadcode
40+
- structcheck
41+
- varcheck
42+
- ineffassign
43+
- typecheck
44+
- dupl
45+
- goconst
46+
- gosec
47+
- goimports
48+
- megacheck
49+
50+
51+
issues:
52+
exclude-use-default: false
53+
exclude:
54+
# _ instead of err checks
55+
- G104
56+
- G306
57+
# md5 using for hash generation, not for security, so ignore this
58+
- G401
59+
- G501
60+
# for "public interface + private struct implementation" cases only!
61+
- exported func * returns unexported type *, which can be annoying to use
62+
# can be removed in the development phase
63+
# - (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)
64+
# not for the active development - can be removed in the stable phase
65+
- should have a package comment, unless it's in another file for this package
66+
- don't use an underscore in package name
67+
# errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
68+
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv|.*Rollback). is not checked
69+
- should check returned error before deferring
70+
- should have comment or be unexported
71+
- a blank import should be only in a main or test package
72+
- Can't process result by diff processor

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
- repo: https://github.com/dnephin/pre-commit-golang
2+
sha: HEAD
3+
hooks:
4+
- id: go-fmt
5+
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v1.4.0
8+
hooks:
9+
- id: check-yaml
10+
11+
- repo: https://github.com/Lucas-C/pre-commit-hooks-go
12+
sha: v1.0.0
13+
hooks:
14+
- id: checkmake
15+
16+
- repo: local
17+
hooks:
18+
- id: golangci-lint
19+
language: system
20+
name: Golangci linter
21+
entry: make lint
22+
23+
#- repo: local
24+
# hooks:
25+
# - id: unit-tests
26+
# language: system
27+
# name: Unit tests
28+
# entry: make test

.resources/example_attachments.png

127 KB
Loading
137 KB
Loading
171 KB
Loading
249 KB
Loading

0 commit comments

Comments
 (0)