rubocop-vnda 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc62da647d537dd497110de0dcd548940f39d913f882cf5665b8842cdbda8c95
4
- data.tar.gz: 376ffc9a2befcccee5dd954521b2c302d2afd272eed8c963549c8643ea7d3e03
3
+ metadata.gz: f9866f52436dad400d83ad2053c232fd27e15057d8d8149fa55c8087794edb96
4
+ data.tar.gz: 2b6fcfc7def3edaf36e7688f690bdadcc129eeef62d3a1323c5d669d0697c6a1
5
5
  SHA512:
6
- metadata.gz: db376527eb5549549766956a85bdfbd84c236b267c4a5de5427997ddbbe3ad642f48a0fc1ff2a3f4212035ee6513c92065113a68585335773eaaad5db3a90fec
7
- data.tar.gz: a123d8d05715ae5953ec7308103da4c07fa2c907508c7b52253eef08a0a6fd1b0d931350dc46caf7b6d6741a06748022956200c9de40264ad83adcbbc2498797
6
+ metadata.gz: 4bae681230adf14547338a8f9d0dac08db13dc2d66f5f3cae510cf893b7305f71e4b0129914b67973fde03e190f93be71d73f512c7065fc96c372fe72316fd92
7
+ data.tar.gz: 01d9eaf2810d2e1032ec27661efecf0989895e6479e8df370e463cafa1ae400dc06be73e069cc61686794a30b19df4c933d4d71c7c1450d4bed3fcd957d54d82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-vnda (0.5.0)
4
+ rubocop-vnda (0.6.0)
5
5
  rubocop-rails (= 2.13.2)
6
6
  rubocop-rspec (= 2.8.0)
7
7
  standard (= 1.7.0)
@@ -9,14 +9,14 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.0.2)
12
+ activesupport (7.0.2.2)
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.9.1)
19
+ i18n (1.10.0)
20
20
  concurrent-ruby (~> 1.0)
21
21
  minitest (5.15.0)
22
22
  parallel (1.21.0)
@@ -25,7 +25,7 @@ GEM
25
25
  rack (2.2.3)
26
26
  rainbow (3.1.1)
27
27
  rake (13.0.6)
28
- regexp_parser (2.2.0)
28
+ regexp_parser (2.2.1)
29
29
  rexml (3.2.5)
30
30
  rubocop (1.25.0)
31
31
  parallel (~> 1.10)
@@ -36,7 +36,7 @@ GEM
36
36
  rubocop-ast (>= 1.15.1, < 2.0)
37
37
  ruby-progressbar (~> 1.7)
38
38
  unicode-display_width (>= 1.4.0, < 3.0)
39
- rubocop-ast (1.15.1)
39
+ rubocop-ast (1.15.2)
40
40
  parser (>= 3.0.1.1)
41
41
  rubocop-performance (1.13.2)
42
42
  rubocop (>= 1.7.0, < 2.0)
data/README.md CHANGED
@@ -1,35 +1,29 @@
1
1
  # Rubocop::Vnda
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rubocop/vnda`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Essa é uma gem criada para a padronização de código nos projetos de Vnda
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## Instalação
6
6
 
7
- ## Installation
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
- Or install it yourself as:
20
-
21
- $ gem install rubocop-vnda
22
-
23
- ## Usage
18
+ ## Uso
24
19
 
25
- TODO: Write usage instructions here
20
+ Depois de instalado, crie (ou remove caso já exista) o arquivo `.rubocop.yml` com o seguinte conteúdo
26
21
 
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- ## Contributing
27
+ ## Contribuindo
34
28
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rubocop-vnda.
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
@@ -1,3 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
+ require "rubocop"
5
+
6
+ task :show_cops do
7
+ cli = RuboCop::CLI.new
8
+ result = cli.run(["--show-cops", "--config", "#{Dir.pwd}/default.yml"])
9
+ exit result
10
+ end
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
@@ -32,3 +32,7 @@ RSpec/LetSetup:
32
32
 
33
33
  Layout/LineLength:
34
34
  Max: 120
35
+
36
+ Style/FrozenStringLiteralComment:
37
+ Enabled: true
38
+ EnforcedStyle: always_true
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Vnda
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.0"
6
6
  end
7
7
  end
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.5.0
4
+ version: 0.6.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-02-11 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -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