rubocop-vnda 0.5.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +20 -20
- data/README.md +13 -19
- data/Rakefile +7 -0
- data/bin/rake +29 -0
- data/default.yml +7 -0
- data/lib/rubocop/vnda/version.rb +1 -1
- data/rubocop-vnda.gemspec +3 -3
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f12459a11eadc7904ed80cf49eed1a710840bb842faca50ac278d52f685ad10a
|
4
|
+
data.tar.gz: 95ee3252c1134aa55cd1bd23de293d24319a9f27b46e27504cfc6609e4259276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6fb60764f6116fdd3acfab9051746b46e9befb831260c0b24c104bd98ecc5a41a37d4d53e71dc7124a750a5f5f0baf2b9f2a76e7e2fb852c0ef1151ed95f03f
|
7
|
+
data.tar.gz: 67154c327dbbdcaa7697525be7bc69f2f67e54cead3a0ea545b4890d441a01f1a6093495f2308f8b06a8916df9845ed0e2eaa08e63cdbbcb1a9b9e172fee50b9
|
data/Gemfile.lock
CHANGED
@@ -1,56 +1,56 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubocop-vnda (0.
|
5
|
-
rubocop-rails (= 2.
|
6
|
-
rubocop-rspec (= 2.
|
7
|
-
standard (= 1.
|
4
|
+
rubocop-vnda (0.8.0)
|
5
|
+
rubocop-rails (= 2.14.2)
|
6
|
+
rubocop-rspec (= 2.9.0)
|
7
|
+
standard (= 1.8.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (7.0.2)
|
12
|
+
activesupport (7.0.2.3)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 1.6, < 2)
|
15
15
|
minitest (>= 5.1)
|
16
16
|
tzinfo (~> 2.0)
|
17
17
|
ast (2.4.2)
|
18
18
|
concurrent-ruby (1.1.9)
|
19
|
-
i18n (1.
|
19
|
+
i18n (1.10.0)
|
20
20
|
concurrent-ruby (~> 1.0)
|
21
21
|
minitest (5.15.0)
|
22
|
-
parallel (1.
|
23
|
-
parser (3.1.
|
22
|
+
parallel (1.22.0)
|
23
|
+
parser (3.1.1.0)
|
24
24
|
ast (~> 2.4.1)
|
25
25
|
rack (2.2.3)
|
26
26
|
rainbow (3.1.1)
|
27
27
|
rake (13.0.6)
|
28
|
-
regexp_parser (2.2.
|
28
|
+
regexp_parser (2.2.1)
|
29
29
|
rexml (3.2.5)
|
30
|
-
rubocop (1.
|
30
|
+
rubocop (1.26.0)
|
31
31
|
parallel (~> 1.10)
|
32
32
|
parser (>= 3.1.0.0)
|
33
33
|
rainbow (>= 2.2.2, < 4.0)
|
34
34
|
regexp_parser (>= 1.8, < 3.0)
|
35
35
|
rexml
|
36
|
-
rubocop-ast (>= 1.
|
36
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
37
37
|
ruby-progressbar (~> 1.7)
|
38
38
|
unicode-display_width (>= 1.4.0, < 3.0)
|
39
|
-
rubocop-ast (1.
|
40
|
-
parser (>= 3.
|
41
|
-
rubocop-performance (1.13.
|
39
|
+
rubocop-ast (1.16.0)
|
40
|
+
parser (>= 3.1.1.0)
|
41
|
+
rubocop-performance (1.13.3)
|
42
42
|
rubocop (>= 1.7.0, < 2.0)
|
43
43
|
rubocop-ast (>= 0.4.0)
|
44
|
-
rubocop-rails (2.
|
44
|
+
rubocop-rails (2.14.2)
|
45
45
|
activesupport (>= 4.2.0)
|
46
46
|
rack (>= 1.1)
|
47
47
|
rubocop (>= 1.7.0, < 2.0)
|
48
|
-
rubocop-rspec (2.
|
48
|
+
rubocop-rspec (2.9.0)
|
49
49
|
rubocop (~> 1.19)
|
50
50
|
ruby-progressbar (1.11.0)
|
51
|
-
standard (1.
|
52
|
-
rubocop (= 1.
|
53
|
-
rubocop-performance (= 1.13.
|
51
|
+
standard (1.8.0)
|
52
|
+
rubocop (= 1.26.0)
|
53
|
+
rubocop-performance (= 1.13.3)
|
54
54
|
tzinfo (2.0.4)
|
55
55
|
concurrent-ruby (~> 1.0)
|
56
56
|
unicode-display_width (2.1.0)
|
@@ -64,4 +64,4 @@ DEPENDENCIES
|
|
64
64
|
rubocop-vnda!
|
65
65
|
|
66
66
|
BUNDLED WITH
|
67
|
-
2.3.
|
67
|
+
2.3.9
|
data/README.md
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
# Rubocop::Vnda
|
2
2
|
|
3
|
-
|
3
|
+
Essa é uma gem criada para a padronização de código nos projetos de Vnda
|
4
4
|
|
5
|
-
|
5
|
+
## Instalação
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
7
|
+
Basta colocar a gem no Gemfile do seu projeto (sempre especificando a versão):
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'rubocop-vnda'
|
10
|
+
gem 'rubocop-vnda', 'X.Y.Z'
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
16
14
|
|
17
15
|
$ bundle install
|
16
|
+
$ bundle binstub rubocop
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
$ gem install rubocop-vnda
|
22
|
-
|
23
|
-
## Usage
|
18
|
+
## Uso
|
24
19
|
|
25
|
-
|
20
|
+
Depois de instalado, crie (ou remove caso já exista) o arquivo `.rubocop.yml` com o seguinte conteúdo
|
26
21
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
22
|
+
```yaml
|
23
|
+
inherit_gem:
|
24
|
+
rubocop-vnda: default.yml
|
25
|
+
```
|
32
26
|
|
33
|
-
##
|
27
|
+
## Contribuindo
|
34
28
|
|
35
|
-
|
29
|
+
Para configurar novas regras ou alterar regras atuais, basta modificar o arquivo `default.yml` na raiz desse repositório em um branch específico e abrir um pull request
|
data/Rakefile
CHANGED
data/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rake' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rake", "rake")
|
data/default.yml
CHANGED
data/lib/rubocop/vnda/version.rb
CHANGED
data/rubocop-vnda.gemspec
CHANGED
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
32
|
# Uncomment to register a new dependency of your gem
|
33
|
-
spec.add_dependency 'standard', '1.
|
34
|
-
spec.add_dependency 'rubocop-rails', '2.
|
35
|
-
spec.add_dependency 'rubocop-rspec', '2.
|
33
|
+
spec.add_dependency 'standard', '1.8.0'
|
34
|
+
spec.add_dependency 'rubocop-rails', '2.14.2'
|
35
|
+
spec.add_dependency 'rubocop-rspec', '2.9.0'
|
36
36
|
|
37
37
|
# For more information and examples about making a new gem, checkout our
|
38
38
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-vnda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.8.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: 1.
|
26
|
+
version: 1.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.14.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.14.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.9.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.9.0
|
55
55
|
description: RuboCop configuration for Ruby projects at Vnda
|
56
56
|
email:
|
57
57
|
- rafael.ssouza@gmail.com
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- Gemfile.lock
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
|
+
- bin/rake
|
67
68
|
- default.yml
|
68
69
|
- lib/rubocop/vnda.rb
|
69
70
|
- lib/rubocop/vnda/version.rb
|