rubocop-katalyst 0.1.1 → 1.0.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: b38bc1ea19329145611e4e8561ae998cf717491f59210bdbe6fbb830e6500f2e
4
- data.tar.gz: c270e71d6c89f142544f59bd7589dbb639b60b0a70b62d049e438c0ac969c18f
3
+ metadata.gz: dd372a38bb622b5cdd040a27ad8229c1f88e409357b90c31769b732b689a90c6
4
+ data.tar.gz: 4447495f2a6526d1b74a547d0de0951ef1aa89e3b893299be49bd81d7fb6a4c6
5
5
  SHA512:
6
- metadata.gz: fc99b5f0e9c2b187c9030a3bbb0347ca75b5f3fbff93dd40170643ec05a82a3c2559c9384cf4498fcf7f6389a43f16fe6b07fd298de4528bb8fc1bcbe9092f75
7
- data.tar.gz: 95e3e9289cd6862109071ad856cebc8d65980c6d124c71175afda0529afa6b332f22a89a733ff7d3799b79bc3c04f0cd15f7533e11622292f2b6f5775222af52
6
+ metadata.gz: 6b92b1d89ecb053b7ac87a993e531abe3068722b7e24fa2809aff8ca0fd3775865340908f89ce5ffc04697007328f5c029ce3d69901e49ca2e5542c33b31c474
7
+ data.tar.gz: 446692e00051df80eff2b0324bad166af0c829192bc856e8d8d4e5050ba962d58d699279f681df8947f9b9f18dbf16d8764f23f2eb0adc0d3f3a75a222f6260c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.0.0] - 2022-08-29
2
+
3
+ - Bump dependency versions
4
+ - Compatibility with rubocop 1.35.1
5
+ - Relax example length rule for feature and system specs
6
+
1
7
  ## [0.1.1] - 2021-11-15
2
8
 
3
9
  - Bump dependency versions
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Matt Redmond
3
+ Copyright (c) 2022 Katalyst Interactive
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
@@ -23,7 +23,6 @@ Metrics/AbcSize:
23
23
  Metrics/BlockLength:
24
24
  CountComments: true # count full line comments?
25
25
  Max: 25
26
- IgnoredMethods: []
27
26
  Exclude:
28
27
  - "config/environments/*" # rails environment configuration
29
28
  - "spec/**/*"
@@ -3,4 +3,5 @@
3
3
 
4
4
  RSpec/ExampleLength:
5
5
  Exclude:
6
- - spec/features/*
6
+ - spec/features/**/*
7
+ - spec/system/**/*
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Katalyst
5
- VERSION = "0.1.1"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-katalyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Matt Redmond
7
+ - Katalyst Interactive
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -82,24 +82,14 @@ dependencies:
82
82
  version: '0'
83
83
  description: Custom RuboCop for the Katalyst styleguide
84
84
  email:
85
- - matt.redmond@katalyst.com.au
85
+ - developers@katalyst.com.au
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".circleci/config.yml"
91
- - ".gitignore"
92
- - ".rspec"
93
- - ".rubocop.yml"
94
90
  - CHANGELOG.md
95
- - CODE_OF_CONDUCT.md
96
- - Gemfile
97
- - Gemfile.lock
98
91
  - LICENSE.txt
99
92
  - README.md
100
- - Rakefile
101
- - bin/console
102
- - bin/setup
103
93
  - config/default.yml
104
94
  - config/rubocop-bundler.yml
105
95
  - config/rubocop-gemspec.yml
@@ -118,7 +108,6 @@ files:
118
108
  - lib/rubocop/katalyst.rb
119
109
  - lib/rubocop/katalyst/inject.rb
120
110
  - lib/rubocop/katalyst/version.rb
121
- - rubocop-katalyst.gemspec
122
111
  homepage: https://github.com/katalyst/rubocop-katalyst
123
112
  licenses:
124
113
  - MIT
@@ -126,7 +115,8 @@ metadata:
126
115
  allowed_push_host: https://rubygems.org
127
116
  homepage_uri: https://github.com/katalyst/rubocop-katalyst
128
117
  source_code_uri: https://github.com/katalyst/rubocop-katalyst
129
- changelog_uri: https://github.com/katalyst/rubocop-katalyst/changelog.md
118
+ changelog_uri: https://github.com/katalyst/rubocop-katalyst/blob/main/CHANGELOG.md
119
+ rubygems_mfa_required: 'true'
130
120
  post_install_message:
131
121
  rdoc_options: []
132
122
  require_paths:
@@ -142,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
132
  - !ruby/object:Gem::Version
143
133
  version: '0'
144
134
  requirements: []
145
- rubygems_version: 3.2.15
135
+ rubygems_version: 3.3.7
146
136
  signing_key:
147
137
  specification_version: 4
148
138
  summary: Code standards for Katalyst
data/.circleci/config.yml DELETED
@@ -1,13 +0,0 @@
1
- version: 2.1
2
- jobs:
3
- build:
4
- docker:
5
- - image: ruby:2.7.2
6
- steps:
7
- - checkout
8
- - run:
9
- name: Run the default task
10
- command: |
11
- gem install bundler -v 2.2.15
12
- bundle install
13
- bundle exec rake
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
- rubocop-katalyst-0.1.0.gem
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,13 +0,0 @@
1
- inherit_from:
2
- - config/default.yml
3
-
4
- Metrics/BlockLength:
5
- Exclude:
6
- - rubocop-katalyst.gemspec
7
-
8
- Rails:
9
- Enabled: false
10
-
11
- Rails/RakeEnvironment:
12
- Exclude:
13
- - Rakefile
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at matt.redmond@katalyst.com.au. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in rubocop-katalyst.gemspec
6
- gemspec
7
-
8
- gem "rubocop", "~> 1.7"
9
- gem "rubocop-performance", "~> 1.11"
10
- gem "rubocop-rails", "~> 2.12"
11
- gem "rubocop-rake", "~> 0.6.0"
12
- gem "rubocop-rspec", "~> 2.5"
13
-
14
- group :development, :test do
15
- gem "rake", "~> 13.0"
16
- gem "rspec", "~> 3.0"
17
- end
data/Gemfile.lock DELETED
@@ -1,89 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rubocop-katalyst (0.1.1)
5
- rubocop
6
- rubocop-performance
7
- rubocop-rails
8
- rubocop-rake
9
- rubocop-rspec
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- activesupport (6.1.4.1)
15
- concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 1.6, < 2)
17
- minitest (>= 5.1)
18
- tzinfo (~> 2.0)
19
- zeitwerk (~> 2.3)
20
- ast (2.4.2)
21
- concurrent-ruby (1.1.9)
22
- diff-lcs (1.4.4)
23
- i18n (1.8.11)
24
- concurrent-ruby (~> 1.0)
25
- minitest (5.14.4)
26
- parallel (1.21.0)
27
- parser (3.0.2.0)
28
- ast (~> 2.4.1)
29
- rack (2.2.3)
30
- rainbow (3.0.0)
31
- rake (13.0.6)
32
- regexp_parser (2.1.1)
33
- rexml (3.2.5)
34
- rspec (3.10.0)
35
- rspec-core (~> 3.10.0)
36
- rspec-expectations (~> 3.10.0)
37
- rspec-mocks (~> 3.10.0)
38
- rspec-core (3.10.1)
39
- rspec-support (~> 3.10.0)
40
- rspec-expectations (3.10.1)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.10.0)
43
- rspec-mocks (3.10.2)
44
- diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.10.0)
46
- rspec-support (3.10.3)
47
- rubocop (1.22.3)
48
- parallel (~> 1.10)
49
- parser (>= 3.0.0.0)
50
- rainbow (>= 2.2.2, < 4.0)
51
- regexp_parser (>= 1.8, < 3.0)
52
- rexml
53
- rubocop-ast (>= 1.12.0, < 2.0)
54
- ruby-progressbar (~> 1.7)
55
- unicode-display_width (>= 1.4.0, < 3.0)
56
- rubocop-ast (1.13.0)
57
- parser (>= 3.0.1.1)
58
- rubocop-performance (1.12.0)
59
- rubocop (>= 1.7.0, < 2.0)
60
- rubocop-ast (>= 0.4.0)
61
- rubocop-rails (2.12.4)
62
- activesupport (>= 4.2.0)
63
- rack (>= 1.1)
64
- rubocop (>= 1.7.0, < 2.0)
65
- rubocop-rake (0.6.0)
66
- rubocop (~> 1.0)
67
- rubocop-rspec (2.6.0)
68
- rubocop (~> 1.19)
69
- ruby-progressbar (1.11.0)
70
- tzinfo (2.0.4)
71
- concurrent-ruby (~> 1.0)
72
- unicode-display_width (2.1.0)
73
- zeitwerk (2.5.1)
74
-
75
- PLATFORMS
76
- arm64-darwin-20
77
-
78
- DEPENDENCIES
79
- rake (~> 13.0)
80
- rspec (~> 3.0)
81
- rubocop (~> 1.7)
82
- rubocop-katalyst!
83
- rubocop-performance (~> 1.11)
84
- rubocop-rails (~> 2.12)
85
- rubocop-rake (~> 0.6.0)
86
- rubocop-rspec (~> 2.5)
87
-
88
- BUNDLED WITH
89
- 2.2.17
data/Rakefile DELETED
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
13
-
14
- RSpec::Core::RakeTask.new(:spec) do |spec|
15
- spec.pattern = FileList["spec/**/*_spec.rb"]
16
- end
17
-
18
- desc "Generate a new cop with a template"
19
- task :new_cop, [:cop] do |_task, args|
20
- require "rubocop"
21
-
22
- cop_name = args.fetch(:cop) do
23
- warn "usage: bundle exec rake new_cop[Department/Name]"
24
- exit!
25
- end
26
-
27
- github_user = `git config github.user`.chop
28
- github_user = "your_id" if github_user.empty?
29
-
30
- generator = RuboCop::Cop::Generator.new(cop_name, github_user)
31
-
32
- generator.write_source
33
- generator.write_spec
34
- generator.inject_require(root_file_path: "lib/rubocop/cop/katalyst_cops.rb")
35
- generator.inject_config(config_file_path: "config/default.yml")
36
-
37
- puts generator.todo
38
- end
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "rubocop/katalyst"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/rubocop/katalyst/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "rubocop-katalyst"
7
- spec.version = RuboCop::Katalyst::VERSION
8
- spec.authors = ["Matt Redmond"]
9
- spec.email = ["matt.redmond@katalyst.com.au"]
10
-
11
- spec.summary = "Code standards for Katalyst"
12
- spec.description = "Custom RuboCop for the Katalyst styleguide"
13
- spec.homepage = "https://github.com/katalyst/rubocop-katalyst"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
16
-
17
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://github.com/katalyst/rubocop-katalyst"
21
- spec.metadata["changelog_uri"] = "https://github.com/katalyst/rubocop-katalyst/changelog.md"
22
-
23
- # Specify which files should be added to the gem when it is released.
24
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features|\.rubocop)/}) }
27
- end
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
- spec.require_paths = ["lib"]
31
-
32
- # Uncomment to register a new dependency of your gem
33
- # spec.add_dependency "example-gem", "~> 1.0"
34
-
35
- # For more information and examples about making a new gem, checkout our
36
- # guide at: https://bundler.io/guides/creating_gem.html
37
-
38
- spec.add_runtime_dependency "rubocop"
39
- spec.add_runtime_dependency "rubocop-performance"
40
- spec.add_runtime_dependency "rubocop-rails"
41
- spec.add_runtime_dependency "rubocop-rake"
42
- spec.add_runtime_dependency "rubocop-rspec"
43
- end