the_schema_is 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/defaults.yml +24 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3e54c39753d0c9f7004fd878f91a295508ff5f3a563e7275076a9164b4b42b5
|
4
|
+
data.tar.gz: 5b3ba0f932faa204a8e5a7bdfc399c15811f29fd34211c30a2a02fea4d57b3b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a26c592c14cc518a601b3ee5ae4c091d989936590c20742fda04ea87b2ee2f12844b349fd58bb18ff3afbc0b4763b665a384555a3f4c786d2627a0137cc9643
|
7
|
+
data.tar.gz: c3c760d8de08b39342855c85ee320f075ba221bb8d121e7acc00d8398e4aec4d9d1bbef5e69f8cb9411468a639d6deda8d238997fc47b3b0a979f78570de7345
|
data/config/defaults.yml
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
# For all TheSchemaIs cops the settings are the same.
|
3
|
+
# But note that Rubocop's behavior is slightly weird with --show-cops (it will not show that
|
4
|
+
# cop has those three setting)
|
5
|
+
TheSchemaIs:
|
6
|
+
Schema: db/schema.rb
|
7
|
+
BaseClass: ['ActiveRecord::Base', 'ApplicationRecord']
|
8
|
+
TablePrefix: ''
|
9
|
+
|
10
|
+
TheSchemaIs/Presence:
|
11
|
+
Description: "Check presence of the_schema_is statement in ActiveRecord models"
|
12
|
+
Enabled: true
|
13
|
+
|
14
|
+
TheSchemaIs/MissingColumn:
|
15
|
+
Description: "Check columns missing in the_schema_is definition (but present in schema.rb)"
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
TheSchemaIs/UnknownColumn:
|
19
|
+
Description: "Check unknown column in the_schema_is definition (not defined in schema.rb)"
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
TheSchemaIs/WrongColumnDefinition:
|
23
|
+
Description: "Check column definition in the_schema_is statement against schema.rb"
|
24
|
+
Enabled: true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_schema_is
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Shepelev
|
@@ -132,6 +132,7 @@ extra_rdoc_files: []
|
|
132
132
|
files:
|
133
133
|
- LICENSE.txt
|
134
134
|
- README.md
|
135
|
+
- config/defaults.yml
|
135
136
|
- lib/the_schema_is.rb
|
136
137
|
- lib/the_schema_is/cops.rb
|
137
138
|
- lib/the_schema_is/cops/inject.rb
|