Apply rule to end files with a newline character
This commit is contained in:
@@ -3,4 +3,4 @@ class Admin::DashboardController < Admin::BaseController
|
||||
def index
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,4 +30,4 @@ class Admin::OfficialsController < Admin::BaseController
|
||||
params.require(:user).permit(:official_position, :official_level)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -49,4 +49,4 @@ class Admin::ValuatorGroupsController < Admin::BaseController
|
||||
params.require(:valuator_group).permit(:name)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,4 +21,4 @@ module Budgets
|
||||
@group = @budget.groups.find_by_slug_or_id! params[:id]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -33,4 +33,4 @@ class DirectMessagesController < ApplicationController
|
||||
def parsed_params
|
||||
direct_message_params.merge(sender: @sender, receiver: @receiver)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -45,4 +45,4 @@ class DirectUploadsController < ApplicationController
|
||||
:attachment, :cached_attachment, attachment_attributes: [])
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,4 +3,4 @@ class Management::DashboardController < Management::BaseController
|
||||
def index
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -20,4 +20,4 @@ class Management::EmailVerificationsController < Management::BaseController
|
||||
params.require(:email_verification).permit(:document_type, :document_number, :email)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,4 +10,4 @@ class Management::UserInvitesController < Management::BaseController
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,4 +21,4 @@ class Verification::VerifiedUserController < ApplicationController
|
||||
data
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -27,4 +27,4 @@ module CacheKeysHelper
|
||||
"#{commentable.class.name}-#{commentable.id}"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,4 +13,4 @@ module DirectUploadsHelper
|
||||
class: "delete remove-cached-attachment"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,4 +47,4 @@ class Budget
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,4 +9,4 @@ class Budget
|
||||
validates :investment, presence: true
|
||||
validates :reason, inclusion: {in: REASONS, allow_nil: false}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,4 +3,4 @@ class Budget
|
||||
belongs_to :valuator_group, counter_cache: :budget_investments_count
|
||||
belongs_to :investment, counter_cache: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
|
||||
<%= render "form" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
|
||||
<%= render "form" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render "admin/menu" %>
|
||||
<%= render "admin/menu" %>
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
<%= render "admin/poll/results/recount", resource: @booth_assignment %>
|
||||
<%= render "admin/poll/results/result" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#search-booths-results").html("<%= j render "search_booths_results" %>");
|
||||
$("#search-booths-results").html("<%= j render "search_booths_results" %>");
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
<%= form_for @booth, url: admin_booths_path(@booth) do |f| %>
|
||||
<%= render "form", f: f %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#search-officers-results").html("<%= j render "search_officers_results" %>");
|
||||
$("#search-officers-results").html("<%= j render "search_officers_results" %>");
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
<td id="total_results"><%= resource.recounts.sum(:total_amount) %></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -18,4 +18,4 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#search-officers-results").html("<%= j render "search_officers_results" %>");
|
||||
$("#search-officers-results").html("<%= j render "search_officers_results" %>");
|
||||
|
||||
@@ -61,4 +61,3 @@
|
||||
<%= page_entries_info @pages %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -84,4 +84,4 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<li>
|
||||
<%= link_to valuator.description_or_email,
|
||||
admin_valuator_path(valuator) %>
|
||||
</li>
|
||||
</li>
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
<%= f.text_field :name, label: false %>
|
||||
<%= f.submit t("admin.valuator_groups.form.edit"), class: "button success" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
<%= failed_census_call.document_number %>
|
||||
<%= l(failed_census_call.date_of_birth) %>
|
||||
<%= failed_census_call.postal_code %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render "admin/menu" %>
|
||||
<%= render "admin/menu" %>
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
<% end %>
|
||||
</h2>
|
||||
|
||||
<%= render "form" %>
|
||||
<%= render "form" %>
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
<% else %>
|
||||
<%= link_to t("budgets.investments.index.sidebar.unfeasible"),
|
||||
budget_investments_path(@budget, heading_id: @heading, unfeasible: 1) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
|
||||
var field_with_errors = "#js-comment-form-<%= dom_id %> #comment-body-<%= dom_id %>";
|
||||
App.Comments.display_error(field_with_errors, "<%= j render("comments/errors") %>");
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@comment) %>_votes").html("<%= j render("comments/votes", comment: @comment) %>");
|
||||
$("#<%= dom_id(@comment) %>_votes").html("<%= j render("comments/votes", comment: @comment) %>");
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render "shared/suggest" %>
|
||||
<%= render "shared/suggest" %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@debate) %>_votes").html("<%= j render("debates/votes", debate: @debate) %>");
|
||||
$("#<%= dom_id(@debate) %>_votes").html("<%= j render("debates/votes", debate: @debate) %>");
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
<%= f.password_field :password_confirmation %></p>
|
||||
|
||||
<p><%= f.submit t("devise.password_expired.change_password") %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
|
||||
<hr>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
App.Imageable.removeImage("<%= dom_id(@image) %>")
|
||||
App.Imageable.removeImage("<%= dom_id(@image) %>")
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%= link_to legislation_process_draft_version_annotation_path(annotation.draft_version.process, annotation.draft_version, annotation, sub_annotation_ids: "") do %>
|
||||
<span class="icon-expand" aria-hidden="true"></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
|
||||
<span id="annotation-link" data-sub-annotation-ids="8">
|
||||
<%= render "annotation_link", annotation: annotation %>
|
||||
<span>
|
||||
<span>
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
<p><%= t("legislation.processes.debate.participate") %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render "shared/suggest" %>
|
||||
<%= render "shared/suggest" %>
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
||||
<%= t("mailers.budget_investment_unfeasible.sincerely") %>
|
||||
</p>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
||||
<%= t("mailers.budget_investment_unselected.sincerely") %>
|
||||
</p>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
@@ -9,4 +9,3 @@
|
||||
<p>
|
||||
<a href="javascript:window.print();" class="button warning"><%= t("management.print_info") %></a>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render template: "proposals/vote" %>
|
||||
<%= render template: "proposals/vote" %>
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
</div>
|
||||
|
||||
<%= link_to t("management.users.erase_submit"), erase_management_users_path, method: :delete, class: "button hollow alert", data: { confirm: t("management.users.erase_account_confirm") } %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -29,4 +29,3 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
var comment_id = "<%= dom_id(@comment) %>";
|
||||
App.ModeratorComments.add_class_faded(comment_id);
|
||||
App.ModeratorComments.hide_moderator_actions(comment_id);
|
||||
App.ModeratorComments.hide_moderator_actions(comment_id);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
var debate_id = "<%= dom_id(@debate) %>";
|
||||
App.ModeratorDebates.add_class_faded(debate_id);
|
||||
App.ModeratorDebates.hide_moderator_actions(debate_id);
|
||||
App.ModeratorDebates.hide_moderator_actions(debate_id);
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#notification_<%= @notification.id %>").hide()
|
||||
$("#notification_<%= @notification.id %>").hide()
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#notification_<%= @notification.id %>").hide()
|
||||
$("#notification_<%= @notification.id %>").hide()
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render "shared/suggest" %>
|
||||
<%= render "shared/suggest" %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@proposal) %>_votes").html("<%= j render("proposals/votes", proposal: @proposal) %>");
|
||||
$("#<%= dom_id(@proposal) %>_votes").html("<%= j render("proposals/votes", proposal: @proposal) %>");
|
||||
|
||||
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@proposal) %>_votes").html("<%= j render("proposals/featured_votes", proposal: @proposal) %>");
|
||||
$("#<%= dom_id(@proposal) %>_votes").html("<%= j render("proposals/featured_votes", proposal: @proposal) %>");
|
||||
|
||||
@@ -1 +1 @@
|
||||
<link rel="canonical" href="<%= href %>">
|
||||
<link rel="canonical" href="<%= href %>">
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
<% end %>
|
||||
</strong>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<a href="javascript:window.print();" id="print_link" class="button warning expanded">
|
||||
<%= t("shared.print.print_button") %>
|
||||
</a>
|
||||
</a>
|
||||
|
||||
@@ -68,4 +68,4 @@ module Devise
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1 +1 @@
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Memoize) unless Rails.env.development?
|
||||
I18n::Backend::Simple.send(:include, I18n::Backend::Memoize) unless Rails.env.development?
|
||||
|
||||
@@ -16,4 +16,4 @@ module I18n
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2,4 +2,4 @@ class Numeric
|
||||
def percent_of(n)
|
||||
(to_f / n * 100).to_i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,4 +11,4 @@ class WYSIWYGSanitizer
|
||||
ActionController::Base.helpers.sanitize(html, tags: allowed_tags, attributes: allowed_attributes)
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,4 +24,4 @@ describe Management::BaseController do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,4 +17,4 @@ describe Management::UsersController do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,4 +31,4 @@ describe Users::RegistrationsController do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -64,4 +64,4 @@ describe "Officer Assignments" do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -33,4 +33,4 @@ describe "Admin poll officers" do
|
||||
expect(page).not_to have_css "#officers"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,4 +31,3 @@ describe "Admin users" do
|
||||
expect(page).not_to have_content @admin.email
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
#refactor specs and test as one more commmentable
|
||||
#refactor specs and test as one more commmentable
|
||||
|
||||
@@ -119,4 +119,4 @@ describe "Direct messages" do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,4 +34,4 @@ describe "EmailVerifications" do
|
||||
expect(user).to be_level_three_verified
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -27,4 +27,3 @@ describe "Proposal ballots" do
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -20,4 +20,3 @@ describe "Sessions" do
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -49,4 +49,4 @@ describe "Stats" do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -15,4 +15,4 @@ describe "User invites" do
|
||||
expect(page).to have_content "3 invitations have been sent."
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -16,4 +16,4 @@ describe AdminHelper do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,4 +24,4 @@ describe ApplicationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,4 +21,4 @@ describe VerificationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -29,4 +29,4 @@ describe VotesHelper do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -37,4 +37,4 @@ describe Budget::ReclassifiedVote do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -62,4 +62,4 @@ describe DirectUpload do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -122,4 +122,4 @@ describe TagCloud do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,4 +19,4 @@ describe Verification::Sms do
|
||||
expect(build(:verification_sms, phone: "555; DROP TABLE USERS")).not_to be_valid
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -36,4 +36,4 @@ describe Widget::Card do
|
||||
expect(Widget::Card.body).not_to include(page_card)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -75,4 +75,4 @@ describe Widget::Feed do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,4 +3,4 @@ RSpec::Matchers.define :appear_before do |later_content|
|
||||
text = page.text
|
||||
text.index(earlier_content) < text.index(later_content)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -254,4 +254,4 @@ shared_examples_for "verifiable" do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user