Skip to content

Commit 4b1e860

Browse files
authored
Merge pull request #120 from 4U6U57/119-fix-markdownlint
Fixes markdownlint for build
2 parents d049d44 + c3fd9a4 commit 4b1e860

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,12 @@ from which this plugin was forked.
130130
Please provide examples of the URLs you are parsing with each PR.
131131
132132
You can run `git-open` in `echo` mode, which doesn't open your browser, but just prints the URL to stdout:
133+
133134
```sh
134135
env BROWSER='echo' ./git-open
135136
```
136137
137-
#### Testing:
138+
### Testing:
138139
139140
You'll need to install [bats](https://github.com/sstephenson/bats#installing-bats-from-source), the Bash automated testing system. It's also available as `brew install bats`
140141

git-open.1.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,25 @@ git hosting services are supported.
2626
## EXAMPLES
2727

2828
```sh
29-
$ git open
29+
git open
3030
```
3131

3232
It opens https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/
3333

3434
```sh
35-
$ git open someremote
35+
git open someremote
3636
```
3737

3838
It opens https://github.com/PROVIDED_REMOTE_USER/CURRENT_REPO/
3939

4040
```sh
41-
$ git open someremote somebranch
41+
git open someremote somebranch
4242
```
4343

4444
It opens https://github.com/PROVIDED_REMOTE_USER/CURRENT_REPO/tree/PROVIDED_BRANCH
4545

4646
```sh
47-
$ git open --issue
47+
git open --issue
4848
```
4949

5050
If branches use naming convention of `issues/#123`, it opens
@@ -72,7 +72,7 @@ To configure git-open you may need to set some `git config` options.
7272
You can use `--global` to set across all repos, instead of just the current repo.
7373

7474
```sh
75-
$ git config [--global] option value
75+
git config [--global] option value
7676
```
7777

7878
### Configuring which remote to open
@@ -106,6 +106,7 @@ git config [--global] open.[gitdomain].protocol [value]
106106
```
107107

108108
**Example**
109+
109110
- Your git remote is at `ssh://[email protected]:7000/XXX/YYY.git`
110111
- Your hosted gitlab is `http://repo.intranet/subpath/XXX/YYY`
111112

markdownlint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"MD013": false,
1010
"MD026": false,
1111
"MD033": false,
12+
"MD034": false,
1213
"MD036": false,
1314
"MD041": false
1415
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"scripts": {
3535
"lint:editorconfig": "eclint check git-open* readme* .travis.yml",
3636
"lint:package": "pjv --recommendations --warnings",
37-
"lint:readme": "node ./node_modules/markdownlint/lib/markdownlint.js --config markdownlint.json README.md",
38-
"lint:man": "node ./node_modules/markdownlint/lib/markdownlint.js --config markdownlint.json git-open.1.md",
37+
"lint:readme": "markdownlint --config markdownlint.json README.md",
38+
"lint:man": "markdownlint --config markdownlint.json git-open.1.md",
3939
"man": "marked-man --version \"git-open $npm_package_version\" --manual \"Git manual\" --section 1 git-open.1.md > git-open.1",
4040
"test": "npm run unit && npm run lint:package && npm run lint:man && npm run lint:readme && npm run lint:editorconfig",
4141
"unit": "bats test/",
@@ -44,7 +44,7 @@
4444
"dependencies": {},
4545
"devDependencies": {
4646
"eclint": "^2.1.0",
47-
"markdownlint": "^0.2.0",
47+
"markdownlint-cli": "^0.7.1",
4848
"marked-man": "^0.2.1",
4949
"package-json-validator": "^0.6.1"
5050
}

test/git-open.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ setup() {
4040
##
4141

4242
@test "url: insteadOf handling" {
43-
git config --global url.http://example.com/.insteadOf ex:
43+
git config --local url.http://example.com/.insteadOf ex:
4444
git remote set-url origin ex:example.git
4545
git checkout -B master
4646
run ../git-open

0 commit comments

Comments
 (0)