decidim-dev 0.27.4 → 0.28.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/commands/decidim/{dummy_resources → dev}/create_dummy_resource.rb +1 -2
- data/app/controllers/decidim/{dummy_resources → dev}/dummy_resources_controller.rb +2 -2
- data/app/events/decidim/dev/dummy_resource_event.rb +10 -0
- data/app/forms/decidim/{dummy_resources → dev}/dummy_resource_form.rb +1 -1
- data/app/jobs/decidim/dev/hide_all_created_by_author_job.rb +13 -0
- data/app/mailers/decidim/{dummy_resources → dev}/dummy_resource_mailer.rb +1 -1
- data/app/models/decidim/dev/application_record.rb +9 -0
- data/app/models/decidim/dev/coauthorable_dummy_resource.rb +10 -0
- data/app/models/decidim/dev/dummy_resource.rb +93 -0
- data/app/models/decidim/dev/nested_dummy_resource.rb +10 -0
- data/app/packs/src/decidim/dev/accessibility.js +3 -3
- data/app/packs/src/decidim/dev/test/custom_map_factory.js +1 -1
- data/app/packs/stylesheets/decidim/dev/_accessibility.scss +24 -24
- data/app/packs/stylesheets/decidim/dev/_map.scss +10 -0
- data/app/packs/stylesheets/decidim/dev.scss +1 -0
- data/app/presenters/decidim/dev/official_author_presenter.rb +33 -0
- data/app/serializers/decidim/dev/dummy_serializer.rb +21 -0
- data/app/views/decidim/dev/dummy_resources/show.html.erb +25 -0
- data/config/environment.rb +3 -0
- data/config/locales/ar.yml +0 -1
- data/config/locales/bg.yml +0 -1
- data/config/locales/cs.yml +4 -4
- data/config/locales/de.yml +2 -2
- data/config/locales/el.yml +0 -1
- data/config/locales/en.yml +1 -1
- data/config/locales/es-MX.yml +1 -1
- data/config/locales/es-PY.yml +1 -1
- data/config/locales/eu.yml +14 -8
- data/config/locales/gl.yml +0 -1
- data/config/locales/hu.yml +0 -1
- data/config/locales/id-ID.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/lv.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/no.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +0 -1
- data/config/locales/pt.yml +0 -1
- data/config/locales/ru.yml +0 -1
- data/config/locales/sk.yml +0 -1
- data/config/locales/sq-AL.yml +1 -0
- data/config/locales/sv.yml +1 -1
- data/config/locales/th-TH.yml +1 -0
- data/config/locales/tr-TR.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/config/rubocop/disabled.yml +11 -0
- data/config/rubocop/faker.yml +480 -0
- data/config/rubocop/rails.yml +105 -0
- data/config/rubocop/rspec.yml +69 -0
- data/config/rubocop/ruby.yml +1207 -0
- data/lib/decidim/dev/admin.rb +8 -0
- data/lib/decidim/dev/admin_engine.rb +43 -0
- data/lib/decidim/dev/assets/import_participatory_space_private_users.csv +2 -2
- data/lib/decidim/dev/assets/import_participatory_space_private_users_invalid_col_sep.csv +2 -0
- data/lib/decidim/dev/assets/import_participatory_space_private_users_nok.csv +2 -2
- data/lib/decidim/dev/assets/import_participatory_space_private_users_with_bom.csv +1 -1
- data/lib/decidim/dev/assets/iso-8859-15.md +1 -1
- data/lib/decidim/dev/assets/participatory_text.md +4 -2
- data/lib/decidim/dev/assets/verify_user_groups.csv +22 -22
- data/lib/decidim/dev/component.rb +94 -0
- data/lib/decidim/dev/engine.rb +21 -3
- data/lib/decidim/dev/test/base_spec_helper.rb +1 -0
- data/lib/decidim/dev/test/factories.rb +50 -0
- data/lib/decidim/dev/test/form_to_param_shared_examples.rb +1 -1
- data/lib/decidim/dev/test/promoted_participatory_processes_shared_examples.rb +9 -9
- data/lib/decidim/dev/test/rspec_support/accessibility_examples.rb +119 -1
- data/lib/decidim/dev/test/rspec_support/attachment_helpers.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/bullet.rb +32 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +26 -21
- data/lib/decidim/dev/test/rspec_support/cell_matchers.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/component.rb +7 -317
- data/lib/decidim/dev/test/rspec_support/component_context.rb +10 -10
- data/lib/decidim/dev/test/rspec_support/confirmation_helpers.rb +18 -14
- data/lib/decidim/dev/test/rspec_support/data_consent.rb +2 -2
- data/lib/decidim/dev/test/rspec_support/dynamic_attach.rb +19 -4
- data/lib/decidim/dev/test/rspec_support/editor_context.rb +35 -0
- data/lib/decidim/dev/test/rspec_support/engine_examples.rb +15 -0
- data/lib/decidim/dev/test/rspec_support/filters.rb +11 -0
- data/lib/decidim/dev/test/rspec_support/forms_validations.rb +20 -0
- data/lib/decidim/dev/test/rspec_support/geocoder.rb +7 -7
- data/lib/decidim/dev/test/rspec_support/helpers.rb +187 -34
- data/lib/decidim/dev/test/rspec_support/imports_controller_shared_examples.rb +13 -13
- data/lib/decidim/dev/test/rspec_support/tom_select.rb +26 -0
- data/lib/decidim/dev/test/rspec_support/translation_helpers.rb +8 -8
- data/lib/decidim/dev/test/rspec_support/warden.rb +1 -1
- data/lib/decidim/dev/test/rspec_support/webpacker.rb +10 -0
- data/lib/decidim/dev/test/spec_helper.rb +15 -4
- data/lib/decidim/dev/test/w3c_rspec_validators_overrides.rb +1 -5
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/decidim/dev.rb +22 -0
- data/lib/decidim-dev.rb +1 -1
- data/lib/tasks/lighthouse_report.rake +29 -7
- data/rubocop-decidim.yml +13 -0
- metadata +125 -71
- data/app/views/decidim/dummy_resources/dummy_resources/show.html.erb +0 -15
- data/lib/decidim/dev/test/rspec_support/capybara_data_picker.rb +0 -36
- data/lib/decidim/dev/test/rspec_support/capybara_scopes_picker.rb +0 -92
- data/lib/decidim/dev/test/rspec_support/summary_notification.rb +0 -51
- data/lib/rubocop/cop/decidim/hash_shorthand_syntax_backports.rb +0 -175
- data/lib/rubocop/cop/decidim.rb +0 -9
- /data/app/views/decidim/{dummy_resources → dev}/dummy_resources/foo.html.erb +0 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
require: rubocop-rails
|
2
|
+
|
3
|
+
Rails:
|
4
|
+
Enabled: true
|
5
|
+
|
6
|
+
Rails/ActionFilter:
|
7
|
+
Include:
|
8
|
+
- app/controllers/**/*.rb
|
9
|
+
- decidim-*/app/controllers/**/*.rb
|
10
|
+
|
11
|
+
Rails/ContentTag:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Rails/CreateTableWithTimestamps:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Rails/EnumUniqueness:
|
18
|
+
Include:
|
19
|
+
- app/models/**/*.rb
|
20
|
+
- decidim-*/app/models/**/*.rb
|
21
|
+
|
22
|
+
Rails/Exit:
|
23
|
+
Include:
|
24
|
+
- app/**/*.rb
|
25
|
+
- config/**/*.rb
|
26
|
+
- lib/**/*.rb
|
27
|
+
- decidim-*/app/**/*.rb
|
28
|
+
- decidim-*/config/**/*.rb
|
29
|
+
- decidim-*/lib/**/*.rb
|
30
|
+
Exclude:
|
31
|
+
- lib/**/*.rake
|
32
|
+
- decidim-*/lib/**/*.rake
|
33
|
+
|
34
|
+
Rails/FindBy:
|
35
|
+
Include:
|
36
|
+
- "**/*.rb"
|
37
|
+
|
38
|
+
Rails/FindEach:
|
39
|
+
Include:
|
40
|
+
- app/models/**/*.rb
|
41
|
+
- decidim-*/app/models/**/*.rb
|
42
|
+
|
43
|
+
Rails/HasAndBelongsToMany:
|
44
|
+
Include:
|
45
|
+
- app/models/**/*.rb
|
46
|
+
- decidim-*/app/models/**/*.rb
|
47
|
+
|
48
|
+
Rails/HasManyOrHasOneDependent:
|
49
|
+
Include:
|
50
|
+
- app/models/**/*.rb
|
51
|
+
- decidim-*/app/models/**/*.rb
|
52
|
+
|
53
|
+
Rails/InverseOf:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
Rails/LexicallyScopedActionFilter:
|
57
|
+
Include:
|
58
|
+
- app/controllers/**/*.rb
|
59
|
+
- decidim-*/app/controllers/**/*.rb
|
60
|
+
|
61
|
+
Rails/NotNullColumn:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Rails/Output:
|
65
|
+
Include:
|
66
|
+
- app/**/*.rb
|
67
|
+
- config/**/*.rb
|
68
|
+
- db/**/*.rb
|
69
|
+
- lib/**/*.rb
|
70
|
+
- decidim-*/app/**/*.rb
|
71
|
+
- decidim-*/config/**/*.rb
|
72
|
+
- decidim-*/db/**/*.rb
|
73
|
+
- decidim-*/lib/**/*.rb
|
74
|
+
Exclude:
|
75
|
+
- "**/db/seeds.rb"
|
76
|
+
|
77
|
+
Rails/OutputSafety:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
Rails/Pluck:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
Rails/RakeEnvironment:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
Rails/ReadWriteAttribute:
|
87
|
+
Include:
|
88
|
+
- app/models/**/*.rb
|
89
|
+
- decidim-*/app/models/**/*.rb
|
90
|
+
|
91
|
+
Rails/ReversibleMigration:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Rails/ScopeArgs:
|
95
|
+
Include:
|
96
|
+
- app/models/**/*.rb
|
97
|
+
- decidim-*/app/models/**/*.rb
|
98
|
+
|
99
|
+
Rails/SkipsModelValidations:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Rails/Validation:
|
103
|
+
Include:
|
104
|
+
- app/models/**/*.rb
|
105
|
+
- decidim-*/app/models/**/*.rb
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
# RSpec:
|
4
|
+
# Patterns:
|
5
|
+
# - "(?:^|/)spec/"
|
6
|
+
# - "(?:^|/)test/"
|
7
|
+
|
8
|
+
RSpec/BeforeAfterAll:
|
9
|
+
Enabled: true
|
10
|
+
|
11
|
+
RSpec/ContextWording:
|
12
|
+
Enabled: true
|
13
|
+
Prefixes:
|
14
|
+
- when
|
15
|
+
- with
|
16
|
+
- without
|
17
|
+
- and
|
18
|
+
|
19
|
+
RSpec/DescribeClass:
|
20
|
+
Exclude:
|
21
|
+
- spec/gemfiles_spec.rb
|
22
|
+
- spec/webpacker_spec.rb
|
23
|
+
- spec/version_files_spec.rb
|
24
|
+
- spec/spellcheck_spec.rb
|
25
|
+
- spec/i18n_spec.rb
|
26
|
+
- "**/*/spec/**/*_badge_spec.rb"
|
27
|
+
- "**/tasks/**/*"
|
28
|
+
|
29
|
+
RSpec/ExampleLength:
|
30
|
+
Max: 49
|
31
|
+
|
32
|
+
RSpec/ExpectInHook:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
RSpec/IteratedExpectation:
|
36
|
+
Enabled: true
|
37
|
+
|
38
|
+
RSpec/LetSetup:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
RSpec/MessageSpies:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
RSpec/MultipleExpectations:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
RSpec/MultipleMemoizedHelpers:
|
48
|
+
Max: 35
|
49
|
+
|
50
|
+
RSpec/NestedGroups:
|
51
|
+
Max: 7
|
52
|
+
|
53
|
+
RSpec/NamedSubject:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
RSpec/RepeatedExampleGroupDescription:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
RSpec/RepeatedExampleGroupBody:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
RSpec/VerifiedDoubles:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
RSpec/LeakyConstantDeclaration:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
RSpec/DescribedClass:
|
69
|
+
Enabled: false
|