rubocop-fnando 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7eef99f309b5b070f1b3a1f8ce1db9ac99f76c7e7d6042a934f9d405753e2c3d
4
+ data.tar.gz: 1963d2a7c49becac32519721f586f0fe6aa5808f39210ed8109cb3c639641355
5
+ SHA512:
6
+ metadata.gz: 9e3a9169a1a2eecfc3fd1c9dc7450247e1e28a180334198d5b290435f05ef383b477c8d1fd6da6420173e017ecd36f0bbde6f1f6bf5fece680e7ef29a7937014
7
+ data.tar.gz: 4faad2875f3c536574d9885fdfa672b2d808fba530bbf56ed5b8fcde8090dfc5b006ca97282801c34e88be36618ad812452e84d88a0b170f95f19072711c063d
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,30 @@
1
+ ---
2
+
3
+ inherit_gem:
4
+ rubocop-fnando: .rubocop.yml
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Exclude
9
+
10
+ require:
11
+ - rubocop-rails
12
+
13
+ Metrics/AbcSize:
14
+ Exclude:
15
+ - db/**/*.rb
16
+ - config/config.rb
17
+ - test/support/**/*.rb
18
+
19
+ Metrics/BlockLength:
20
+ Exclude:
21
+ - config/config.rb
22
+ - test/**/*.rb
23
+
24
+ Metrics/LineLength:
25
+ Exclude:
26
+ - db/**/*.rb
27
+ - config/environments/**/*.rb
28
+
29
+ Rails/Delegate:
30
+ Enabled: false
@@ -0,0 +1,69 @@
1
+ ---
2
+
3
+ Layout/FirstArrayElementLineBreak:
4
+ Enabled: true
5
+
6
+ Layout/FirstHashElementLineBreak:
7
+ Enabled: true
8
+
9
+ Layout/IndentFirstArrayElement:
10
+ EnforcedStyle: consistent
11
+
12
+ Layout/SpaceInsideBlockBraces:
13
+ EnforcedStyle: space
14
+ EnforcedStyleForEmptyBraces: space
15
+ SpaceBeforeBlockParameters: false
16
+
17
+ Layout/SpaceInsideHashLiteralBraces:
18
+ EnforcedStyle: no_space
19
+ EnforcedStyleForEmptyBraces: no_space
20
+
21
+ Lint/Debugger:
22
+ Exclude:
23
+ - test/**/*
24
+
25
+ Metrics/LineLength:
26
+ Enabled: true
27
+ Max: 80
28
+
29
+ Metrics/MethodLength:
30
+ Enabled: true
31
+
32
+ Naming/UncommunicativeMethodParamName:
33
+ Enabled: false
34
+
35
+ Style/AccessModifierDeclarations:
36
+ EnforcedStyle: inline
37
+
38
+ Style/Documentation:
39
+ Enabled: false
40
+
41
+ Style/FormatStringToken:
42
+ Enabled: false
43
+
44
+ Style/EmptyMethod:
45
+ EnforcedStyle: expanded
46
+
47
+ Style/ModuleFunction:
48
+ Enabled: false
49
+
50
+ Style/PercentLiteralDelimiters:
51
+ PreferredDelimiters:
52
+ "%": "[]"
53
+ "%i": "[]"
54
+ "%q": "[]"
55
+ "%Q": "[]"
56
+ "%r": "{}"
57
+ "%s": "[]"
58
+ "%w": "[]"
59
+ "%W": "[]"
60
+ "%x": "[]"
61
+
62
+ Style/StringLiterals:
63
+ EnforcedStyle: double_quotes
64
+
65
+ Style/SymbolArray:
66
+ Enabled: true
67
+
68
+ Style/TrailingUnderscoreVariable:
69
+ Enabled: false
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at me@fnando.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rubocop-fnando.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Nando Vieira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,62 @@
1
+ # Rubocop
2
+
3
+ The way I like my Ruby code to be formatted. Period.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem "rubocop-fnando"
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install rubocop-fnando
20
+
21
+ ## Usage
22
+
23
+ Create a `.rubocop.yml` and add the following lines:
24
+
25
+ ```yaml
26
+ ---
27
+ inherit_gem:
28
+ rubocop-fnando: .rubocop.yml
29
+
30
+ AllCops:
31
+ TargetRubyVersion: 2.6
32
+ ```
33
+
34
+ If you're using Rails, then use the following lines:
35
+
36
+ ```yaml
37
+ ---
38
+ inherit_gem:
39
+ rubocop-fnando: .rubocop-rails.yml
40
+
41
+ AllCops:
42
+ TargetRubyVersion: 2.6
43
+ TargetRailsVersion: 6.0
44
+ ```
45
+
46
+ ## Development
47
+
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
49
+
50
+ 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fnando/rubocop-fnando. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
55
+
56
+ ## License
57
+
58
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
59
+
60
+ ## Code of Conduct
61
+
62
+ Everyone interacting in the Rubocop::Fnando project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fnando/rubocop-fnando/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ task default: :test
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "rubocop-fnando"
5
+ spec.version = "0.0.2"
6
+ spec.authors = ["Nando Vieira"]
7
+ spec.email = ["me@fnando.com"]
8
+
9
+ spec.summary = "Rubocop configuration"
10
+ spec.description = spec.summary
11
+ spec.homepage = "https://github.com/fnando/rubocop-fnando"
12
+ spec.license = "MIT"
13
+
14
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
15
+ `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
16
+ end
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-fnando
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Nando Vieira
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Rubocop configuration
42
+ email:
43
+ - me@fnando.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".rubocop-rails.yml"
50
+ - ".rubocop.yml"
51
+ - CODE_OF_CONDUCT.md
52
+ - Gemfile
53
+ - LICENSE.txt
54
+ - README.md
55
+ - Rakefile
56
+ - rubocop-fnando.gemspec
57
+ homepage: https://github.com/fnando/rubocop-fnando
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubygems_version: 3.0.3
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: Rubocop configuration
80
+ test_files: []