rubocop-teamtailor 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/config/default.yml +1 -1
- data/lib/rubocop/cop/teamtailor/{no_has_many_in_active_model_serializer.rb → no_embeddings_in_active_model_serializer.rb} +2 -2
- data/lib/rubocop/cop/teamtailor_cops.rb +1 -1
- data/lib/rubocop/teamtailor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4592a277b04f19d85f74eb00d578242102318946d930c428ed655390ba3ccc40
|
4
|
+
data.tar.gz: 10d484caaae9cbd10e72b919ad15aa17f90c488e459875d6a56a361480c7a2cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b7a07bdb38ef5baa26e0e333dca5608710b9f71c8085fdb71fa27cd5e2df1689e151fb21f73f8d30627d167397f28b44af023203b3c0888caa7d9210c3a11f
|
7
|
+
data.tar.gz: 48012ed398180b0d2120c00b3143cf98fd1428125d1d91b084a5c3c8c7698d6d0d366f13e054780eadb350b25ae96270ec73e70adc95b05d58b6ba43ed61f6c6
|
data/README.md
CHANGED
@@ -6,15 +6,13 @@ Welcome to your new gem! In this directory, you'll find the files you need to be
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
9
|
Install the gem and add to the application's Gemfile by executing:
|
12
10
|
|
13
|
-
$ bundle add
|
11
|
+
$ bundle add rubocop-teamtailor --require=false
|
14
12
|
|
15
13
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
14
|
|
17
|
-
$ gem install
|
15
|
+
$ gem install rubocop-teamtailor
|
18
16
|
|
19
17
|
## Usage
|
20
18
|
|
@@ -28,7 +26,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
28
26
|
|
29
27
|
## Contributing
|
30
28
|
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/teamtailor/rubocop-teamtailor. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/teamtailor/rubocop-teamtailor/blob/main/CODE_OF_CONDUCT.md).
|
32
30
|
|
33
31
|
## License
|
34
32
|
|
@@ -36,4 +34,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
36
34
|
|
37
35
|
## Code of Conduct
|
38
36
|
|
39
|
-
Everyone interacting in the RuboCop::Teamtailor project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
37
|
+
Everyone interacting in the RuboCop::Teamtailor project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/teamtailor/rubocop-teamtailor/blob/main/CODE_OF_CONDUCT.md).
|
data/config/default.yml
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
module RuboCop
|
4
4
|
module Cop
|
5
5
|
module Teamtailor
|
6
|
-
class
|
6
|
+
class NoEmbeddingsInActiveModelSerializer < Base
|
7
7
|
MSG = "No embedding of records"
|
8
8
|
|
9
9
|
def_node_matcher :no_has_many?, <<~PATTERN
|
10
|
-
(send nil? :has_many ...)
|
10
|
+
(send nil? {:has_many | :has_one} ...)
|
11
11
|
PATTERN
|
12
12
|
|
13
13
|
def on_class(class_node)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-teamtailor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Brusman
|
@@ -42,7 +42,7 @@ files:
|
|
42
42
|
- Rakefile
|
43
43
|
- config/default.yml
|
44
44
|
- lib/rubocop-teamtailor.rb
|
45
|
-
- lib/rubocop/cop/teamtailor/
|
45
|
+
- lib/rubocop/cop/teamtailor/no_embeddings_in_active_model_serializer.rb
|
46
46
|
- lib/rubocop/cop/teamtailor_cops.rb
|
47
47
|
- lib/rubocop/teamtailor.rb
|
48
48
|
- lib/rubocop/teamtailor/inject.rb
|