Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pronto test 5 #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Pronto test 5 #27

wants to merge 4 commits into from

Conversation

javierm
Copy link
Owner

@javierm javierm commented Oct 1, 2020

MMmm....

app/models/budget.rb Outdated Show resolved Hide resolved
app/models/budget.rb Outdated Show resolved Hide resolved
@javierm javierm force-pushed the pronto branch 2 times, most recently from 1d5a3fc to 4d28f9e Compare October 2, 2020 12:33
@@ -67,7 +67,7 @@ def current_phase
end

def published_phases
phases.published.order(:id)
phases.published.order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id).order(:id)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [141/110] (https://rubystyle.guide#80-character-limits)

@javierm javierm force-pushed the pronto branch 3 times, most recently from 13e8025 to 683ea58 Compare October 2, 2020 14:12
app/models/poll.rb Outdated Show resolved Hide resolved
app/models/poll.rb Outdated Show resolved Hide resolved
@javierm javierm force-pushed the pronto branch 3 times, most recently from a9634a1 to 5b2c35c Compare October 4, 2020 10:14
This way developers can run the checks on their machines and using
`bundle exec` we guarantee the right versions of all our gems are being
used; with Hound we can only use the versions supported by their
service.

When including the pronto-erb_lint gem, we're getting errors in
development where our ERB does not follow the conventions Better HTML
expects.

We only use Better HTML because ERB Lint depends on it, and right now we
are not ready to follow its conventions, so we're disabling it.
We're a bit more relaxed about these rules, particularly about the line
length and so the build should still pass when these rules are broken.
pronto-eslint depends on eslintrb, which expects the `.eslintrc` file
in JSON format. So we're migrating the `.eslintrc.yml` file to JSON and
introducing a symbolic link so the `.eslintrc` file points to
`.eslintrc.json`.

We could also use pronto-eslint_npm, but unfortunately it's not
maintained anymore and the latest version is not compatible with Pronto
0.11.
@javierm javierm force-pushed the pronto branch 2 times, most recently from 2ceefdc to 61c1128 Compare February 8, 2021 15:16
@@ -1,6 +1,6 @@
<% if tags.any? %>
<ul class="sdg-target-tag-list">
<% tags.each do |tag| %>
<% tags.each do |tag| %>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use 1 space before %> instead of 3 space.

App.ColumnsSelector.hideAll();
c_value = App.ColumnsSelector.currentValue();
if (c_value.length === 0) {
c_value = $("#js-columns-selector").data("default");
c_value = $('#js-columns-selector').data("default");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings must use doublequote.

@@ -27,10 +27,10 @@
input.prop("id", "column_selector_" + field);
input.data("column", field);
label = item.find("label");
label.prop("for", "column_selector_" + field);
label.text(text);
label.prop("for", "column_selector_"+ field);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Infix operators must be spaced.

item.removeClass("hidden");
$("#js-columns-selector-wrapper").append(item);
$("#js-columns-selector-wrapper").append(item)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

@@ -6,7 +6,7 @@
var amsify_suggestags = new AmsifySuggestags($(".sdg-related-list-selector .input"));

amsify_suggestags.getItem = function(value) {
var item_key = this.getItemKey(value);
var item_key = this.getItemKey(value)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

@@ -8,7 +8,7 @@ def prefix
end

def type
if %w[feature process proposals map html homepage uploads sdg].include? prefix
if %w[feature process proposals map html homepage uploads sdgfeature process proposals map html homepage uploads sdg].include? prefix
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [137/110] (https://rubystyle.guide#max-line-length)

left: 0;
position: absolute;
width: 100%;

&.testing {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty rule

javierm pushed a commit that referenced this pull request Sep 29, 2021
Contador de personas registradas
javierm pushed a commit that referenced this pull request Mar 5, 2022
* Fork app/models/abilities/common.rb into custom folder

* Allow editing investments in reviewing and selecting phases

Also skip a failing "Errors on create" test.
@javierm javierm force-pushed the master branch 4 times, most recently from af6b686 to 494f1de Compare June 8, 2022 13:19
@javierm javierm force-pushed the master branch 10 times, most recently from 0a51288 to c6c955a Compare July 7, 2022 12:39
@javierm javierm force-pushed the master branch 2 times, most recently from eb39e8e to cac6194 Compare August 3, 2022 19:58
@javierm javierm force-pushed the master branch 4 times, most recently from ef56d20 to 8a3c6bd Compare August 26, 2022 21:22
@javierm javierm force-pushed the master branch 5 times, most recently from 389e201 to 7c86945 Compare March 1, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant