rubocop-katalyst 0.1.0 → 1.0.1

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: 270d41d4245c584ce921f76ff815b3516353f11f70deb92c67af2c22a3aa71a2
4
- data.tar.gz: bdcd5d7dbfc6477eaf15caed118f8acc3085bb2cd7ac708d80ba0fd6129e9c2c
3
+ metadata.gz: 91b843fe92e8f87b4c6fc6b9d530031819dbb1be6388d85660f3937e74498d2e
4
+ data.tar.gz: 7cb3a5c5e2cb192399b8fdb8fc082567d0fee0351afd3acb41f059bda3aa99e0
5
5
  SHA512:
6
- metadata.gz: a37d83245eb289e927f65764118532157d7ef50699022e173c30fc87e86eb10f1c11064d091a4553abe9fb67e4d5f8793cc6e567c65d7f48d0a01e948f8720f5
7
- data.tar.gz: b08c2b3128c5590f0ad1924329994debddc69d3fd368d0e7f3a7f4840b2fa84c00c156b5cef6d2f5bdc88523501f91624dfce79656e8cb09370584a24db15b32
6
+ metadata.gz: ac8d02053125e9721f102e2e13eff65e93b475e1c03111e66896676cbc862df73cde4193e6a354d7ef6368863c4c195068f4803a4086fdd51905d44d81cdb253
7
+ data.tar.gz: 4d8c647420e1616cf4629f1debf0f98e277edf26f2e320dc9c6162a6854e280ffa7709f19bc96dac1fa51ee8665d5085b6f5faedf1fc68098069f6eaf929d8b3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.0.1] - 2022-08-30
2
+
3
+ - disabling Style/CollectionMethods as it causes an error with autocorrection
4
+
5
+ ## [1.0.0] - 2022-08-29
6
+
7
+ - Bump dependency versions
8
+ - Compatibility with rubocop 1.35.1
9
+ - Relax example length rule for feature and system specs
10
+
11
+ ## [0.1.1] - 2021-11-15
12
+
13
+ - Bump dependency versions
14
+ - Ensure compiled gem is excluded from source control
15
+
1
16
  ## [0.1.0] - 2021-10-20
2
17
 
3
18
  - Initial release
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/**/*
@@ -42,7 +42,7 @@ Style/ClassVars:
42
42
  Enabled: false
43
43
 
44
44
  Style/CollectionMethods:
45
- Enabled: true
45
+ Enabled: false
46
46
  PreferredMethods:
47
47
  find: detect
48
48
  inject: reduce
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Katalyst
5
- VERSION = "0.1.0"
5
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
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-10-20 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,11 +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
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.8)
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.10)
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.2)
47
- rubocop (1.21.0)
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.9.1, < 2.0)
54
- ruby-progressbar (~> 1.7)
55
- unicode-display_width (>= 1.4.0, < 3.0)
56
- rubocop-ast (1.11.0)
57
- parser (>= 3.0.1.1)
58
- rubocop-performance (1.11.5)
59
- rubocop (>= 1.7.0, < 2.0)
60
- rubocop-ast (>= 0.4.0)
61
- rubocop-rails (2.12.3)
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.5.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.0.0)
73
- zeitwerk (2.4.2)
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