Skip to content

Commit 484a7dc

Browse files
Unify codeclimate configuration (#50)
1 parent 964390f commit 484a7dc

File tree

24 files changed

+177
-237
lines changed

24 files changed

+177
-237
lines changed

decidim-module-gravity_forms/.codeclimate.yml .codeclimate.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,15 @@ plugins:
5454
markdownlint:
5555
enabled: true
5656

57+
stylelint:
58+
enabled: true
59+
5760
exclude_patterns:
58-
- development_app
59-
- spec/decidim_dummy_app
61+
- decidim-module-*/spec/decidim_dummy_app
62+
- decidim-module-census_connector/db/seeds
63+
- decidim-module-census_connector/spec/fixtures
64+
- decidim-module-gravity_forms/spec/fixtures
6065
- coverage
61-
- spec/fixtures/billy
66+
- log
67+
- node_modules
68+
- tmp

.mdl_style.rb

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
all
4+
5+
exclude_rule "first-line-h1"
6+
7+
exclude_rule "line-length"
8+
9+
exclude_rule "no-bare-urls"
10+
11+
exclude_rule "no-inline-html"
12+
13+
rule "no-trailing-punctuation", punctuation: ".,;:!"

.mdlrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style ".mdl_style.rb"

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ group :development do
3434
gem "i18n-debug"
3535
gem "letter_opener_web", "~> 1.3.0"
3636
gem "listen", "~> 3.1.0"
37+
gem "mdl"
3738
gem "pry"
3839
gem "spring"
3940
gem "spring-watcher-listen", "~> 2.0.0"

Gemfile.lock

+8
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ GEM
482482
activerecord
483483
kaminari-core (= 1.1.1)
484484
kaminari-core (1.1.1)
485+
kramdown (1.16.2)
485486
launchy (2.4.3)
486487
addressable (~> 2.3)
487488
letter_opener (1.6.0)
@@ -499,6 +500,10 @@ GEM
499500
nokogiri (>= 1.5.9)
500501
mail (2.7.0)
501502
mini_mime (>= 0.1.1)
503+
mdl (0.4.0)
504+
kramdown (~> 1.12, >= 1.12.0)
505+
mixlib-cli (~> 1.7, >= 1.7.0)
506+
mixlib-config (~> 2.2, >= 2.2.1)
502507
method_source (0.9.0)
503508
mime-types (3.1)
504509
mime-types-data (~> 3.2015)
@@ -507,6 +512,8 @@ GEM
507512
mini_mime (1.0.0)
508513
mini_portile2 (2.3.0)
509514
minitest (5.11.3)
515+
mixlib-cli (1.7.0)
516+
mixlib-config (2.2.4)
510517
multi_json (1.13.1)
511518
multi_xml (0.6.0)
512519
multipart-post (2.0.0)
@@ -787,6 +794,7 @@ DEPENDENCIES
787794
i18n-debug
788795
letter_opener_web (~> 1.3.0)
789796
listen (~> 3.1.0)
797+
mdl
790798
pry
791799
puffing-billy (~> 1.1)
792800
puma (~> 3.0)

README.md

+17-7
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,31 @@ This is the open-source repository for participa2, based on [Decidim](https://gi
66

77
## Deploying the app
88

9-
An opinionated guide to deploy this app to Heroku can be found at [https://github.com/codegram/decidim-deploy-heroku](https://github.com/codegram/decidim-deploy-heroku).
9+
An opinionated guide to deploy this app to Heroku can be found at [decidim-deploy-heroku](https://github.com/codegram/decidim-deploy-heroku).
1010

1111
## Setting up the application
1212

13-
You will need to do some steps before having the app working properly once you've deployed it:
13+
You will need to do some steps before having the app working properly once
14+
you've deployed it:
1415

1516
1. Open a Rails console in the server: `bundle exec rails console`
16-
2. Create a System Admin user:
17+
18+
1. Create a System Admin user:
19+
1720
```ruby
1821
user = Decidim::System::Admin.new(email: <email>, password: <password>, password_confirmation: <password>)
1922
user.save!
2023
```
21-
3. Visit `<your app url>/system` and login with your system admin credentials
22-
4. Create a new organization. Check the locales you want to use for that organization, and select a default locale.
23-
5. Set the correct default host for the organization, otherwise the app will not work properly. Note that you need to include any subdomain you might be using.
24-
6. Fill the rest of the form and submit it.
24+
25+
1. Visit `<your app url>/system` and login with your system admin credentials
26+
27+
1. Create a new organization. Check the locales you want to use for that
28+
organization, and select a default locale.
29+
30+
1. Set the correct default host for the organization, otherwise the app will not
31+
work properly. Note that you need to include any subdomain you might be
32+
using.
33+
34+
1. Fill the rest of the form and submit it.
2535

2636
You're good to go!

app/assets/stylesheets/decidim.scss

+34-26
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,81 @@
11
// // Variables
2-
//
2+
//
33
$primary: #683064;
4-
$secondary: #02747F;
4+
$secondary: #02747f;
55
// $success: #57d685;
66
// $warning: #ffae00;
77
// $alert: #ec5840;
8-
//
8+
//
99
// $proposals: #238FF7;
10-
// $actions: #57D685;
11-
// $debates: #FA6C96;
12-
// $meetings: #FABC6C;
13-
//
10+
// $actions: #57d685;
11+
// $debates: #fa6c96;
12+
// $meetings: #fabc6c;
13+
//
1414
// $twitter: #55acee;
1515
// $facebook: #3b5998;
1616
// $google: #dd4b39;
1717

1818
@import "decidim/application";
1919

20-
$primary2: #AC5C92;
21-
$primary3: #C9A0CE;
20+
$primary2: #ac5c92;
21+
$primary3: #c9a0ce;
2222
$secondary2: #00727b;
23-
$secondary3: #A7E6D9;
23+
$secondary3: #a7e6d9;
2424

25-
.title-bar {
25+
.title-bar{
2626
background: $primary;
2727
}
28-
.navbar {
28+
29+
.navbar{
2930
background: $primary2;
3031
}
3132

32-
.main-footer {
33+
.main-footer{
3334
background-color: $primary3;
3435
}
35-
.main-nav__link--active a {
36+
37+
.main-nav__link--active a{
3638
box-shadow: inset 0 4px 0 0 $secondary3;
3739
}
38-
.mini-footer {
40+
41+
.mini-footer{
3942
background-color: $primary;
4043
}
41-
.mini-footer, .main-footer {
42-
a {
44+
45+
.mini-footer,
46+
.main-footer{
47+
a{
4348
color: $white;
4449
}
4550
}
4651

47-
.section-heading.section-heading:before {
52+
.section-heading.section-heading::before{
4853
background: image-url("podemos/icon.svg") no-repeat center;
4954
width: 1.1rem;
5055
height: 1.1rem;
51-
margin-bottom: -0.15rem;
56+
margin-bottom: -.15rem;
5257
}
53-
.process-header__container {
58+
59+
.process-header__container{
5460
min-height: 14rem;
5561
}
56-
.radio-options {
62+
63+
.radio-options{
5764
display: flex;
5865
flex-wrap: wrap;
5966

60-
label {
67+
label{
6168
height: 1.5rem;
6269
flex-grow: 1;
6370
}
64-
input {
71+
72+
input{
6573
height: 1.5rem;
6674
}
6775
}
6876

69-
.field {
70-
.data-picker {
77+
.field{
78+
.data-picker{
7179
margin-bottom: 1rem;
7280
}
73-
}
81+
}

decidim-module-census_connector/.codeclimate.yml

-31
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
22
*= link decidim/census_connector/verifications/census.scss
33
*= link decidim/census_connector/account/account.scss
4-
*/
4+
*/
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.card--list__data__icon .icon.checked {
1+
.card--list__data__icon .icon.checked{
22
fill: #57d685 !important;
3-
}
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
@import "decidim";
22

33
.verification_information{
4-
&:after{
4+
&::after{
55
clear: both;
66
content: "";
77
display: block;
88
}
9+
910
.ql-video{
1011
height: 36vh;
1112
}
13+
1214
@include breakpoint(medium){
1315
.ql-video{
1416
float: right;
@@ -17,27 +19,34 @@
1719
margin: 20px;
1820
}
1921
}
22+
2023
& + *{
2124
clear: right;
2225
}
2326
}
27+
2428
.document_uploader{
2529
img{
2630
cursor: pointer;
2731
width: 100%;
2832
}
33+
2934
.upload{
30-
input[type=file], label{
35+
input[type=file],
36+
label{
3137
display: none;
3238
}
3339
}
3440
}
35-
ul.membership_levels {
41+
42+
ul.membership_levels{
3643
margin-left: inherit;
37-
li {
44+
45+
li{
3846
list-style: none;
39-
label {
47+
48+
label{
4049
font-size: 2rem;
4150
}
4251
}
43-
}
52+
}

decidim-module-crowdfundings/.codeclimate.yml

-40
This file was deleted.

0 commit comments

Comments
 (0)