Skip to content

Commit de5f473

Browse files
authored
Merge pull request #2 from badpacketsllc/1-correct-documentation
Correct and update documentation
2 parents 3f8cf6d + 8ff96a2 commit de5f473

File tree

4 files changed

+122
-68
lines changed

4 files changed

+122
-68
lines changed

CODE_OF_CONDUCT.md

Lines changed: 97 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,76 +2,126 @@
22

33
## Our Pledge
44

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.
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
1114

1215
## Our Standards
1316

14-
Examples of behavior that contributes to creating a positive environment
15-
include:
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
1619

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
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
2227

23-
Examples of unacceptable behavior by participants include:
28+
Examples of unacceptable behavior include:
2429

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
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
2833
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
3136
* Other conduct which could reasonably be considered inappropriate in a
3237
professional setting
3338

34-
## Our Responsibilities
39+
## Enforcement Responsibilities
3540

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.
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
3945

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.
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
4550

4651
## Scope
4752

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.
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
5458

5559
## Enforcement
5660

5761
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [INSERT EMAIL ADDRESS]. 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.
62+
reported to the community leaders responsible for enforcement.
63+
All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series
85+
of actions.
6386

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.
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or
92+
permanent ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within
112+
the community.
67113

68114
## Attribution
69115

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
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.0, available at
118+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
72119

73-
[homepage]: https://www.contributor-covenant.org
120+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
121+
enforcement ladder](https://github.com/mozilla/diversity).
74122

75-
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
123+
[homepage]: https://www.contributor-covenant.org
77124

125+
For answers to common questions about this code of conduct, see the FAQ at
126+
https://www.contributor-covenant.org/faq. Translations are available at
127+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can contribute in several different ways:
1111

1212
### Report bugs
1313

14-
Report bugs at https://github.com/badpacketsllc/prospector/issues.
14+
Report bugs at https://github.com/badpacketsllc/docker-prospector/issues.
1515

1616
If you are reporting a bug, please include:
1717

@@ -37,35 +37,38 @@ suite or wherever you feel is appropriate.
3737
Setting up a development environment
3838
------------------------------------
3939

40-
1. Fork the `prospector` repo on GitHub.
40+
1. Fork the `docker-prospector` repo on GitHub.
4141
2. Clone your fork locally:
4242

4343
```shell
44-
$ git clone [email protected]:your_name_here/prospector.git
44+
$ git clone [email protected]:your_name_here/prospector.git
4545
```
4646

4747
3. [Install docker](https://docs.docker.com/get-started/).
4848

4949
4. Create a branch for local development
5050
```shell
51-
$ git checkout -b description-of-bug-or-feature
51+
$ git checkout -b description-of-bug-or-feature
5252
````
5353

5454
Now you can make your changes locally.
5555

5656
5. When you're done making changes, check that your changes pass the tests:
5757
5858
```shell
59-
$ pip3 install tox
60-
$ tox
59+
$ pip3 install --user pipenv
60+
$ pipenv install --dev
61+
$ pipenv run yamllint .
62+
$ pipenv run prospector
63+
$ pipenv run pytest
6164
```
6265
6366
6. Commit your changes and push your branch to GitHub:
6467
6568
```shell
66-
$ git add .
67-
$ git commit -m "Your detailed description of your changes."
68-
$ git push origin name-of-your-bugfix-or-feature
69+
$ git add .
70+
$ git commit -m "Your detailed description of your changes."
71+
$ git push origin name-of-your-bugfix-or-feature
6972
```
7073
7174
7. Submit a pull request through the GitHub website.
@@ -74,4 +77,5 @@ Responsibilities
7477
----------------
7578
7679
1. Create issues for any bugs, changes or enhancements.
77-
2. Be welcoming and nice as outlined in our Code of Conduct (https://www.contributor-covenant.org/version/1/4/code-of-conduct).
80+
2. Be welcoming and nice as outlined in our
81+
[Code of Conduct](https://github.com/badpacketsllc/docker-prospector/blob/master/CODE_OF_CONDUCT.md).

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#
1111
# To run `prospector` against code in the current directory using the image
1212
# from Docker Hub:
13-
# $ docker run --rm -it -v $PWD:/data:ro,Z badpacketsllc/prospector prospector
13+
# $ docker run --rm -it -v ${PWD}:/data:ro,Z badpacketsllc/prospector
1414
#
1515
# To run `prospector` against code in the current directory using the image
1616
# built locally from source
17-
# $ docker run --rm -it -v $PWD:/data:ro,Z prospector
17+
# $ docker run --rm -it -v ${PWD}:/data:ro,Z prospector
1818
#
1919
# Copyright 2020 Bad Packets LLC
2020
# Licensed under a GPLv2 license

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# prospector
2-
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/badpacketsllc/prospector/graphs/commit-activity)
3-
[![Build status](https://img.shields.io/travis/com/badpacketsllc/prospector.svg?style=flat)](https://travis-ci.com/badpacketsllc/prospector)
4-
[![Ansible role downloads](https://img.shields.io/docker/pulls/badpacketsllc/prospector)](https://hub.docker.com/r/badpacketsllc/prospector)
5-
[![License](https://img.shields.io/github/license/badpacketsllc/prospector?style=flat)](https://github.com/badpacketsllc/prospector/blob/master/LICENSE)
1+
# docker-prospector
2+
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/badpacketsllc/docker-prospector/graphs/commit-activity)
3+
[![Build status](https://img.shields.io/travis/com/badpacketsllc/docker-prospector.svg?style=flat)](https://travis-ci.com/badpacketsllc/docker-prospector)
4+
[![Docker image download](https://img.shields.io/docker/pulls/badpacketsllc/prospector)](https://hub.docker.com/r/badpacketsllc/prospector)
5+
[![License](https://img.shields.io/github/license/badpacketsllc/docker-prospector?style=flat)](https://github.com/badpacketsllc/docker-prospector/blob/master/LICENSE)
66
[![Follow us on twitter](https://img.shields.io/twitter/follow/bad_packets.svg?style=social)](https://twitter.com/bad_packets/)
77

88
Prospector docker container image
@@ -18,12 +18,12 @@ Usage
1818
To run `prospector` against code in the current directory using the image
1919
from Docker Hub:
2020

21-
`$ docker run --rm -it -v $PWD:/data:ro,Z badpacketsllc/prospector prospector`
21+
`$ docker run --rm -it -v ${PWD}:/data:ro,Z badpacketsllc/prospector`
2222

2323
To run `prospector` against code in the current directory using the image
2424
built locally from source:
2525

26-
`$ docker run --rm -it -v $PWD:/data:ro,Z prospector`
26+
`$ docker run --rm -it -v ${PWD}:/data:ro,Z prospector`
2727

2828
Running tests
2929
-------------
@@ -48,9 +48,9 @@ Contributing
4848
------------
4949

5050
Contributions are encouraged! Learn how to contribute by reading
51-
[CONTRIBUTING.md](https://github.com/badpacketsllc/prospector/blob/master/CONTRIBUTING.md).
51+
[CONTRIBUTING.md](https://github.com/badpacketsllc/docker-prospector/blob/master/CONTRIBUTING.md).
5252
Please be nice and follow our
53-
[Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct).
53+
[Code of Conduct](https://github.com/badpacketsllc/docker-prospector/blob/master/CODE_OF_CONDUCT.md).
5454

5555
License
5656
-------

0 commit comments

Comments
 (0)