Skip to content

Commit a131ae1

Browse files
songy23SergeyKanzhelev
authored andcommitted
Add markdownlint to Circle CI config (open-telemetry#268)
* Add markdownlint to Circle CI config * Use markdownlint instead of markdownlint-cli * Disable line length check (MD013) * Add .mdlrc, .mdlstyle.rb * Disable ordered list item (MD029) * Use .mdlrc in circle ci scripts * Fix errors and update exclusion rules
1 parent 9fbf36f commit a131ae1

18 files changed

+292
-204
lines changed

.circleci/config.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,29 @@
22
version: 2
33

44
jobs:
5-
build:
5+
misspell:
66
docker:
77
- image: circleci/golang:1.12
88
steps:
99
- checkout
1010
- run:
11-
name: Verify
11+
name: Misspell check
1212
command: make precommit
13+
markdownlint:
14+
docker:
15+
- image: circleci/ruby:latest
16+
steps:
17+
- checkout
18+
- run:
19+
name: Install markdownlint
20+
command: gem install mdl
21+
- run:
22+
name: Check markdownlint
23+
command: mdl -c .mdlrc .
24+
25+
workflows:
26+
version: 2
27+
build:
28+
jobs:
29+
- misspell
30+
- markdownlint

.mdlrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style ".mdlstyle.rb"

.mdlstyle.rb

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
all
2+
3+
# Multiple headings with the same content allowed for sibling headings
4+
rule 'MD024', :allow_different_nesting => true
5+
6+
# Ordered lists should have increasing prefixes
7+
rule 'MD029', :style => :ordered
8+
9+
# Ignore unordered list style
10+
exclude_rule 'MD004'
11+
12+
# Ignore line length
13+
exclude_rule 'MD013'
14+
15+
# Inline HTML
16+
exclude_rule 'MD033'
17+
18+
# Fenced code blocks should have a language specified
19+
exclude_rule 'MD040'

.vscode/settings.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"rewrap.wrappingColumn": 80,
33
"editor.rulers": [80],
44
"markdownlint.config": {
5-
"MD013": true
5+
"MD004": false,
6+
"MD013": false,
7+
"MD024": {"allow_different_nesting": true},
8+
"MD029": {"style": "ordered"},
9+
"MD033": false,
10+
"MD040": false,
611
},
7-
}
12+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
The OpenTelemetry specification describes the cross-language requirements and expectations for all OpenTelemetry implementations.
88

99
## Table of Contents
10+
1011
- [Overview](specification/overview.md)
1112
- [Library Guidelines](specification/library-guidelines.md)
1213
- [Package/Library Layout](specification/library-layout.md)

issue-management.md

+28-32
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
# Issue Management for OpenTelemetry
22

3-
It's an important community goal for OpenTelemetry that our members find the backlogs
4-
to be responsive, and easy to take part in. Shared practices will simplify collaboration
3+
It's an important community goal for OpenTelemetry that our members find the backlogs
4+
to be responsive, and easy to take part in. Shared practices will simplify collaboration
55
and engagement as well as help standardize on automation and overall project management.
66

7-
SIGs are encouraged to experiment with labels and backlog management procedures,
8-
including project board. This document only covers the bare bones of issue management
9-
which should work the same across all SIGs, to help maintain a responsive backlog and
7+
SIGs are encouraged to experiment with labels and backlog management procedures,
8+
including project board. This document only covers the bare bones of issue management
9+
which should work the same across all SIGs, to help maintain a responsive backlog and
1010
allow us to track work across all projects in a similar manner.
1111

12-
1312
## Roles
1413

1514
- OP:
1615
- Original Poster. This is the person who has opened or posted the issue.
1716
- Maintainer (aka Triager, or anyone performing that role):
18-
- Person who is triaging the issue by determining its workability. This person is
19-
responsible for getting the tickets to one of two stages - 1) `help-wanted`
20-
2) `will-not-fix`. They are responsible for triaging by working with the OP to get
21-
additional information as needed and analyzing the issue and adding relevant
17+
- Person who is triaging the issue by determining its workability. This person is
18+
responsible for getting the tickets to one of two stages - 1) `help-wanted`
19+
2) `will-not-fix`. They are responsible for triaging by working with the OP to get
20+
additional information as needed and analyzing the issue and adding relevant
2221
details/information/guidance that would be helpful to the resolution of the issue.
2322
- Collaborator:
24-
- Person(s) that are actually doing the work related to the ticket. Once work is done,
25-
they work with the Reviewer to get feedback implemented and complete the work. They
23+
- Person(s) that are actually doing the work related to the ticket. Once work is done,
24+
they work with the Reviewer to get feedback implemented and complete the work. They
2625
are responsible for making sure issue status labels are up to date.
2726
- Reviewer:
2827
- Person whose Approval is needed to merge the PR.
2928

30-
3129
## Opening an Issue
3230

3331
- An issue is filed by OP.
@@ -41,53 +39,51 @@ allow us to track work across all projects in a similar manner.
4139
- The Maintainer can also label the issue as
4240
- `URGENT` (for critical issues)
4341
- `help-wanted` for issues which require work and have no one assigned
44-
- Once a Collaborator is assigned, please remove `help-wanted` and add `wip` to
42+
- Once a Collaborator is assigned, please remove `help-wanted` and add `wip` to
4543
the issue.
4644

47-
4845
## Closing an Issue
4946

5047
- Review criteria:
51-
- For interface and design changes: 2 approvals - which must be from reviewers
48+
- For interface and design changes: 2 approvals - which must be from reviewers
5249
who work at different companies than the Collaborator.
5350
- For smaller or internal changes: 1 approval from a different company.
5451
- For `URGENT` issues:
55-
- Collaborator: please provide an initial assessment of the issues to OP ASAP or
52+
- Collaborator: please provide an initial assessment of the issues to OP ASAP or
5653
within 1 business day, whichever is earlier.
57-
- Reviewer: please review and provide feedback ASAP or within 1 business day,
54+
- Reviewer: please review and provide feedback ASAP or within 1 business day,
5855
whichever is earlier.
5956
- Collaborator: please provide an update and/or response to each review comment ASAP
6057
or within 1 business day, whichever is sooner. Merge should happen as soon as
6158
review criteria are met.
6259
- For non-`URGENT` issues
63-
- Collaborator: please provide an initial response or assessment of the issue to
60+
- Collaborator: please provide an initial response or assessment of the issue to
6461
OP within 3 business days.
6562
- Reviewer: please review and provide feedback within 3 business days.
6663
- Collaborator: please provide an update and/or response to each review comment
67-
within 3 business days. Once all review comments are resolved, please allow
64+
within 3 business days. Once all review comments are resolved, please allow
6865
1-2 business days for others to raise additional comments/questions, unless
69-
the changes are fixing typos, bugs, documentation, test enhancements, or
66+
the changes are fixing typos, bugs, documentation, test enhancements, or
7067
implementing already discussed design.
7168

72-
When closing an issue that we `will-not-fix` or we believe need no further
73-
action, please provide the rationale for closing, and indicate that OP can
74-
re-open for discussion if there are additional info, justification and
69+
When closing an issue that we `will-not-fix` or we believe need no further
70+
action, please provide the rationale for closing, and indicate that OP can
71+
re-open for discussion if there are additional info, justification and
7572
questions.
7673

77-
7874
## When Issues Get Stuck
7975

80-
Some issues are not directly related to a particular code change. If an
81-
issue is worth considering in the issue backlog, but not scoped clearly
76+
Some issues are not directly related to a particular code change. If an
77+
issue is worth considering in the issue backlog, but not scoped clearly
8278
enough for work to begin, then please label it `needs-discussion`.
8379

8480
- When possible, move the discussion forward by using tests and code examples.
8581
- If discussion happens elsewhere, record relevant meeting notes into the
8682
issue.
87-
- When an agreement is made, clearly summarize the decision, and list any
83+
- When an agreement is made, clearly summarize the decision, and list any
8884
resulting action items which need to be addressed.
89-
90-
If an issue is stuck because someone is not responding, please add the `stale`
91-
label. It is possible to automate this. E.g. https://github.com/apps/stale
92-
The minimum time elapsed before the `stale` label is applied is proposed to be
85+
86+
If an issue is stuck because someone is not responding, please add the `stale`
87+
label. It is possible to automate this. E.g. <https://github.com/apps/stale>
88+
The minimum time elapsed before the `stale` label is applied is proposed to be
9389
one week.

milestones.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ In scope of SDK Alpha release are:
8484
- Jaeger and/or Zipkin exporter
8585
- Context Propagation
8686
- In-process propagation
87-
- Inject and Extract
87+
- Inject and Extract
8888
- DistributedContext
8989
- Metrics
9090
- MetricsProcessor interface
9191
- Aggregation MetricsProcessor
9292
- Exporter interface
9393
- Prometheus Exporter
94-
94+
9595
Also in scope:
9696

9797
- Jaeger and/or Zipkin exporter

0 commit comments

Comments
 (0)