Skip to content

Commit afd187f

Browse files
committed
First public release
1 parent ba64557 commit afd187f

18 files changed

+1329
-2
lines changed

.codebeatsettings

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"GOLANG": {
3+
"ABC": [15, 25, 50, 70],
4+
"LOC": [30, 45, 70, 100],
5+
"BLOCK_NESTING": [4, 6, 8, 10],
6+
"TOO_MANY_IVARS": [50, 75, 100, 150],
7+
"TOO_MANY_FUNCTIONS": [64, 128, 256, 512],
8+
"TOTAL_LOC": [1500, 3000, 5000, 10000],
9+
"TOTAL_COMPLEXITY": [350, 600, 900, 1200]
10+
}
11+
}

.github/CODE_OF_CONDUCT.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of
4+
fostering an open and welcoming community, we pledge to respect all people who
5+
contribute through reporting issues, posting feature requests, updating
6+
documentation, submitting pull requests or patches, and other activities.
7+
8+
We are committed to making participation in this project a harassment-free
9+
experience for everyone, regardless of level of experience, gender, gender
10+
identity and expression, sexual orientation, disability, personal appearance,
11+
body size, race, ethnicity, age, religion, or nationality.
12+
13+
Examples of unacceptable behavior by participants include:
14+
15+
* The use of sexualized language or imagery
16+
* Personal attacks
17+
* Trolling or insulting/derogatory comments
18+
* Public or private harassment
19+
* Publishing other's private information, such as physical or electronic
20+
addresses, without explicit permission
21+
* Other unethical or unprofessional conduct
22+
23+
Project maintainers have the right and responsibility to remove, edit, or
24+
reject comments, commits, code, wiki edits, issues, and other contributions
25+
that are not aligned to this Code of Conduct, or to ban temporarily or
26+
permanently any contributor for other behaviors that they deem inappropriate,
27+
threatening, offensive, or harmful.
28+
29+
By adopting this Code of Conduct, project maintainers commit themselves to
30+
fairly and consistently applying these principles to every aspect of managing
31+
this project. Project maintainers who do not follow or enforce the Code of
32+
Conduct may be permanently removed from the project team.
33+
34+
This Code of Conduct applies both within project spaces and in public spaces
35+
when an individual is representing the project or its community.
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
38+
reported by contacting a project maintainer at `[email protected]`. All
39+
complaints will be reviewed and investigated and will result in a response that
40+
is deemed necessary and appropriate to the circumstances. Maintainers are
41+
obligated to maintain confidentiality with regard to the reporter of an
42+
incident.

.github/CONTRIBUTING.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing Guidelines
2+
3+
**IMPORTANT! Contribute your code only if you have an excellent understanding of project idea and all existing code base. Otherwise, a nicely formatted issue will be more helpful to us.**
4+
5+
### Issues
6+
7+
1. Provide product version where the problem was found;
8+
2. Provide info about your environment;
9+
3. Provide detailed info about your problem;
10+
4. Provide steps to reproduce the problem;
11+
5. Provide actual and expected results.
12+
13+
### Code
14+
15+
1. Check your code **before** creating pull request;
16+
2. If tests are present in a project, add tests for your code;
17+
3. Add inline documentation for your code;
18+
4. Apply code style used throughout the project;
19+
5. Create your pull request to `develop` branch (_pull requests to other branches are not allowed_).

.github/ISSUE_TEMPLATE.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
_Before opening an issue, search for similar bug reports or feature requests on GitHub Issues. If yes, please add a_ 👍 _reaction to the existing issue. If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below. Erase the other section and everything on and above this line._
2+
3+
### Bug report
4+
5+
**System info:**
6+
7+
* **Version used (`jira-reindex-runner --version`):**
8+
* **OS (e.g. from `/etc/*-release`):**
9+
* **Kernel (`uname -a`):**
10+
* **Install tools:**
11+
12+
**Steps to reproduce:**
13+
14+
1. [First Step]
15+
2. [Second Step]
16+
3. [and so on...]
17+
18+
**Expected behavior:**
19+
20+
[What you expected to happen]
21+
22+
**Actual behavior:**
23+
24+
[What actually happened]
25+
26+
**Additional info:**
27+
28+
[Include gist of relevant config, logs, etc.]
29+
30+
Please run those if possible and link them from a [gist](http://gist.github.com).
31+
32+
---
33+
34+
### Feature Request
35+
36+
Opening a feature request kicks off a discussion. Requests may be closed if we're not actively planning to work on them.
37+
38+
**Proposal:**
39+
40+
[Description of the feature]
41+
42+
**Current behavior:**
43+
44+
[What currently happens]
45+
46+
**Desired behavior:**
47+
48+
[What you would like to happen]
49+
50+
**Use case:**
51+
52+
[Why is this important (helps with prioritizing requests)]
53+

.github/PULL_REQUEST_TEMPLATE.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### What did you implement:
2+
3+
Closes #XXXXX
4+
5+
### How did you implement it:
6+
7+
...
8+
9+
### How can we verify it:
10+
11+
...
12+
13+
### TODO's:
14+
15+
- [ ] Write tests
16+
- [ ] Write documentation
17+
- [ ] Check that there aren't other open pull requests for the same issue/feature
18+
- [ ] Format your source code by `make fmt`
19+
- [ ] Provide verification config / commands
20+
- [ ] Enable "Allow edits from maintainers" for this PR
21+
- [ ] Update the messages below
22+
23+
**Is this ready for review?:** No
24+
**Is it a breaking change?:** No

.github/workflows/ci.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
Go:
11+
name: Go
12+
runs-on: ubuntu-latest
13+
14+
env:
15+
SRC_DIR: src/github.com/${{ github.repository }}
16+
GO111MODULE: auto
17+
18+
strategy:
19+
matrix:
20+
go: [ '1.15.x', '1.16.x' ]
21+
22+
steps:
23+
- name: Set up Go
24+
uses: actions/setup-go@v2
25+
with:
26+
go-version: ${{ matrix.go }}
27+
id: go
28+
29+
- name: Setup PATH
30+
run: |
31+
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
32+
echo "GOBIN=${{ github.workspace }}/bin" >> "$GITHUB_ENV"
33+
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
34+
35+
- name: Checkout
36+
uses: actions/checkout@v2
37+
with:
38+
path: ${{env.SRC_DIR}}
39+
40+
- name: Download dependencies
41+
working-directory: ${{env.SRC_DIR}}
42+
run: make deps
43+
44+
- name: Run tests
45+
working-directory: ${{env.SRC_DIR}}
46+
run: make all
47+

.github/workflows/codeql.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 17 * * 1,3,5'
10+
11+
jobs:
12+
analyse:
13+
name: Analyse
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 2
21+
22+
- name: Initialize CodeQL
23+
uses: github/codeql-action/init@v1
24+
with:
25+
languages: go
26+
27+
- name: Perform CodeQL Analysis
28+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)