active-fedora 6.8.0 → 7.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +15 -5
- data/CONTRIBUTING.md +2 -0
- data/Gemfile +0 -2
- data/History.txt +2 -32
- data/README.md +143 -0
- data/Rakefile +5 -7
- data/active-fedora.gemspec +9 -9
- data/gemfiles/rails3.gemfile +11 -0
- data/gemfiles/rails4.gemfile +10 -0
- data/lib/active_fedora.rb +31 -4
- data/lib/active_fedora/association_relation.rb +18 -0
- data/lib/active_fedora/associations.rb +38 -171
- data/lib/active_fedora/associations/association.rb +163 -0
- data/lib/active_fedora/associations/association_scope.rb +39 -0
- data/lib/active_fedora/associations/belongs_to_association.rb +47 -25
- data/lib/active_fedora/associations/builder/association.rb +55 -0
- data/lib/active_fedora/associations/builder/belongs_to.rb +100 -0
- data/lib/active_fedora/associations/builder/collection_association.rb +56 -0
- data/lib/active_fedora/associations/builder/has_and_belongs_to_many.rb +30 -0
- data/lib/active_fedora/associations/builder/has_many.rb +63 -0
- data/lib/active_fedora/associations/builder/singular_association.rb +32 -0
- data/lib/active_fedora/associations/{association_collection.rb → collection_association.rb} +203 -53
- data/lib/active_fedora/associations/collection_proxy.rb +862 -0
- data/lib/active_fedora/associations/has_and_belongs_to_many_association.rb +35 -25
- data/lib/active_fedora/associations/has_many_association.rb +36 -11
- data/lib/active_fedora/associations/singular_association.rb +62 -0
- data/lib/active_fedora/attributes.rb +43 -139
- data/lib/active_fedora/autosave_association.rb +317 -0
- data/lib/active_fedora/base.rb +10 -327
- data/lib/active_fedora/callbacks.rb +1 -3
- data/lib/active_fedora/content_model.rb +16 -0
- data/lib/active_fedora/core.rb +151 -0
- data/lib/active_fedora/datastream_attribute.rb +76 -0
- data/lib/active_fedora/datastream_hash.rb +8 -13
- data/lib/active_fedora/datastreams.rb +39 -26
- data/lib/active_fedora/digital_object.rb +2 -2
- data/lib/active_fedora/fedora_attributes.rb +45 -0
- data/lib/active_fedora/fixture_loader.rb +1 -1
- data/lib/active_fedora/indexing.rb +6 -1
- data/lib/active_fedora/model.rb +0 -17
- data/lib/active_fedora/nested_attributes.rb +2 -2
- data/lib/active_fedora/null_relation.rb +7 -0
- data/lib/active_fedora/om_datastream.rb +3 -4
- data/lib/active_fedora/persistence.rb +41 -29
- data/lib/active_fedora/querying.rb +2 -163
- data/lib/active_fedora/rdf.rb +1 -0
- data/lib/active_fedora/rdf/indexing.rb +67 -0
- data/lib/active_fedora/rdf_datastream.rb +2 -50
- data/lib/active_fedora/rdf_node.rb +12 -7
- data/lib/active_fedora/rdf_node/term_proxy.rb +30 -21
- data/lib/active_fedora/rdfxml_rdf_datastream.rb +1 -1
- data/lib/active_fedora/reflection.rb +163 -20
- data/lib/active_fedora/relation.rb +33 -130
- data/lib/active_fedora/relation/calculations.rb +19 -0
- data/lib/active_fedora/relation/delegation.rb +22 -0
- data/lib/active_fedora/relation/finder_methods.rb +247 -0
- data/lib/active_fedora/relation/merger.rb +22 -0
- data/lib/active_fedora/relation/query_methods.rb +58 -0
- data/lib/active_fedora/relation/spawn_methods.rb +46 -0
- data/lib/active_fedora/relationship_graph.rb +0 -2
- data/lib/active_fedora/rels_ext_datastream.rb +1 -4
- data/lib/active_fedora/rubydora_connection.rb +1 -1
- data/lib/active_fedora/scoping.rb +20 -0
- data/lib/active_fedora/scoping/default.rb +38 -0
- data/lib/active_fedora/scoping/named.rb +32 -0
- data/lib/active_fedora/semantic_node.rb +54 -106
- data/lib/active_fedora/serialization.rb +19 -0
- data/lib/active_fedora/sharding.rb +58 -0
- data/lib/active_fedora/solr_digital_object.rb +15 -5
- data/lib/active_fedora/solr_instance_loader.rb +1 -1
- data/lib/active_fedora/solr_service.rb +1 -1
- data/lib/active_fedora/unsaved_digital_object.rb +6 -4
- data/lib/active_fedora/version.rb +1 -1
- data/lib/tasks/active_fedora.rake +3 -0
- data/lib/tasks/active_fedora_dev.rake +6 -5
- data/spec/config_helper.rb +14 -14
- data/spec/integration/associations_spec.rb +168 -455
- data/spec/integration/attributes_spec.rb +12 -11
- data/spec/integration/auditable_spec.rb +11 -11
- data/spec/integration/autosave_association_spec.rb +25 -0
- data/spec/integration/base_spec.rb +163 -163
- data/spec/integration/belongs_to_association_spec.rb +166 -0
- data/spec/integration/bug_spec.rb +7 -7
- data/spec/integration/collection_association_spec.rb +58 -0
- data/spec/integration/complex_rdf_datastream_spec.rb +88 -88
- data/spec/integration/datastream_collections_spec.rb +69 -69
- data/spec/integration/datastream_spec.rb +43 -43
- data/spec/integration/datastreams_spec.rb +63 -63
- data/spec/integration/delete_all_spec.rb +46 -39
- data/spec/integration/fedora_solr_sync_spec.rb +5 -5
- data/spec/integration/field_to_solr_name_spec.rb +34 -0
- data/spec/integration/full_featured_model_spec.rb +100 -101
- data/spec/integration/has_and_belongs_to_many_associations_spec.rb +341 -0
- data/spec/integration/has_many_associations_spec.rb +172 -24
- data/spec/integration/json_serialization_spec.rb +31 -0
- data/spec/integration/load_from_solr_spec.rb +48 -0
- data/spec/integration/model_spec.rb +35 -40
- data/spec/integration/nested_attribute_spec.rb +42 -43
- data/spec/integration/ntriples_datastream_spec.rb +131 -113
- data/spec/integration/om_datastream_spec.rb +67 -67
- data/spec/integration/persistence_spec.rb +7 -7
- data/spec/integration/rdf_nested_attributes_spec.rb +56 -56
- data/spec/integration/relation_delegation_spec.rb +26 -25
- data/spec/integration/relation_spec.rb +42 -0
- data/spec/integration/rels_ext_datastream_spec.rb +20 -20
- data/spec/integration/scoped_query_spec.rb +61 -51
- data/spec/integration/solr_instance_loader_spec.rb +5 -5
- data/spec/integration/solr_service_spec.rb +46 -46
- data/spec/samples/hydra-mods_article_datastream.rb +334 -334
- data/spec/samples/hydra-rights_metadata_datastream.rb +57 -57
- data/spec/samples/marpa-dc_datastream.rb +17 -17
- data/spec/samples/models/audio_record.rb +16 -16
- data/spec/samples/models/image.rb +2 -2
- data/spec/samples/models/mods_article.rb +5 -5
- data/spec/samples/models/oral_history.rb +18 -18
- data/spec/samples/models/seminar.rb +24 -24
- data/spec/samples/models/seminar_audio_file.rb +17 -17
- data/spec/samples/oral_history_sample_model.rb +21 -21
- data/spec/samples/special_thing.rb +14 -14
- data/spec/spec_helper.rb +11 -7
- data/spec/support/an_active_model.rb +2 -8
- data/spec/support/freeze_mocks.rb +12 -0
- data/spec/support/mock_fedora.rb +17 -16
- data/spec/unit/active_fedora_spec.rb +58 -60
- data/spec/unit/attributes_spec.rb +314 -0
- data/spec/unit/base_active_model_spec.rb +28 -27
- data/spec/unit/base_cma_spec.rb +5 -5
- data/spec/unit/base_datastream_management_spec.rb +27 -27
- data/spec/unit/base_extra_spec.rb +76 -48
- data/spec/unit/base_spec.rb +277 -348
- data/spec/unit/callback_spec.rb +18 -19
- data/spec/unit/code_configurator_spec.rb +17 -17
- data/spec/unit/config_spec.rb +8 -16
- data/spec/unit/content_model_spec.rb +79 -60
- data/spec/unit/datastream_collections_spec.rb +229 -229
- data/spec/unit/datastream_spec.rb +51 -63
- data/spec/unit/datastreams_spec.rb +87 -87
- data/spec/unit/file_configurator_spec.rb +217 -217
- data/spec/unit/has_and_belongs_to_many_collection_spec.rb +44 -25
- data/spec/unit/has_many_collection_spec.rb +26 -8
- data/spec/unit/inheritance_spec.rb +13 -12
- data/spec/unit/model_spec.rb +39 -45
- data/spec/unit/nom_datastream_spec.rb +15 -15
- data/spec/unit/ntriples_datastream_spec.rb +123 -118
- data/spec/unit/om_datastream_spec.rb +227 -233
- data/spec/unit/persistence_spec.rb +34 -15
- data/spec/unit/predicates_spec.rb +73 -73
- data/spec/unit/property_spec.rb +17 -9
- data/spec/unit/qualified_dublin_core_datastream_spec.rb +33 -33
- data/spec/unit/query_spec.rb +222 -198
- data/spec/unit/rdf_datastream_spec.rb +21 -28
- data/spec/unit/rdf_list_nested_attributes_spec.rb +34 -34
- data/spec/unit/rdf_list_spec.rb +65 -64
- data/spec/unit/rdf_node_spec.rb +7 -7
- data/spec/unit/rdf_xml_writer_spec.rb +10 -10
- data/spec/unit/rdfxml_rdf_datastream_spec.rb +27 -27
- data/spec/unit/relationship_graph_spec.rb +51 -51
- data/spec/unit/rels_ext_datastream_spec.rb +68 -74
- data/spec/unit/rspec_matchers/belong_to_associated_active_fedora_object_matcher_spec.rb +15 -15
- data/spec/unit/rspec_matchers/have_many_associated_active_fedora_objects_matcher_spec.rb +15 -15
- data/spec/unit/rspec_matchers/have_predicate_matcher_spec.rb +15 -15
- data/spec/unit/rspec_matchers/match_fedora_datastream_matcher_spec.rb +12 -12
- data/spec/unit/rubydora_connection_spec.rb +5 -5
- data/spec/unit/semantic_node_spec.rb +48 -107
- data/spec/unit/serializers_spec.rb +4 -4
- data/spec/unit/service_definitions_spec.rb +26 -26
- data/spec/unit/simple_datastream_spec.rb +17 -17
- data/spec/unit/solr_config_options_spec.rb +29 -28
- data/spec/unit/solr_digital_object_spec.rb +17 -25
- data/spec/unit/solr_service_spec.rb +95 -82
- data/spec/unit/unsaved_digital_object_spec.rb +24 -23
- data/spec/unit/validations_spec.rb +21 -21
- metadata +110 -159
- data/.rspec +0 -1
- data/.rubocop.yml +0 -1
- data/.rubocop_todo.yml +0 -938
- data/CONSOLE_GETTING_STARTED.textile +0 -1
- data/NOKOGIRI_DATASTREAMS.textile +0 -1
- data/README.textile +0 -116
- data/lib/active_fedora/associations/association_proxy.rb +0 -178
- data/lib/active_fedora/delegating.rb +0 -72
- data/lib/active_fedora/nokogiri_datastream.rb +0 -11
- data/spec/integration/delegating_spec.rb +0 -59
- data/spec/rails3_test_app/.gitignore +0 -4
- data/spec/rails3_test_app/.rspec +0 -1
- data/spec/rails3_test_app/Gemfile +0 -40
- data/spec/rails3_test_app/Rakefile +0 -7
- data/spec/rails3_test_app/app/controllers/application_controller.rb +0 -3
- data/spec/rails3_test_app/app/helpers/application_helper.rb +0 -2
- data/spec/rails3_test_app/app/views/layouts/application.html.erb +0 -14
- data/spec/rails3_test_app/config.ru +0 -4
- data/spec/rails3_test_app/config/application.rb +0 -42
- data/spec/rails3_test_app/config/boot.rb +0 -6
- data/spec/rails3_test_app/config/database.yml +0 -22
- data/spec/rails3_test_app/config/environment.rb +0 -5
- data/spec/rails3_test_app/config/environments/development.rb +0 -25
- data/spec/rails3_test_app/config/environments/production.rb +0 -49
- data/spec/rails3_test_app/config/environments/test.rb +0 -35
- data/spec/rails3_test_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails3_test_app/config/initializers/inflections.rb +0 -10
- data/spec/rails3_test_app/config/initializers/mime_types.rb +0 -5
- data/spec/rails3_test_app/config/initializers/secret_token.rb +0 -7
- data/spec/rails3_test_app/config/initializers/session_store.rb +0 -8
- data/spec/rails3_test_app/config/locales/en.yml +0 -5
- data/spec/rails3_test_app/config/routes.rb +0 -58
- data/spec/rails3_test_app/db/seeds.rb +0 -7
- data/spec/rails3_test_app/run_tests +0 -3
- data/spec/rails3_test_app/script/rails +0 -6
- data/spec/rails3_test_app/spec/spec_helper.rb +0 -27
- data/spec/rails3_test_app/spec/unit/rails_3_init.rb +0 -15
- data/spec/unit/association_proxy_spec.rb +0 -12
- data/spec/unit/base_delegate_spec.rb +0 -197
- data/spec/unit/base_delegate_to_spec.rb +0 -73
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|
data/.rubocop.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
DELETED
@@ -1,938 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2015-11-06 13:27:58 -0800 using RuboCop version 0.34.2.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 5
|
10
|
-
Lint/AmbiguousOperator:
|
11
|
-
Exclude:
|
12
|
-
- 'lib/active_fedora/attributes.rb'
|
13
|
-
- 'lib/active_fedora/datastream_hash.rb'
|
14
|
-
- 'lib/active_fedora/delegating.rb'
|
15
|
-
- 'lib/active_fedora/rdf_node.rb'
|
16
|
-
- 'lib/active_fedora/rdf_node/term_proxy.rb'
|
17
|
-
|
18
|
-
# Offense count: 1
|
19
|
-
Lint/AmbiguousRegexpLiteral:
|
20
|
-
Exclude:
|
21
|
-
- 'spec/unit/datastream_spec.rb'
|
22
|
-
|
23
|
-
# Offense count: 9
|
24
|
-
# Configuration parameters: AllowSafeAssignment.
|
25
|
-
Lint/AssignmentInCondition:
|
26
|
-
Exclude:
|
27
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
28
|
-
- 'lib/active_fedora/attributes.rb'
|
29
|
-
- 'lib/active_fedora/attributes/serializers.rb'
|
30
|
-
- 'lib/active_fedora/delegating.rb'
|
31
|
-
- 'lib/active_fedora/nested_attributes.rb'
|
32
|
-
- 'lib/active_fedora/predicates.rb'
|
33
|
-
- 'lib/active_fedora/rdf/nested_attributes.rb'
|
34
|
-
|
35
|
-
# Offense count: 9
|
36
|
-
# Cop supports --auto-correct.
|
37
|
-
Lint/BlockAlignment:
|
38
|
-
Exclude:
|
39
|
-
- 'lib/active_fedora/railtie.rb'
|
40
|
-
- 'spec/unit/active_fedora_spec.rb'
|
41
|
-
- 'spec/unit/callback_spec.rb'
|
42
|
-
- 'spec/unit/datastreams_spec.rb'
|
43
|
-
- 'spec/unit/ntriples_datastream_spec.rb'
|
44
|
-
- 'spec/unit/query_spec.rb'
|
45
|
-
- 'spec/unit/service_definitions_spec.rb'
|
46
|
-
|
47
|
-
# Offense count: 1
|
48
|
-
# Cop supports --auto-correct.
|
49
|
-
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
50
|
-
Lint/DefEndAlignment:
|
51
|
-
Enabled: false
|
52
|
-
|
53
|
-
# Offense count: 1
|
54
|
-
# Cop supports --auto-correct.
|
55
|
-
Lint/DeprecatedClassMethods:
|
56
|
-
Exclude:
|
57
|
-
- 'spec/rails3_test_app/config/boot.rb'
|
58
|
-
|
59
|
-
# Offense count: 1
|
60
|
-
Lint/DuplicateMethods:
|
61
|
-
Exclude:
|
62
|
-
- 'lib/active_fedora/datastream_collections.rb'
|
63
|
-
|
64
|
-
# Offense count: 8
|
65
|
-
# Cop supports --auto-correct.
|
66
|
-
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
67
|
-
Lint/EndAlignment:
|
68
|
-
Enabled: false
|
69
|
-
|
70
|
-
# Offense count: 18
|
71
|
-
Lint/HandleExceptions:
|
72
|
-
Exclude:
|
73
|
-
- 'lib/active_fedora/rubydora_connection.rb'
|
74
|
-
- 'spec/integration/base_spec.rb'
|
75
|
-
- 'spec/integration/rels_ext_datastream_spec.rb'
|
76
|
-
- 'spec/unit/base_spec.rb'
|
77
|
-
- 'spec/unit/semantic_node_spec.rb'
|
78
|
-
|
79
|
-
# Offense count: 3
|
80
|
-
Lint/Loop:
|
81
|
-
Exclude:
|
82
|
-
- 'lib/active_fedora/attributes.rb'
|
83
|
-
- 'lib/active_fedora/querying.rb'
|
84
|
-
|
85
|
-
# Offense count: 16
|
86
|
-
Lint/ParenthesesAsGroupedExpression:
|
87
|
-
Exclude:
|
88
|
-
- 'lib/active_fedora/persistence.rb'
|
89
|
-
- 'spec/integration/associations_spec.rb'
|
90
|
-
- 'spec/integration/complex_rdf_datastream_spec.rb'
|
91
|
-
- 'spec/integration/rdf_nested_attributes_spec.rb'
|
92
|
-
- 'spec/unit/rdf_list_spec.rb'
|
93
|
-
- 'spec/unit/rspec_matchers/belong_to_associated_active_fedora_object_matcher_spec.rb'
|
94
|
-
- 'spec/unit/rspec_matchers/have_many_associated_active_fedora_objects_matcher_spec.rb'
|
95
|
-
- 'spec/unit/rspec_matchers/have_predicate_matcher_spec.rb'
|
96
|
-
|
97
|
-
# Offense count: 1
|
98
|
-
Lint/RequireParentheses:
|
99
|
-
Exclude:
|
100
|
-
- 'lib/active_fedora/om_datastream.rb'
|
101
|
-
|
102
|
-
# Offense count: 2
|
103
|
-
Lint/RescueException:
|
104
|
-
Exclude:
|
105
|
-
- 'lib/active_fedora/file_configurator.rb'
|
106
|
-
|
107
|
-
# Offense count: 2
|
108
|
-
Lint/ShadowingOuterLocalVariable:
|
109
|
-
Exclude:
|
110
|
-
- 'lib/active_fedora.rb'
|
111
|
-
- 'lib/active_fedora/semantic_node.rb'
|
112
|
-
|
113
|
-
# Offense count: 10
|
114
|
-
# Cop supports --auto-correct.
|
115
|
-
Lint/StringConversionInInterpolation:
|
116
|
-
Exclude:
|
117
|
-
- 'lib/active_fedora/associations/association_proxy.rb'
|
118
|
-
- 'lib/active_fedora/semantic_node.rb'
|
119
|
-
- 'lib/tasks/active_fedora.rake'
|
120
|
-
- 'spec/integration/full_featured_model_spec.rb'
|
121
|
-
- 'spec/unit/qualified_dublin_core_datastream_spec.rb'
|
122
|
-
- 'spec/unit/simple_datastream_spec.rb'
|
123
|
-
|
124
|
-
# Offense count: 1
|
125
|
-
Lint/UnderscorePrefixedVariableName:
|
126
|
-
Exclude:
|
127
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
128
|
-
|
129
|
-
# Offense count: 25
|
130
|
-
# Cop supports --auto-correct.
|
131
|
-
Lint/UnusedBlockArgument:
|
132
|
-
Exclude:
|
133
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
134
|
-
- 'lib/active_fedora/datastreams.rb'
|
135
|
-
- 'lib/active_fedora/rdf_node.rb'
|
136
|
-
- 'lib/active_fedora/rels_ext_datastream.rb'
|
137
|
-
- 'lib/active_fedora/rspec_matchers/belong_to_associated_active_fedora_object_matcher.rb'
|
138
|
-
- 'lib/active_fedora/rspec_matchers/have_many_associated_active_fedora_objects_matcher.rb'
|
139
|
-
- 'lib/active_fedora/rspec_matchers/have_predicate_matcher.rb'
|
140
|
-
- 'lib/active_fedora/rspec_matchers/match_fedora_datastream_matcher.rb'
|
141
|
-
- 'lib/active_fedora/rubydora_connection.rb'
|
142
|
-
- 'lib/tasks/active_fedora.rake'
|
143
|
-
- 'spec/integration/full_featured_model_spec.rb'
|
144
|
-
- 'spec/samples/models/oral_history.rb'
|
145
|
-
- 'spec/spec_helper.rb'
|
146
|
-
- 'spec/unit/datastreams_spec.rb'
|
147
|
-
|
148
|
-
# Offense count: 21
|
149
|
-
# Cop supports --auto-correct.
|
150
|
-
Lint/UnusedMethodArgument:
|
151
|
-
Enabled: false
|
152
|
-
|
153
|
-
# Offense count: 36
|
154
|
-
Lint/UselessAssignment:
|
155
|
-
Enabled: false
|
156
|
-
|
157
|
-
# Offense count: 12
|
158
|
-
Lint/Void:
|
159
|
-
Exclude:
|
160
|
-
- 'spec/integration/associations_spec.rb'
|
161
|
-
- 'spec/integration/datastream_collections_spec.rb'
|
162
|
-
- 'spec/rails3_test_app/spec/unit/rails_3_init.rb'
|
163
|
-
- 'spec/unit/datastream_collections_spec.rb'
|
164
|
-
- 'spec/unit/query_spec.rb'
|
165
|
-
|
166
|
-
# Offense count: 81
|
167
|
-
Metrics/AbcSize:
|
168
|
-
Max: 84
|
169
|
-
|
170
|
-
# Offense count: 3
|
171
|
-
Metrics/BlockNesting:
|
172
|
-
Max: 4
|
173
|
-
|
174
|
-
# Offense count: 9
|
175
|
-
# Configuration parameters: CountComments.
|
176
|
-
Metrics/ClassLength:
|
177
|
-
Max: 461
|
178
|
-
|
179
|
-
# Offense count: 21
|
180
|
-
Metrics/CyclomaticComplexity:
|
181
|
-
Max: 22
|
182
|
-
|
183
|
-
# Offense count: 1946
|
184
|
-
# Configuration parameters: AllowURI, URISchemes.
|
185
|
-
Metrics/LineLength:
|
186
|
-
Max: 1301
|
187
|
-
|
188
|
-
# Offense count: 86
|
189
|
-
# Configuration parameters: CountComments.
|
190
|
-
Metrics/MethodLength:
|
191
|
-
Max: 213
|
192
|
-
|
193
|
-
# Offense count: 7
|
194
|
-
# Configuration parameters: CountComments.
|
195
|
-
Metrics/ModuleLength:
|
196
|
-
Max: 166
|
197
|
-
|
198
|
-
# Offense count: 21
|
199
|
-
Metrics/PerceivedComplexity:
|
200
|
-
Max: 24
|
201
|
-
|
202
|
-
# Offense count: 3
|
203
|
-
# Cop supports --auto-correct.
|
204
|
-
Performance/StringReplacement:
|
205
|
-
Exclude:
|
206
|
-
- 'lib/active_fedora/datastreams.rb'
|
207
|
-
- 'lib/active_fedora/fixture_exporter.rb'
|
208
|
-
- 'lib/active_fedora/fixture_loader.rb'
|
209
|
-
|
210
|
-
# Offense count: 4
|
211
|
-
# Cop supports --auto-correct.
|
212
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
213
|
-
Style/AccessModifierIndentation:
|
214
|
-
Enabled: false
|
215
|
-
|
216
|
-
# Offense count: 2
|
217
|
-
Style/AccessorMethodName:
|
218
|
-
Exclude:
|
219
|
-
- 'lib/active_fedora/associations/association_proxy.rb'
|
220
|
-
- 'lib/active_fedora/predicates.rb'
|
221
|
-
|
222
|
-
# Offense count: 3
|
223
|
-
# Cop supports --auto-correct.
|
224
|
-
Style/Alias:
|
225
|
-
Exclude:
|
226
|
-
- 'lib/active_fedora/persistence.rb'
|
227
|
-
- 'lib/active_fedora/relation.rb'
|
228
|
-
- 'lib/active_fedora/unsaved_digital_object.rb'
|
229
|
-
|
230
|
-
# Offense count: 44
|
231
|
-
# Cop supports --auto-correct.
|
232
|
-
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
|
233
|
-
Style/AlignHash:
|
234
|
-
Exclude:
|
235
|
-
- 'spec/integration/full_featured_model_spec.rb'
|
236
|
-
- 'spec/samples/hydra-mods_article_datastream.rb'
|
237
|
-
- 'spec/samples/marpa-dc_datastream.rb'
|
238
|
-
- 'spec/unit/datastream_collections_spec.rb'
|
239
|
-
- 'spec/unit/predicates_spec.rb'
|
240
|
-
|
241
|
-
# Offense count: 9
|
242
|
-
# Cop supports --auto-correct.
|
243
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
244
|
-
Style/AlignParameters:
|
245
|
-
Exclude:
|
246
|
-
- 'spec/unit/ntriples_datastream_spec.rb'
|
247
|
-
|
248
|
-
# Offense count: 23
|
249
|
-
# Cop supports --auto-correct.
|
250
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
251
|
-
Style/AndOr:
|
252
|
-
Enabled: false
|
253
|
-
|
254
|
-
# Offense count: 1
|
255
|
-
Style/AsciiComments:
|
256
|
-
Exclude:
|
257
|
-
- 'lib/active_fedora/file_configurator.rb'
|
258
|
-
|
259
|
-
# Offense count: 76
|
260
|
-
# Cop supports --auto-correct.
|
261
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
262
|
-
Style/BlockDelimiters:
|
263
|
-
Enabled: false
|
264
|
-
|
265
|
-
# Offense count: 1
|
266
|
-
# Cop supports --auto-correct.
|
267
|
-
Style/BlockEndNewline:
|
268
|
-
Exclude:
|
269
|
-
- 'spec/unit/config_spec.rb'
|
270
|
-
|
271
|
-
# Offense count: 105
|
272
|
-
# Cop supports --auto-correct.
|
273
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
274
|
-
Style/BracesAroundHashParameters:
|
275
|
-
Enabled: false
|
276
|
-
|
277
|
-
# Offense count: 4
|
278
|
-
Style/CaseEquality:
|
279
|
-
Exclude:
|
280
|
-
- 'lib/active_fedora/associations/belongs_to_association.rb'
|
281
|
-
- 'lib/active_fedora/querying.rb'
|
282
|
-
- 'spec/unit/base_spec.rb'
|
283
|
-
|
284
|
-
# Offense count: 6
|
285
|
-
# Cop supports --auto-correct.
|
286
|
-
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
|
287
|
-
Style/CaseIndentation:
|
288
|
-
Enabled: false
|
289
|
-
|
290
|
-
# Offense count: 2
|
291
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
292
|
-
Style/ClassAndModuleChildren:
|
293
|
-
Exclude:
|
294
|
-
- 'lib/generators/active_fedora/config/fedora/fedora_generator.rb'
|
295
|
-
- 'lib/generators/active_fedora/config/solr/solr_generator.rb'
|
296
|
-
|
297
|
-
# Offense count: 39
|
298
|
-
# Cop supports --auto-correct.
|
299
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
300
|
-
Style/ClassCheck:
|
301
|
-
Enabled: false
|
302
|
-
|
303
|
-
# Offense count: 8
|
304
|
-
Style/ClassVars:
|
305
|
-
Exclude:
|
306
|
-
- 'lib/active_fedora/predicates.rb'
|
307
|
-
- 'lib/active_fedora/rdf_node.rb'
|
308
|
-
- 'lib/active_fedora/service_definitions.rb'
|
309
|
-
- 'spec/unit/base_spec.rb'
|
310
|
-
- 'spec/unit/semantic_node_spec.rb'
|
311
|
-
|
312
|
-
# Offense count: 2
|
313
|
-
# Cop supports --auto-correct.
|
314
|
-
Style/ColonMethodCall:
|
315
|
-
Exclude:
|
316
|
-
- 'lib/active_fedora/rdf_xml_writer.rb'
|
317
|
-
- 'lib/active_fedora/service_definitions.rb'
|
318
|
-
|
319
|
-
# Offense count: 7
|
320
|
-
# Cop supports --auto-correct.
|
321
|
-
# Configuration parameters: Keywords.
|
322
|
-
Style/CommentAnnotation:
|
323
|
-
Exclude:
|
324
|
-
- 'lib/active_fedora/querying.rb'
|
325
|
-
- 'lib/active_fedora/rdf_list.rb'
|
326
|
-
- 'lib/active_fedora/rdf_node/term_proxy.rb'
|
327
|
-
- 'lib/active_fedora/relationship_graph.rb'
|
328
|
-
- 'spec/integration/associations_spec.rb'
|
329
|
-
- 'spec/integration/full_featured_model_spec.rb'
|
330
|
-
|
331
|
-
# Offense count: 13
|
332
|
-
# Cop supports --auto-correct.
|
333
|
-
Style/CommentIndentation:
|
334
|
-
Exclude:
|
335
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
336
|
-
- 'lib/active_fedora/persistence.rb'
|
337
|
-
- 'lib/active_fedora/rdf_xml_writer.rb'
|
338
|
-
- 'lib/active_fedora/service_definitions.rb'
|
339
|
-
- 'lib/active_fedora/solr_service.rb'
|
340
|
-
- 'lib/tasks/active_fedora_dev.rake'
|
341
|
-
- 'spec/unit/active_fedora_spec.rb'
|
342
|
-
- 'spec/unit/base_datastream_management_spec.rb'
|
343
|
-
- 'spec/unit/datastream_collections_spec.rb'
|
344
|
-
|
345
|
-
# Offense count: 2
|
346
|
-
# Cop supports --auto-correct.
|
347
|
-
Style/DefWithParentheses:
|
348
|
-
Exclude:
|
349
|
-
- 'lib/active_fedora/rels_ext_datastream.rb'
|
350
|
-
- 'lib/active_fedora/semantic_node.rb'
|
351
|
-
|
352
|
-
# Offense count: 62
|
353
|
-
# Cop supports --auto-correct.
|
354
|
-
Style/DeprecatedHashMethods:
|
355
|
-
Enabled: false
|
356
|
-
|
357
|
-
# Offense count: 64
|
358
|
-
# Configuration parameters: Exclude.
|
359
|
-
Style/Documentation:
|
360
|
-
Enabled: false
|
361
|
-
|
362
|
-
# Offense count: 5
|
363
|
-
# Cop supports --auto-correct.
|
364
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
365
|
-
Style/DotPosition:
|
366
|
-
Enabled: false
|
367
|
-
|
368
|
-
# Offense count: 2
|
369
|
-
Style/DoubleNegation:
|
370
|
-
Exclude:
|
371
|
-
- 'lib/active_fedora/persistence.rb'
|
372
|
-
- 'lib/active_fedora/querying.rb'
|
373
|
-
|
374
|
-
# Offense count: 6
|
375
|
-
# Cop supports --auto-correct.
|
376
|
-
Style/ElseAlignment:
|
377
|
-
Exclude:
|
378
|
-
- 'lib/active_fedora/associations/has_many_association.rb'
|
379
|
-
- 'lib/active_fedora/nested_attributes.rb'
|
380
|
-
- 'lib/active_fedora/rdf_node.rb'
|
381
|
-
- 'lib/active_fedora/rdf_xml_writer.rb'
|
382
|
-
- 'lib/active_fedora/relation.rb'
|
383
|
-
|
384
|
-
# Offense count: 18
|
385
|
-
# Cop supports --auto-correct.
|
386
|
-
# Configuration parameters: AllowAdjacentOneLineDefs.
|
387
|
-
Style/EmptyLineBetweenDefs:
|
388
|
-
Exclude:
|
389
|
-
- 'lib/active_fedora.rb'
|
390
|
-
- 'lib/active_fedora/file_configurator.rb'
|
391
|
-
- 'lib/active_fedora/rdf/node_config.rb'
|
392
|
-
- 'lib/active_fedora/semantic_node.rb'
|
393
|
-
- 'lib/active_fedora/service_definitions.rb'
|
394
|
-
- 'spec/samples/hydra-rights_metadata_datastream.rb'
|
395
|
-
- 'spec/unit/semantic_node_spec.rb'
|
396
|
-
- 'spec/unit/solr_service_spec.rb'
|
397
|
-
|
398
|
-
# Offense count: 127
|
399
|
-
# Cop supports --auto-correct.
|
400
|
-
Style/EmptyLines:
|
401
|
-
Enabled: false
|
402
|
-
|
403
|
-
# Offense count: 7
|
404
|
-
# Cop supports --auto-correct.
|
405
|
-
Style/EmptyLinesAroundAccessModifier:
|
406
|
-
Exclude:
|
407
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
408
|
-
- 'lib/active_fedora/associations/association_proxy.rb'
|
409
|
-
- 'lib/active_fedora/associations/belongs_to_association.rb'
|
410
|
-
- 'lib/active_fedora/attributes.rb'
|
411
|
-
- 'lib/active_fedora/reflection.rb'
|
412
|
-
- 'spec/samples/hydra-rights_metadata_datastream.rb'
|
413
|
-
|
414
|
-
# Offense count: 162
|
415
|
-
# Cop supports --auto-correct.
|
416
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
417
|
-
Style/EmptyLinesAroundBlockBody:
|
418
|
-
Enabled: false
|
419
|
-
|
420
|
-
# Offense count: 51
|
421
|
-
# Cop supports --auto-correct.
|
422
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
423
|
-
Style/EmptyLinesAroundClassBody:
|
424
|
-
Enabled: false
|
425
|
-
|
426
|
-
# Offense count: 9
|
427
|
-
# Cop supports --auto-correct.
|
428
|
-
Style/EmptyLinesAroundMethodBody:
|
429
|
-
Exclude:
|
430
|
-
- 'lib/active_fedora/associations.rb'
|
431
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
432
|
-
- 'lib/active_fedora/datastreams.rb'
|
433
|
-
- 'lib/active_fedora/nested_attributes.rb'
|
434
|
-
- 'lib/active_fedora/rdf_node.rb'
|
435
|
-
- 'lib/active_fedora/relation.rb'
|
436
|
-
- 'lib/active_fedora/solr_service.rb'
|
437
|
-
- 'spec/samples/hydra-rights_metadata_datastream.rb'
|
438
|
-
|
439
|
-
# Offense count: 22
|
440
|
-
# Cop supports --auto-correct.
|
441
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
442
|
-
Style/EmptyLinesAroundModuleBody:
|
443
|
-
Enabled: false
|
444
|
-
|
445
|
-
# Offense count: 9
|
446
|
-
# Cop supports --auto-correct.
|
447
|
-
Style/EmptyLiteral:
|
448
|
-
Exclude:
|
449
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
450
|
-
- 'lib/active_fedora/datastream.rb'
|
451
|
-
- 'lib/active_fedora/indexing.rb'
|
452
|
-
- 'lib/active_fedora/om_datastream.rb'
|
453
|
-
- 'lib/active_fedora/qualified_dublin_core_datastream.rb'
|
454
|
-
- 'lib/active_fedora/rdf_datastream.rb'
|
455
|
-
- 'lib/active_fedora/simple_datastream.rb'
|
456
|
-
|
457
|
-
# Offense count: 69
|
458
|
-
# Cop supports --auto-correct.
|
459
|
-
# Configuration parameters: AllowForAlignment.
|
460
|
-
Style/ExtraSpacing:
|
461
|
-
Enabled: false
|
462
|
-
|
463
|
-
# Offense count: 4
|
464
|
-
# Configuration parameters: Exclude.
|
465
|
-
Style/FileName:
|
466
|
-
Exclude:
|
467
|
-
- 'lib/active-fedora.rb'
|
468
|
-
- 'spec/samples/hydra-mods_article_datastream.rb'
|
469
|
-
- 'spec/samples/hydra-rights_metadata_datastream.rb'
|
470
|
-
- 'spec/samples/marpa-dc_datastream.rb'
|
471
|
-
|
472
|
-
# Offense count: 1
|
473
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
474
|
-
Style/For:
|
475
|
-
Enabled: false
|
476
|
-
|
477
|
-
# Offense count: 1
|
478
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
479
|
-
Style/FormatString:
|
480
|
-
Exclude:
|
481
|
-
- 'lib/active_fedora/datastreams.rb'
|
482
|
-
|
483
|
-
# Offense count: 18
|
484
|
-
# Configuration parameters: MinBodyLength.
|
485
|
-
Style/GuardClause:
|
486
|
-
Exclude:
|
487
|
-
- 'lib/active_fedora/associations.rb'
|
488
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
489
|
-
- 'lib/active_fedora/associations/association_proxy.rb'
|
490
|
-
- 'lib/active_fedora/config.rb'
|
491
|
-
- 'lib/active_fedora/datastreams.rb'
|
492
|
-
- 'lib/active_fedora/persistence.rb'
|
493
|
-
- 'lib/active_fedora/qualified_dublin_core_datastream.rb'
|
494
|
-
- 'lib/active_fedora/querying.rb'
|
495
|
-
- 'lib/active_fedora/rdf_list.rb'
|
496
|
-
- 'lib/active_fedora/relationship_graph.rb'
|
497
|
-
- 'lib/active_fedora/service_definitions.rb'
|
498
|
-
- 'lib/active_fedora/simple_datastream.rb'
|
499
|
-
- 'lib/active_fedora/solr_instance_loader.rb'
|
500
|
-
- 'spec/integration/base_spec.rb'
|
501
|
-
|
502
|
-
# Offense count: 1394
|
503
|
-
# Cop supports --auto-correct.
|
504
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
505
|
-
Style/HashSyntax:
|
506
|
-
Enabled: false
|
507
|
-
|
508
|
-
# Offense count: 19
|
509
|
-
# Cop supports --auto-correct.
|
510
|
-
# Configuration parameters: MaxLineLength.
|
511
|
-
Style/IfUnlessModifier:
|
512
|
-
Exclude:
|
513
|
-
- 'lib/active_fedora/base.rb'
|
514
|
-
- 'lib/active_fedora/content_model.rb'
|
515
|
-
- 'lib/active_fedora/datastream_collections.rb'
|
516
|
-
- 'lib/active_fedora/datastreams.rb'
|
517
|
-
- 'lib/active_fedora/digital_object.rb'
|
518
|
-
- 'lib/active_fedora/om_datastream.rb'
|
519
|
-
- 'lib/active_fedora/querying.rb'
|
520
|
-
- 'lib/active_fedora/rdf_datastream.rb'
|
521
|
-
- 'lib/active_fedora/rdf_list.rb'
|
522
|
-
- 'lib/active_fedora/rdf_node.rb'
|
523
|
-
- 'lib/active_fedora/rdf_node/term_proxy.rb'
|
524
|
-
- 'lib/active_fedora/relationship_graph.rb'
|
525
|
-
- 'lib/active_fedora/semantic_node.rb'
|
526
|
-
- 'lib/active_fedora/service_definitions.rb'
|
527
|
-
- 'lib/active_fedora/solr_service.rb'
|
528
|
-
|
529
|
-
# Offense count: 3
|
530
|
-
# Cop supports --auto-correct.
|
531
|
-
Style/IndentArray:
|
532
|
-
Exclude:
|
533
|
-
- 'lib/active_fedora/qualified_dublin_core_datastream.rb'
|
534
|
-
- 'spec/integration/rdf_nested_attributes_spec.rb'
|
535
|
-
|
536
|
-
# Offense count: 6
|
537
|
-
# Cop supports --auto-correct.
|
538
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
539
|
-
Style/IndentHash:
|
540
|
-
Enabled: false
|
541
|
-
|
542
|
-
# Offense count: 83
|
543
|
-
# Cop supports --auto-correct.
|
544
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
545
|
-
Style/IndentationConsistency:
|
546
|
-
Enabled: false
|
547
|
-
|
548
|
-
# Offense count: 89
|
549
|
-
# Cop supports --auto-correct.
|
550
|
-
# Configuration parameters: Width.
|
551
|
-
Style/IndentationWidth:
|
552
|
-
Enabled: false
|
553
|
-
|
554
|
-
# Offense count: 5
|
555
|
-
# Cop supports --auto-correct.
|
556
|
-
Style/Lambda:
|
557
|
-
Exclude:
|
558
|
-
- 'lib/active_fedora/rdf_datastream.rb'
|
559
|
-
- 'lib/active_fedora/rdf_node.rb'
|
560
|
-
- 'spec/unit/datastreams_spec.rb'
|
561
|
-
- 'spec/unit/nom_datastream_spec.rb'
|
562
|
-
|
563
|
-
# Offense count: 176
|
564
|
-
# Cop supports --auto-correct.
|
565
|
-
Style/LeadingCommentSpace:
|
566
|
-
Enabled: false
|
567
|
-
|
568
|
-
# Offense count: 66
|
569
|
-
# Cop supports --auto-correct.
|
570
|
-
Style/MethodCallParentheses:
|
571
|
-
Enabled: false
|
572
|
-
|
573
|
-
# Offense count: 18
|
574
|
-
# Cop supports --auto-correct.
|
575
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
576
|
-
Style/MethodDefParentheses:
|
577
|
-
Enabled: false
|
578
|
-
|
579
|
-
# Offense count: 1
|
580
|
-
Style/MultilineBlockChain:
|
581
|
-
Exclude:
|
582
|
-
- 'lib/active_fedora/relation.rb'
|
583
|
-
|
584
|
-
# Offense count: 1
|
585
|
-
# Cop supports --auto-correct.
|
586
|
-
Style/MultilineBlockLayout:
|
587
|
-
Exclude:
|
588
|
-
- 'spec/unit/config_spec.rb'
|
589
|
-
|
590
|
-
# Offense count: 51
|
591
|
-
# Cop supports --auto-correct.
|
592
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
593
|
-
Style/MultilineOperationIndentation:
|
594
|
-
Enabled: false
|
595
|
-
|
596
|
-
# Offense count: 1
|
597
|
-
Style/MultilineTernaryOperator:
|
598
|
-
Exclude:
|
599
|
-
- 'lib/active_fedora/test_support.rb'
|
600
|
-
|
601
|
-
# Offense count: 11
|
602
|
-
# Cop supports --auto-correct.
|
603
|
-
Style/NegatedIf:
|
604
|
-
Exclude:
|
605
|
-
- 'lib/active_fedora/associations.rb'
|
606
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
607
|
-
- 'lib/active_fedora/datastreams.rb'
|
608
|
-
- 'lib/active_fedora/nested_attributes.rb'
|
609
|
-
- 'lib/active_fedora/om_datastream.rb'
|
610
|
-
- 'lib/active_fedora/rdf/nested_attributes.rb'
|
611
|
-
- 'lib/active_fedora/semantic_node.rb'
|
612
|
-
|
613
|
-
# Offense count: 1
|
614
|
-
# Cop supports --auto-correct.
|
615
|
-
Style/NegatedWhile:
|
616
|
-
Exclude:
|
617
|
-
- 'lib/active_fedora/semantic_node.rb'
|
618
|
-
|
619
|
-
# Offense count: 8
|
620
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
621
|
-
Style/Next:
|
622
|
-
Exclude:
|
623
|
-
- 'lib/active_fedora/associations/has_and_belongs_to_many_association.rb'
|
624
|
-
- 'lib/active_fedora/attributes/serializers.rb'
|
625
|
-
- 'lib/active_fedora/qualified_dublin_core_datastream.rb'
|
626
|
-
- 'lib/active_fedora/rdf_datastream.rb'
|
627
|
-
- 'lib/active_fedora/rels_ext_datastream.rb'
|
628
|
-
- 'lib/active_fedora/semantic_node.rb'
|
629
|
-
- 'lib/active_fedora/simple_datastream.rb'
|
630
|
-
- 'lib/active_fedora/solr_service.rb'
|
631
|
-
|
632
|
-
# Offense count: 1
|
633
|
-
# Cop supports --auto-correct.
|
634
|
-
Style/NilComparison:
|
635
|
-
Exclude:
|
636
|
-
- 'lib/active_fedora/datastreams.rb'
|
637
|
-
|
638
|
-
# Offense count: 1
|
639
|
-
# Cop supports --auto-correct.
|
640
|
-
# Configuration parameters: IncludeSemanticChanges.
|
641
|
-
Style/NonNilCheck:
|
642
|
-
Exclude:
|
643
|
-
- 'lib/active_fedora/base.rb'
|
644
|
-
|
645
|
-
# Offense count: 3
|
646
|
-
# Cop supports --auto-correct.
|
647
|
-
Style/Not:
|
648
|
-
Exclude:
|
649
|
-
- 'lib/active_fedora/rels_ext_datastream.rb'
|
650
|
-
- 'lib/active_fedora/rubydora_connection.rb'
|
651
|
-
- 'lib/active_fedora/service_definitions.rb'
|
652
|
-
|
653
|
-
# Offense count: 2
|
654
|
-
Style/OpMethod:
|
655
|
-
Exclude:
|
656
|
-
- 'lib/active_fedora/base.rb'
|
657
|
-
- 'lib/active_fedora/rdf_node.rb'
|
658
|
-
|
659
|
-
# Offense count: 2
|
660
|
-
# Cop supports --auto-correct.
|
661
|
-
Style/ParallelAssignment:
|
662
|
-
Exclude:
|
663
|
-
- 'lib/active_fedora/associations/association_proxy.rb'
|
664
|
-
- 'lib/active_fedora/reflection.rb'
|
665
|
-
|
666
|
-
# Offense count: 8
|
667
|
-
# Cop supports --auto-correct.
|
668
|
-
# Configuration parameters: AllowSafeAssignment.
|
669
|
-
Style/ParenthesesAroundCondition:
|
670
|
-
Exclude:
|
671
|
-
- 'lib/active_fedora/associations.rb'
|
672
|
-
- 'lib/active_fedora/associations/has_and_belongs_to_many_association.rb'
|
673
|
-
- 'lib/active_fedora/base.rb'
|
674
|
-
- 'lib/active_fedora/datastream_collections.rb'
|
675
|
-
- 'lib/active_fedora/om_datastream.rb'
|
676
|
-
- 'lib/active_fedora/querying.rb'
|
677
|
-
- 'lib/active_fedora/rels_ext_datastream.rb'
|
678
|
-
|
679
|
-
# Offense count: 4
|
680
|
-
# Cop supports --auto-correct.
|
681
|
-
# Configuration parameters: PreferredDelimiters.
|
682
|
-
Style/PercentLiteralDelimiters:
|
683
|
-
Exclude:
|
684
|
-
- 'Rakefile'
|
685
|
-
- 'active-fedora.gemspec'
|
686
|
-
|
687
|
-
# Offense count: 13
|
688
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
|
689
|
-
Style/PredicateName:
|
690
|
-
Exclude:
|
691
|
-
- 'lib/active_fedora/associations.rb'
|
692
|
-
- 'lib/active_fedora/attributes.rb'
|
693
|
-
- 'lib/active_fedora/datastream_collections.rb'
|
694
|
-
- 'lib/active_fedora/datastreams.rb'
|
695
|
-
- 'lib/active_fedora/nested_attributes.rb'
|
696
|
-
- 'lib/active_fedora/om_datastream.rb'
|
697
|
-
- 'lib/active_fedora/rdf/nested_attributes.rb'
|
698
|
-
- 'lib/active_fedora/relationship_graph.rb'
|
699
|
-
- 'lib/active_fedora/service_definitions.rb'
|
700
|
-
|
701
|
-
# Offense count: 1
|
702
|
-
# Cop supports --auto-correct.
|
703
|
-
Style/Proc:
|
704
|
-
Exclude:
|
705
|
-
- 'spec/spec_helper.rb'
|
706
|
-
|
707
|
-
# Offense count: 2
|
708
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
709
|
-
Style/RaiseArgs:
|
710
|
-
Enabled: false
|
711
|
-
|
712
|
-
# Offense count: 2
|
713
|
-
# Cop supports --auto-correct.
|
714
|
-
Style/RedundantBegin:
|
715
|
-
Exclude:
|
716
|
-
- 'lib/active_fedora/attributes.rb'
|
717
|
-
- 'lib/active_fedora/fixture_loader.rb'
|
718
|
-
|
719
|
-
# Offense count: 1
|
720
|
-
# Cop supports --auto-correct.
|
721
|
-
Style/RedundantException:
|
722
|
-
Exclude:
|
723
|
-
- 'lib/active_fedora.rb'
|
724
|
-
|
725
|
-
# Offense count: 43
|
726
|
-
# Cop supports --auto-correct.
|
727
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
728
|
-
Style/RedundantReturn:
|
729
|
-
Enabled: false
|
730
|
-
|
731
|
-
# Offense count: 82
|
732
|
-
# Cop supports --auto-correct.
|
733
|
-
Style/RedundantSelf:
|
734
|
-
Enabled: false
|
735
|
-
|
736
|
-
# Offense count: 9
|
737
|
-
# Cop supports --auto-correct.
|
738
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
739
|
-
Style/RegexpLiteral:
|
740
|
-
Exclude:
|
741
|
-
- 'lib/active_fedora/predicates.rb'
|
742
|
-
- 'lib/active_fedora/querying.rb'
|
743
|
-
- 'lib/active_fedora/solr_digital_object.rb'
|
744
|
-
- 'lib/active_fedora/solr_service.rb'
|
745
|
-
- 'lib/active_fedora/test_support.rb'
|
746
|
-
- 'spec/spec_helper.rb'
|
747
|
-
- 'spec/support/mock_fedora.rb'
|
748
|
-
- 'spec/unit/om_datastream_spec.rb'
|
749
|
-
|
750
|
-
# Offense count: 1
|
751
|
-
# Cop supports --auto-correct.
|
752
|
-
Style/SelfAssignment:
|
753
|
-
Exclude:
|
754
|
-
- 'lib/active_fedora/om_datastream.rb'
|
755
|
-
|
756
|
-
# Offense count: 4
|
757
|
-
# Cop supports --auto-correct.
|
758
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
759
|
-
Style/Semicolon:
|
760
|
-
Exclude:
|
761
|
-
- 'lib/active_fedora/datastreams.rb'
|
762
|
-
- 'spec/integration/nested_attribute_spec.rb'
|
763
|
-
|
764
|
-
# Offense count: 80
|
765
|
-
# Cop supports --auto-correct.
|
766
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
767
|
-
Style/SignalException:
|
768
|
-
Enabled: false
|
769
|
-
|
770
|
-
# Offense count: 3
|
771
|
-
# Cop supports --auto-correct.
|
772
|
-
# Configuration parameters: AllowIfMethodIsEmpty.
|
773
|
-
Style/SingleLineMethods:
|
774
|
-
Exclude:
|
775
|
-
- 'lib/active_fedora.rb'
|
776
|
-
|
777
|
-
# Offense count: 5
|
778
|
-
# Cop supports --auto-correct.
|
779
|
-
Style/SingleSpaceBeforeFirstArg:
|
780
|
-
Exclude:
|
781
|
-
- 'lib/active_fedora/nom_datastream.rb'
|
782
|
-
- 'lib/active_fedora/om_datastream.rb'
|
783
|
-
- 'lib/active_fedora/querying.rb'
|
784
|
-
- 'lib/active_fedora/semantic_node.rb'
|
785
|
-
- 'spec/unit/semantic_node_spec.rb'
|
786
|
-
|
787
|
-
# Offense count: 86
|
788
|
-
# Cop supports --auto-correct.
|
789
|
-
Style/SpaceAfterComma:
|
790
|
-
Enabled: false
|
791
|
-
|
792
|
-
# Offense count: 4
|
793
|
-
# Cop supports --auto-correct.
|
794
|
-
Style/SpaceAfterMethodName:
|
795
|
-
Exclude:
|
796
|
-
- 'lib/active_fedora/datastream_hash.rb'
|
797
|
-
- 'lib/active_fedora/rdf/node_config.rb'
|
798
|
-
|
799
|
-
# Offense count: 1
|
800
|
-
# Cop supports --auto-correct.
|
801
|
-
Style/SpaceAfterSemicolon:
|
802
|
-
Exclude:
|
803
|
-
- 'lib/active_fedora/solr_service.rb'
|
804
|
-
|
805
|
-
# Offense count: 81
|
806
|
-
# Cop supports --auto-correct.
|
807
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
808
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
809
|
-
Enabled: false
|
810
|
-
|
811
|
-
# Offense count: 120
|
812
|
-
# Cop supports --auto-correct.
|
813
|
-
# Configuration parameters: MultiSpaceAllowedForOperators.
|
814
|
-
Style/SpaceAroundOperators:
|
815
|
-
Enabled: false
|
816
|
-
|
817
|
-
# Offense count: 21
|
818
|
-
# Cop supports --auto-correct.
|
819
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
820
|
-
Style/SpaceBeforeBlockBraces:
|
821
|
-
Enabled: false
|
822
|
-
|
823
|
-
# Offense count: 2
|
824
|
-
# Cop supports --auto-correct.
|
825
|
-
Style/SpaceBeforeComment:
|
826
|
-
Exclude:
|
827
|
-
- 'Gemfile'
|
828
|
-
|
829
|
-
# Offense count: 147
|
830
|
-
# Cop supports --auto-correct.
|
831
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
832
|
-
Style/SpaceInsideBlockBraces:
|
833
|
-
Enabled: false
|
834
|
-
|
835
|
-
# Offense count: 7
|
836
|
-
# Cop supports --auto-correct.
|
837
|
-
Style/SpaceInsideBrackets:
|
838
|
-
Exclude:
|
839
|
-
- 'lib/active_fedora/rdf_node.rb'
|
840
|
-
- 'lib/active_fedora/relation.rb'
|
841
|
-
- 'lib/tasks/active_fedora_dev.rake'
|
842
|
-
- 'spec/samples/hydra-rights_metadata_datastream.rb'
|
843
|
-
- 'spec/unit/base_spec.rb'
|
844
|
-
|
845
|
-
# Offense count: 633
|
846
|
-
# Cop supports --auto-correct.
|
847
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
848
|
-
Style/SpaceInsideHashLiteralBraces:
|
849
|
-
Enabled: false
|
850
|
-
|
851
|
-
# Offense count: 83
|
852
|
-
# Cop supports --auto-correct.
|
853
|
-
Style/SpaceInsideParens:
|
854
|
-
Enabled: false
|
855
|
-
|
856
|
-
# Offense count: 3
|
857
|
-
# Cop supports --auto-correct.
|
858
|
-
Style/SpecialGlobalVars:
|
859
|
-
Exclude:
|
860
|
-
- 'active-fedora.gemspec'
|
861
|
-
- 'lib/active_fedora/file_configurator.rb'
|
862
|
-
|
863
|
-
# Offense count: 197
|
864
|
-
# Cop supports --auto-correct.
|
865
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
866
|
-
Style/StringLiterals:
|
867
|
-
Enabled: false
|
868
|
-
|
869
|
-
# Offense count: 9
|
870
|
-
# Cop supports --auto-correct.
|
871
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
872
|
-
Style/StringLiteralsInInterpolation:
|
873
|
-
Enabled: false
|
874
|
-
|
875
|
-
# Offense count: 10
|
876
|
-
# Cop supports --auto-correct.
|
877
|
-
# Configuration parameters: IgnoredMethods.
|
878
|
-
Style/SymbolProc:
|
879
|
-
Exclude:
|
880
|
-
- 'lib/active_fedora/associations.rb'
|
881
|
-
- 'lib/active_fedora/associations/association_collection.rb'
|
882
|
-
- 'lib/active_fedora/om_datastream.rb'
|
883
|
-
- 'lib/active_fedora/relation.rb'
|
884
|
-
- 'lib/active_fedora/solr_service.rb'
|
885
|
-
- 'spec/samples/hydra-rights_metadata_datastream.rb'
|
886
|
-
- 'spec/support/an_active_model.rb'
|
887
|
-
|
888
|
-
# Offense count: 17
|
889
|
-
# Cop supports --auto-correct.
|
890
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
891
|
-
Style/TrailingBlankLines:
|
892
|
-
Enabled: false
|
893
|
-
|
894
|
-
# Offense count: 459
|
895
|
-
# Cop supports --auto-correct.
|
896
|
-
Style/TrailingWhitespace:
|
897
|
-
Enabled: false
|
898
|
-
|
899
|
-
# Offense count: 8
|
900
|
-
# Cop supports --auto-correct.
|
901
|
-
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
902
|
-
Style/TrivialAccessors:
|
903
|
-
Exclude:
|
904
|
-
- 'lib/active_fedora/associations/association_proxy.rb'
|
905
|
-
- 'lib/active_fedora/base.rb'
|
906
|
-
- 'lib/active_fedora/nom_datastream.rb'
|
907
|
-
- 'lib/active_fedora/reflection.rb'
|
908
|
-
- 'lib/active_fedora/unsaved_digital_object.rb'
|
909
|
-
|
910
|
-
# Offense count: 2
|
911
|
-
Style/UnlessElse:
|
912
|
-
Exclude:
|
913
|
-
- 'lib/active_fedora/datastream_collections.rb'
|
914
|
-
- 'lib/active_fedora/service_definitions.rb'
|
915
|
-
|
916
|
-
# Offense count: 3
|
917
|
-
# Cop supports --auto-correct.
|
918
|
-
Style/UnneededPercentQ:
|
919
|
-
Exclude:
|
920
|
-
- 'active-fedora.gemspec'
|
921
|
-
|
922
|
-
# Offense count: 3
|
923
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
924
|
-
Style/VariableName:
|
925
|
-
Enabled: false
|
926
|
-
|
927
|
-
# Offense count: 2
|
928
|
-
# Cop supports --auto-correct.
|
929
|
-
Style/WhileUntilDo:
|
930
|
-
Exclude:
|
931
|
-
- 'lib/active_fedora/om_datastream.rb'
|
932
|
-
- 'lib/tasks/active_fedora.rake'
|
933
|
-
|
934
|
-
# Offense count: 51
|
935
|
-
# Cop supports --auto-correct.
|
936
|
-
# Configuration parameters: WordRegex.
|
937
|
-
Style/WordArray:
|
938
|
-
MinSize: 5
|