Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Commit 3eaadfd

Browse files
committed
Initial public version v0.0.1.
0 parents  commit 3eaadfd

Some content is hidden

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

46 files changed

+5208
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @AlekSi

.github/ISSUE_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*Please use this template for reporting suspected bugs or requests for help.*
2+
3+
# Issue description
4+
5+
# Environment
6+
7+
* Gosh version (commit hash if unreleased):
8+
* `go env` output:
9+
10+
# Minimal test code / Steps to reproduce the issue
11+
12+
1.
13+
14+
# What's the actual result? (include panic message & call stack if applicable)
15+
16+
# What's the expected result?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Pull Request Notice
2+
3+
Before sending a pull request make sure each commit solves one clear, minimal,
4+
plausible problem. Further each commit should have the following format:
5+
6+
```
7+
Problem: X is broken
8+
9+
Solution: do Y and Z to fix X
10+
```
11+
12+
Please try to have the code changes conform to the style of the surrounding code.
13+
14+
Please avoid sending a pull request with recursive merge nodes, as they
15+
are impossible to fix once merged. Please rebase your branch on
16+
top of `master` instead of merging it.
17+
18+
```
19+
git remote add upstream git@github.com:gosh-lang/gosh.git
20+
git fetch upstream
21+
git rebase upstream/master
22+
git push -f
23+
```
24+
25+
In case you already merged instead of rebasing you can drop the merge commit.
26+
27+
```
28+
git rebase -i HEAD~10
29+
```
30+
31+
Now, find your merge commit and mark it as drop and save. Finally rebase!
32+
33+
If you are a new contributor please have a look at our contributing guidelines:
34+
[CONTRIBUTING.md](../CONTRIBUTING.md)

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.idea/
2+
/.vscode/
3+
4+
/vendor/
5+
6+
/internal/gofuzz/workdir/
7+
8+
*.out
9+
*.test

.golangci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
linters-settings:
3+
govet:
4+
use-installed-packages: true
5+
6+
gocyclo:
7+
min-complexity: 30
8+
9+
maligned:
10+
suggest-new: true
11+
12+
# prevent import of go/ast, go/parser, etc.
13+
depguard:
14+
list-type: blacklist
15+
include-go-root: true
16+
packages:
17+
- go/
18+
19+
lll:
20+
line-length: 140
21+
tab-width: 4
22+
23+
unused:
24+
check-exported: true
25+
26+
unparam:
27+
algo: rta
28+
check-exported: true
29+
30+
linters:
31+
enable-all: true
32+
33+
issues:
34+
exclude-use-default: false
35+
exclude:
36+
# gas: Duplicates errcheck, but with more false positives like strings.Builder.WriteString
37+
- "G104: Errors unhandled"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## v0.0.1 "Smile" (2016-09-28)
2+
3+
* First public version.
4+
* You can write FizzBuzz in it!
5+
* But not much else.

CODE_OF_CONDUCT.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at conduct@gosh-lang.org. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Contributing Guidelines
2+
3+
Gosh, as an experiment, uses the [C4 process](https://rfc.zeromq.org/spec:42/C4/).
4+
Please do take the time to read it.
5+
6+
If you feel like it is too heavyweight and you rather not contribute at all than use it,
7+
please at least follow those 2 basic rules:
8+
9+
1. Always create an issue first. Always communicate before writing code.
10+
2. Please use the suggested commit message format and pull request body format.
11+
That allows us to use them in the CHANGELOG.md without changes.

0 commit comments

Comments
 (0)