rubocop-md 0.4.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +33 -0
- data/.github/workflows/test-jruby.yml +34 -0
- data/.github/workflows/test.yml +49 -0
- data/.rubocop.yml +2 -1
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/config/default.yml +55 -0
- data/lib/rubocop/markdown/version.rb +1 -1
- data/rubocop-md.gemspec +3 -3
- metadata +10 -9
- data/.travis.yml +0 -33
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3456efa614f5cb4f801f7b8b247e53b42022adfcdbffd3fab4752f4698ce321b
|
4
|
+
data.tar.gz: ac12ebd0c7bed14a4c05afd24bd24f1e463ffa0541dcf8a55353f52fbe3c9afd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5309505cbbf58587a74f8ea7c50435f9258163cbc9ba8e75fa6f4361a92c13d05fe401bec4f8cb7611d26cefdf9a9f9f2adad0e4e1395d000c7d4f0b44f4754b
|
7
|
+
data.tar.gz: 5cded0021d44ef0bdfb02279eefffd7eed20cf2c5c184c1de65fe9e2559fb86111ae09a96068a271c890f8d1d662c98a875d3d4f8e81af8840a5bfea99d5a1e9
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: Lint
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
rubocop:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
env:
|
13
|
+
BUNDLE_JOBS: 4
|
14
|
+
BUNDLE_RETRY: 3
|
15
|
+
CI: true
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- uses: actions/cache@v1
|
19
|
+
with:
|
20
|
+
path: /home/runner/bundle
|
21
|
+
key: bundle-lint-${{ hashFiles('Gemfile') }}-${{ hashFiles('**/*.gemspec') }}
|
22
|
+
restore-keys: |
|
23
|
+
bundle-lint-
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: 2.7
|
27
|
+
- name: Bundle install
|
28
|
+
run: |
|
29
|
+
bundle config path /home/runner/bundle
|
30
|
+
bundle install
|
31
|
+
- name: Run Rubocop
|
32
|
+
run: |
|
33
|
+
bundle exec rubocop
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: JRuby Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
env:
|
13
|
+
BUNDLE_JOBS: 4
|
14
|
+
BUNDLE_RETRY: 3
|
15
|
+
CI: true
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v2
|
18
|
+
- uses: actions/cache@v1
|
19
|
+
with:
|
20
|
+
path: /home/runner/bundle
|
21
|
+
key: bundle-${{ hashFiles('Gemfile') }}-${{ hashFiles('**/*.gemspec') }}
|
22
|
+
restore-keys: |
|
23
|
+
bundle-
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: jruby
|
27
|
+
- name: Bundle install
|
28
|
+
run: |
|
29
|
+
bundle config path /home/runner/bundle
|
30
|
+
bundle install
|
31
|
+
bundle update
|
32
|
+
- name: Run tests
|
33
|
+
run: |
|
34
|
+
bundle exec rake test
|
@@ -0,0 +1,49 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
env:
|
13
|
+
BUNDLE_JOBS: 4
|
14
|
+
BUNDLE_RETRY: 3
|
15
|
+
CI: true
|
16
|
+
strategy:
|
17
|
+
fail-fast: false
|
18
|
+
matrix:
|
19
|
+
ruby: ["2.7"]
|
20
|
+
gemfile: [
|
21
|
+
"Gemfile"
|
22
|
+
]
|
23
|
+
include:
|
24
|
+
- ruby: "2.5"
|
25
|
+
gemfile: "Gemfile"
|
26
|
+
- ruby: "2.6"
|
27
|
+
gemfile: "Gemfile"
|
28
|
+
- ruby: "2.7"
|
29
|
+
gemfile: "gemfiles/rubocopmaster.gemfile"
|
30
|
+
steps:
|
31
|
+
- uses: actions/checkout@v2
|
32
|
+
- uses: actions/cache@v1
|
33
|
+
with:
|
34
|
+
path: /home/runner/bundle
|
35
|
+
key: bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
|
36
|
+
restore-keys: |
|
37
|
+
bundle-${{ matrix.ruby }}-${{ matrix.gemfile }}-
|
38
|
+
- uses: ruby/setup-ruby@v1
|
39
|
+
with:
|
40
|
+
ruby-version: ${{ matrix.ruby }}
|
41
|
+
- name: Bundle install
|
42
|
+
run: |
|
43
|
+
bundle config path /home/runner/bundle
|
44
|
+
bundle config --global gemfile ${{ matrix.gemfile }}
|
45
|
+
bundle install
|
46
|
+
bundle update
|
47
|
+
- name: Run tests
|
48
|
+
run: |
|
49
|
+
bundle exec rake test
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2017-
|
3
|
+
Copyright (c) 2017-2021 Vladimir Dementyev
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[](http://badge.fury.io/rb/rubocop-md)
|
2
|
-
|
2
|
+

|
3
3
|
|
4
4
|
# Rubocop Markdown
|
5
5
|
|
@@ -145,7 +145,7 @@ end
|
|
145
145
|
|
146
146
|
## Development
|
147
147
|
|
148
|
-
After checking out the repo, run `
|
148
|
+
After checking out the repo, run `bundle install` to install dependencies. Then, run `rake test` to run the tests.
|
149
149
|
|
150
150
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
151
151
|
|
data/config/default.yml
CHANGED
@@ -27,6 +27,61 @@ Lint/UselessAssignment:
|
|
27
27
|
- '**/*.md'
|
28
28
|
- '**/*.markdown'
|
29
29
|
|
30
|
+
Lint/DuplicateRequire:
|
31
|
+
Exclude:
|
32
|
+
- '**/*.md'
|
33
|
+
- '**/*.markdown'
|
34
|
+
|
35
|
+
Lint/DuplicateMethods:
|
36
|
+
Exclude:
|
37
|
+
- '**/*.md'
|
38
|
+
- '**/*.markdown'
|
39
|
+
|
40
|
+
Lint/RedundantCopDisableDirective:
|
41
|
+
Exclude:
|
42
|
+
- '**/*.md'
|
43
|
+
- '**/*.markdown'
|
44
|
+
|
45
|
+
Lint/RedundantCopEnableDirective:
|
46
|
+
Exclude:
|
47
|
+
- '**/*.md'
|
48
|
+
- '**/*.markdown'
|
49
|
+
|
50
|
+
Lint/RedundantRequireStatement:
|
51
|
+
Exclude:
|
52
|
+
- '**/*.md'
|
53
|
+
- '**/*.markdown'
|
54
|
+
|
55
|
+
Lint/UnusedMethodArgument:
|
56
|
+
Exclude:
|
57
|
+
- '**/*.md'
|
58
|
+
- '**/*.markdown'
|
59
|
+
|
60
|
+
Lint/UnusedBlockArgument:
|
61
|
+
Exclude:
|
62
|
+
- '**/*.md'
|
63
|
+
- '**/*.markdown'
|
64
|
+
|
65
|
+
Lint/UselessAssignment:
|
66
|
+
Exclude:
|
67
|
+
- '**/*.md'
|
68
|
+
- '**/*.markdown'
|
69
|
+
|
70
|
+
Lint/UselessMethodDefinition:
|
71
|
+
Exclude:
|
72
|
+
- '**/*.md'
|
73
|
+
- '**/*.markdown'
|
74
|
+
|
75
|
+
Lint/UselessAccessModifier:
|
76
|
+
Exclude:
|
77
|
+
- '**/*.md'
|
78
|
+
- '**/*.markdown'
|
79
|
+
|
80
|
+
Lint/Void:
|
81
|
+
Exclude:
|
82
|
+
- '**/*.md'
|
83
|
+
- '**/*.markdown'
|
84
|
+
|
30
85
|
Naming/FileName:
|
31
86
|
Exclude:
|
32
87
|
- '**/*.md'
|
data/rubocop-md.gemspec
CHANGED
@@ -25,13 +25,13 @@ Gem::Specification.new do |spec|
|
|
25
25
|
"source_code_uri" => "http://github.com/rubocop-hq/rubocop-md"
|
26
26
|
}
|
27
27
|
|
28
|
-
spec.required_ruby_version = ">= 2.
|
28
|
+
spec.required_ruby_version = ">= 2.5.0"
|
29
29
|
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_runtime_dependency "rubocop", ">= 0
|
32
|
+
spec.add_runtime_dependency "rubocop", ">= 1.0"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", ">= 1.15"
|
35
|
-
spec.add_development_dependency "rake", "
|
35
|
+
spec.add_development_dependency "rake", ">= 13.0"
|
36
36
|
spec.add_development_dependency "minitest", "~> 5.0"
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,14 +42,14 @@ dependencies:
|
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -75,15 +75,16 @@ extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- ".gem_release.yml"
|
78
|
+
- ".github/workflows/lint.yml"
|
79
|
+
- ".github/workflows/test-jruby.yml"
|
80
|
+
- ".github/workflows/test.yml"
|
78
81
|
- ".gitignore"
|
79
82
|
- ".rubocop.yml"
|
80
|
-
- ".travis.yml"
|
81
83
|
- CHANGELOG.md
|
82
84
|
- Gemfile
|
83
85
|
- LICENSE.txt
|
84
86
|
- README.md
|
85
87
|
- Rakefile
|
86
|
-
- bin/setup
|
87
88
|
- config/default.yml
|
88
89
|
- gemfiles/rubocopmaster.gemfile
|
89
90
|
- lib/rubocop-md.rb
|
@@ -109,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
110
|
requirements:
|
110
111
|
- - ">="
|
111
112
|
- !ruby/object:Gem::Version
|
112
|
-
version: 2.
|
113
|
+
version: 2.5.0
|
113
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
115
|
requirements:
|
115
116
|
- - ">="
|
data/.travis.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
before_install:
|
4
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
5
|
-
- gem install bundler -v '< 2'
|
6
|
-
|
7
|
-
notifications:
|
8
|
-
email: false
|
9
|
-
|
10
|
-
matrix:
|
11
|
-
fast_finish: true
|
12
|
-
include:
|
13
|
-
- rvm: ruby-head
|
14
|
-
gemfile: gemfiles/rubocopmaster.gemfile
|
15
|
-
- rvm: jruby-9.2.8.0
|
16
|
-
gemfile: Gemfile
|
17
|
-
- rvm: 2.7
|
18
|
-
gemfile: gemfiles/rubocopmaster.gemfile
|
19
|
-
- rvm: 2.7
|
20
|
-
gemfile: Gemfile
|
21
|
-
- rvm: 2.6
|
22
|
-
gemfile: Gemfile
|
23
|
-
- rvm: 2.5
|
24
|
-
gemfile: Gemfile
|
25
|
-
- rvm: 2.4.2
|
26
|
-
gemfile: Gemfile
|
27
|
-
allow_failures:
|
28
|
-
- rvm: ruby-head
|
29
|
-
gemfile: gemfiles/rubocopmaster.gemfile
|
30
|
-
- rvm: jruby-9.2.8.0
|
31
|
-
gemfile: Gemfile
|
32
|
-
- rvm: 2.5.0
|
33
|
-
gemfile: gemfiles/rubocopmaster.gemfile
|