Skip to content

Commit 5f8642d

Browse files
authored
Merge pull request #38 from target/contributing
Create CONTRIBUTING and some templates
2 parents 092de5d + 71bb037 commit 5f8642d

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: New check
3+
about: Suggest a new check
4+
title: 'New check:'
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
# What would you like to check?
11+
12+
<!-- Provide as much detail as you can about what precisely you want to check. -->
13+
14+
# What does the configuration look like?
15+
16+
<!--
17+
Provide documentation of how you envision the configuration of the validator to function. Please follow the style of other validators in the README, see https://github.com/target/data-validator#validators.
18+
Most of our rework requests are the result of an unclear vision for the interface to the check!
19+
-->
20+
21+
# Are you going to work on it, or are you asking for it?
22+
23+
- [ ] Asking
24+
- [ ] Working
25+
26+
## If _working_ on it, when do you think you'll have a PR ready?
27+
28+
<!-- Delete the previous header above if you're just asking for the check. -->
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: New check
3+
about: Submit a new check
4+
title: 'New check:'
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
# What issue is this PR solving?
11+
12+
<!-- Provide the link. -->
13+
14+
# What does the configuration look like?
15+
16+
<!--
17+
#### validatorName
18+
19+
Provide a brief description of check and the condition that will result in a failure. Document any arguments in the table below.
20+
21+
| Arg | Type | Description |
22+
|-----|------|-------------|
23+
-->
24+
25+
# Have you completed all of these?
26+
27+
- [ ] Add configuration documentation to the Validators section of the README. You should be able to copy this from the previous section.
28+
- [ ] Pass the style checker requirements without warnings or errors (`sbt test` will not work without compliance!)
29+
- [ ] Does not modify any of the other validators. Please review the section Refactoring in the CONTRIBUTING.md.
30+
- [ ] Include tests. Submissions without tests will not be considered. Test the following things:
31+
- [ ] Configuration parsing
32+
- [ ] Configuration sanity checking
33+
- [ ] Variable substitution
34+
- [ ] Actual check functionality

CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing to Data Validator
2+
3+
## Fixing a bug you found
4+
5+
1. Check existing [issues](https://github.com/target/data-validator/issues) first to see if anyone else has reported the bug
6+
2. Report the bug if no one else has reported it.
7+
3. Fix the bug.
8+
4. Submit a PR.
9+
5. Be ready for some back-and-forth between maintainers and you.
10+
11+
## Creating new checks
12+
13+
1. Check existing [issues](https://github.com/target/data-validator/issues) first to see if anyone else has reported a desire for the check.
14+
2. If it doesn't exist (it probably won't!) then create a new issue:
15+
1. Provide an example of how you would like the configuration for the check to look. Most of our rework requests are the result of an unclear vision for the interface to the check!
16+
2. Clearly state if you are intending to work on it or if you are simply asking for it. If you're going to work on it, please provide a timeline for delivery. If you're just asking for it, you're done after you've submitted the request issue.
17+
3. Work on it!
18+
1. Abide by the style checker requirements.
19+
2. Include tests. Submissions without tests will not be considered. Test the following things:
20+
1. Configuration parsing
21+
2. Configuration sanity checking
22+
3. Variable substitution
23+
4. Actual check functionality
24+
25+
## Refactoring
26+
27+
Follow the new checks procedure, but instead of providing a configuration example, clearly explain:
28+
29+
1. How the current state of things negatively affects the extensibility of Data Validator.
30+
2. How you intend to remedy the situation with the minimum amount of code changed
31+
32+
**Do not mix refactoring with the addition of a new check in the same pull request.** We will reject and ask that they be done in separate PRs to keep things manageable.

0 commit comments

Comments
 (0)