diff --git a/.reek.yml b/.reek.yml deleted file mode 100644 index 955b57f2e..000000000 --- a/.reek.yml +++ /dev/null @@ -1,5 +0,0 @@ -detectors: - Attribute: - enabled: false - NilCheck: - enabled: false diff --git a/.rubocop.yml b/.rubocop.yml deleted file mode 100644 index bc90df115..000000000 --- a/.rubocop.yml +++ /dev/null @@ -1,55 +0,0 @@ -inherit_from: .rubocop_todo.yml - -require: rubocop-rails - -AllCops: - TargetRailsVersion: 5.0 - Exclude: - - 'bin/**/*' - - 'vendor/**/*' - - 'db/**/*' - - 'config/**/*' - - 'script/**/*' - - 'spec/rails_helper.rb' - -Metrics/AbcSize: - Enabled: false - -Metrics/ClassLength: - Enabled: false - -Metrics/LineLength: - Max: 115 - -Metrics/MethodLength: - Enabled: false - -Metrics/ModuleLength: - Enabled: false - -Rails: - Enabled: true - -Rails/ReversibleMigration: - Enabled: false - -Style/BlockDelimiters: - EnforcedStyle: semantic - -Style/ConditionalAssignment: - EnforcedStyle: assign_to_condition - -Style/Documentation: - Enabled: false - -Style/Encoding: - Enabled: false - -Style/SymbolArray: - EnforcedStyle: brackets - -Style/WordArray: - EnforcedStyle: brackets - -Style/FrozenStringLiteralComment: - Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml deleted file mode 100644 index 44b9421cc..000000000 --- a/.rubocop_todo.yml +++ /dev/null @@ -1,2164 +0,0 @@ -# This configuration was generated by -# `rubocop --auto-gen-config` -# on 2024-02-27 13:21:50 UTC using RuboCop version 1.10.0. -# The point is for the user to remove these configuration records -# one by one as the offenses are removed from the code base. -# Note that changes in the inspected code, or installation of new -# versions of RuboCop, may require this file to be generated again. - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. -# Include: **/*.gemfile, **/Gemfile, **/gems.rb -Bundler/OrderedGems: - Exclude: - - 'Gemfile' - -# Offense count: 1 -# Configuration parameters: Include. -# Include: **/*.gemspec -Gemspec/RequiredRubyVersion: - Exclude: - - 'packages/portabilis/i-diario-plus/i-diario-plus.gemspec' - -# Offense count: 72 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: with_first_argument, with_fixed_indentation -Layout/ArgumentAlignment: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: with_first_element, with_fixed_indentation -Layout/ArrayAlignment: - Exclude: - - 'app/reports/partial_score_record_report.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: IndentationWidth. -Layout/AssignmentIndentation: - Exclude: - - 'packages/portabilis/i-diario-plus/app/reports/menu_nutritional_composition_report.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleAlignWith, Severity. -# SupportedStylesAlignWith: start_of_line, begin -Layout/BeginEndAlignment: - Exclude: - - 'app/controllers/daily_frequency_students_controller.rb' - - 'app/services/navigation/render/base.rb' - -# Offense count: 8 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleAlignWith. -# SupportedStylesAlignWith: either, start_of_block, start_of_line -Layout/BlockAlignment: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/models/recovery_diary_record_student.rb' - - 'app/reports/attendance_record_report.rb' - - 'app/services/navigation/breadcrumbs_builder.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/models/ieducar_api_exam_postings.rb' - - 'packages/portabilis/i-diario-plus/spec/factories/material_entrances.rb' - - 'packages/portabilis/i-diario-plus/spec/models/authorization_service_request_spec.rb' - - 'spec/services/navigation/breadcrumbs_builder_spec.rb' - -# Offense count: 22 -# Cop supports --auto-correct. -Layout/BlockEndNewline: - Exclude: - - 'app/models/avaliation.rb' - - 'app/models/daily_frequency_student.rb' - - 'app/models/knowledge_area_content_record.rb' - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request.rb' - - 'packages/portabilis/i-diario-plus/spec/models/group_spec.rb' - - 'packages/portabilis/i-diario-plus/spec/models/measuring_unit_spec.rb' - - 'packages/portabilis/i-diario-plus/spec/models/notification_spec.rb' - - 'packages/portabilis/i-diario-plus/spec/models/stock_class_spec.rb' - - 'packages/portabilis/i-diario-plus/spec/models/supplier_spec.rb' - - 'spec/controllers/lessons_board_controller_spec.rb' - - 'spec/factories/avaliations.rb' - - 'spec/models/ieducar_api_configuration_spec.rb' - - 'spec/models/unity_spec.rb' - - 'spec/services/create_absence_justifications_service_spec.rb' - -# Offense count: 60 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth. -# SupportedStyles: case, end -Layout/CaseIndentation: - Enabled: false - -# Offense count: 16 -# Cop supports --auto-correct. -Layout/ClosingParenthesisIndentation: - Exclude: - - 'app/controllers/avaliations_controller.rb' - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'app/controllers/daily_notes_controller.rb' - - 'app/controllers/entity_configurations_controller.rb' - - 'app/models/avaliation_recovery_diary_record.rb' - - 'app/models/conceptual_exam_value.rb' - - 'app/models/daily_note.rb' - - 'app/models/final_recovery_diary_record.rb' - - 'app/models/school_term_recovery_diary_record.rb' - - 'app/services/objectives_to_content_fetcher.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/publications_controller.rb' - - 'packages/portabilis/i-diario-plus/app/queries/menu_execution_query.rb' - - 'packages/portabilis/i-diario-plus/app/services/publication_creator.rb' - - 'spec/helpers/daily_frequency_helper_spec.rb' - - 'spec/reports/observation_record_report_spec.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -Layout/ConditionPosition: - Exclude: - - 'app/controllers/api/v2/daily_frequency_students_controller.rb' - - 'app/services/daily_frequencies_creator.rb' - - 'packages/portabilis/i-diario-plus/app/reports/consumption_prediction_report.rb' - -# Offense count: 59 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: leading, trailing -Layout/DotPosition: - Enabled: false - -# Offense count: 4 -# Cop supports --auto-correct. -Layout/ElseAlignment: - Exclude: - - 'app/decorators/audit_decorator.rb' - - 'app/models/conceptual_exam_value.rb' - - 'app/policies/application_policy.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AllowBorderComment, AllowMarginComment. -Layout/EmptyComment: - Exclude: - - 'spec/models/avaliation_recovery_lowest_note_spec.rb' - -# Offense count: 75 -# Cop supports --auto-correct. -Layout/EmptyLineAfterGuardClause: - Enabled: false - -# Offense count: 61 -# Cop supports --auto-correct. -Layout/EmptyLineAfterMagicComment: - Enabled: false - -# Offense count: 5 -# Cop supports --auto-correct. -# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines. -Layout/EmptyLineBetweenDefs: - Exclude: - - 'app/controllers/knowledge_area_teaching_plans_controller.rb' - - 'app/models/conceptual_exam.rb' - - 'app/services/ieducar_api/base.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request_authorization.rb' - -# Offense count: 33 -# Cop supports --auto-correct. -Layout/EmptyLines: - Enabled: false - -# Offense count: 11 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: around, only_before -Layout/EmptyLinesAroundAccessModifier: - Exclude: - - 'app/policies/test_setting_update_policy.rb' - - 'app/services/maximum_score_fetcher.rb' - - 'app/services/minimum_score_fetcher.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/commitments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contracts_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_kinds_controller.rb' - - 'packages/portabilis/i-diario-plus/app/models/contract.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance_item.rb' - - 'packages/portabilis/i-diario-plus/app/services/parent_dashboard_builder.rb' - - 'packages/portabilis/i-diario-plus/app/services/parent_dashboard_students_fetcher.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_material_quantity_rounder.rb' - -# Offense count: 5 -# Cop supports --auto-correct. -# Configuration parameters: AllowAliasSyntax, AllowedMethods. -# AllowedMethods: alias_method, public, protected, private -Layout/EmptyLinesAroundAttributeAccessor: - Exclude: - - 'app/forms/discipline_content_record_item_cloner_form.rb' - - 'app/forms/discipline_lesson_plan_item_cloner_form.rb' - - 'app/forms/knowledge_area_content_record_item_cloner_form.rb' - - 'app/forms/knowledge_area_lesson_plan_item_cloner_form.rb' - - 'packages/portabilis/i-diario-plus/app/services/administrative_tools_integrator/messages.rb' - -# Offense count: 69 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, no_empty_lines -Layout/EmptyLinesAroundBlockBody: - Enabled: false - -# Offense count: 56 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only -Layout/EmptyLinesAroundClassBody: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -Layout/EmptyLinesAroundExceptionHandlingKeywords: - Exclude: - - 'app/controllers/synchronizations_controller.rb' - -# Offense count: 15 -# Cop supports --auto-correct. -Layout/EmptyLinesAroundMethodBody: - Exclude: - - 'app/controllers/pedagogical_trackings_controller.rb' - - 'app/reports/attendance_record_report.rb' - - 'app/services/exam_rule_fetcher.rb' - - 'packages/portabilis/i-diario-plus/app/models/menu_execution.rb' - - 'packages/portabilis/i-diario-plus/app/reports/consumption_prediction_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_nutritional_composition_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/stock_movements_report.rb' - - 'packages/portabilis/i-diario-plus/app/workers/stock_movements_report_worker.rb' - - 'packages/portabilis/i-diario-plus/app/workers/track_launch_shipping_report_worker.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20150819194813_delete_menu_material_records_from_audits.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20200516195234_migrate_trashed_messages.rb' - -# Offense count: 7 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines -Layout/EmptyLinesAroundModuleBody: - Exclude: - - 'app/helpers/user_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/authorization_service_request_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/foods_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/material_request_authorization_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/recipes_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/service_request_helper.rb' - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/accompaniment.rb' - -# Offense count: 30 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleAlignWith, Severity. -# SupportedStylesAlignWith: keyword, variable, start_of_line -Layout/EndAlignment: - Enabled: false - -# Offense count: 6 -# Configuration parameters: EnforcedStyle. -# SupportedStyles: native, lf, crlf -Layout/EndOfLine: - Exclude: - - 'packages/portabilis/i-diario-plus/db/migrate/20150903170749_add_unit_value_to_material_entrance_items.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20150908115620_change_material_entrance_item_unit_value_type.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20150918133402_change_materials_description_type.rb' - - 'spec/support/matchers/have_select2.rb' - - 'spec/support/matchers/have_select2_disabled.rb' - - 'spec/support/matchers/have_select2_filled.rb' - -# Offense count: 40 -# Cop supports --auto-correct. -# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. -Layout/ExtraSpacing: - Enabled: false - -# Offense count: 29 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses -Layout/FirstArgumentIndentation: - Enabled: false - -# Offense count: 9 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_brackets -Layout/FirstArrayElementIndentation: - Exclude: - - 'app/controllers/discipline_lesson_plans_controller.rb' - - 'app/controllers/knowledge_area_lesson_plans_controller.rb' - - 'app/forms/current_role_form.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/menus_controller.rb' - - 'packages/portabilis/i-diario-plus/app/forms/lunch_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/reports/delivery_prediction_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_nutritional_composition_report.rb' - -# Offense count: 11 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_braces -Layout/FirstHashElementIndentation: - Exclude: - - 'app/controllers/teacher_report_cards_controller.rb' - - 'packages/portabilis/i-diario-plus/app/services/administrative_tools_integrator/messages.rb' - - 'packages/portabilis/i-diario-plus/app/services/authorization_item_status_updater.rb' - - 'packages/portabilis/i-diario-plus/spec/decorators/stock_class_decorator_spec.rb' - - 'spec/helpers/daily_frequency_helper_spec.rb' - - 'spec/models/ieducar_api_configuration_spec.rb' - -# Offense count: 54 -# Cop supports --auto-correct. -# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. -# SupportedHashRocketStyles: key, separator, table -# SupportedColonStyles: key, separator, table -# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit -Layout/HashAlignment: - Enabled: false - -# Offense count: 4 -# Cop supports --auto-correct. -Layout/HeredocIndentation: - Exclude: - - 'packages/portabilis/i-diario-plus/db/migrate/20170720115534_alter_view_moved_materials_to_units_conversions.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20170721124604_alter_view_moved_materials_to_units_conversions_exits.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20170817190503_alter_view_moved_materials_to_units_conversions_exits_units.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20170913112714_alter_view_moved_materials_to_att_unit_conversions.rb' - -# Offense count: 52 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: normal, indented_internal_methods -Layout/IndentationConsistency: - Enabled: false - -# Offense count: 75 -# Cop supports --auto-correct. -# Configuration parameters: IndentationWidth, EnforcedStyle. -# SupportedStyles: spaces, tabs -Layout/IndentationStyle: - Enabled: false - -# Offense count: 65 -# Cop supports --auto-correct. -# Configuration parameters: Width, IgnoredPatterns. -Layout/IndentationWidth: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -Layout/InitialIndentation: - Exclude: - - 'packages/portabilis/i-diario-plus/db/migrate/20150903170749_add_unit_value_to_material_entrance_items.rb' - -# Offense count: 25 -# Cop supports --auto-correct. -# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment. -Layout/LeadingCommentSpace: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -Layout/LeadingEmptyLines: - Exclude: - - 'lib/tasks/refresh_pedagogical_tracking_dashboard_views.rake' - -# Offense count: 1055 -# Cop supports --auto-correct. -# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 524 - -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineArrayBraceLayout: - Exclude: - - 'app/models/avaliation.rb' - - 'app/reports/partial_score_record_report.rb' - - 'packages/portabilis/i-diario-plus/spec/decorators/stock_class_decorator_spec.rb' - -# Offense count: 23 -# Cop supports --auto-correct. -Layout/MultilineBlockLayout: - Enabled: false - -# Offense count: 28 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineMethodCallBraceLayout: - Enabled: false - -# Offense count: 330 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented, indented_relative_to_receiver -Layout/MultilineMethodCallIndentation: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineMethodDefinitionBraceLayout: - Exclude: - - 'app/services/exam_poster/numerical_exam_poster.rb' - -# Offense count: 16 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented -Layout/MultilineOperationIndentation: - Exclude: - - 'app/controllers/avaliation_recovery_lowest_notes_controller.rb' - - 'app/controllers/conceptual_exams_controller.rb' - - 'app/models/student_enrollment.rb' - - 'app/models/student_enrollment_classroom.rb' - - 'app/services/ieducar_synchronizers/school_calendars_synchronizer.rb' - - 'app/services/student_average_calculator.rb' - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request.rb' - - 'spec/factories/lessons_board_lesson_weekdays.rb' - - 'spec/services/entity_creator_spec.rb' - - 'spec/support/matchers/validate_date_of_matcher.rb' - -# Offense count: 5 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: with_first_parameter, with_fixed_indentation -Layout/ParameterAlignment: - Exclude: - - 'app/services/exam_poster/numerical_exam_poster.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -Layout/RescueEnsureAlignment: - Exclude: - - 'app/controllers/daily_frequency_students_controller.rb' - - 'app/services/navigation/render/base.rb' - -# Offense count: 9 -# Cop supports --auto-correct. -Layout/SpaceAfterColon: - Exclude: - - 'packages/portabilis/i-diario-plus/app/controllers/inventory_adjustments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_exits_controller.rb' - - 'packages/portabilis/i-diario-plus/app/forms/consumption_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/delivery_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/lunch_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_donation_pdf.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_supplier_pdf.rb' - - 'packages/portabilis/i-diario-plus/spec/decorators/stock_class_decorator_spec.rb' - -# Offense count: 58 -# Cop supports --auto-correct. -Layout/SpaceAfterComma: - Enabled: false - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleInsidePipes. -# SupportedStylesInsidePipes: space, no_space -Layout/SpaceAroundBlockParameters: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/material_request_authorization.rb' - - 'packages/portabilis/i-diario-plus/app/services/menu_distribution_params_parser.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: space, no_space -Layout/SpaceAroundEqualsInParameterDefault: - Exclude: - - 'spec/support/helpers.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Layout/SpaceAroundKeyword: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/material.rb' - -# Offense count: 38 -# Cop supports --auto-correct. -# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. -# SupportedStylesForExponentOperator: space, no_space -Layout/SpaceAroundOperators: - Enabled: false - -# Offense count: 40 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. -# SupportedStyles: space, no_space -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceBeforeBlockBraces: - Enabled: false - -# Offense count: 8 -# Cop supports --auto-correct. -Layout/SpaceBeforeComma: - Exclude: - - 'app/models/school_calendar_event.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_donation_pdf.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_supplier_pdf.rb' - - 'spec/models/user_role_spec.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: AllowForAlignment. -Layout/SpaceBeforeFirstArg: - Exclude: - - 'packages/portabilis/i-diario-plus/db/migrate/20141216164922_fix_pre_registrations_foreign_key.rb' - - 'packages/portabilis/i-diario-plus/spec/models/material_exit_item_spec.rb' - -# Offense count: 11 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: require_no_space, require_space -Layout/SpaceInLambdaLiteral: - Exclude: - - 'app/models/observation_diary_record.rb' - - 'app/models/observation_diary_record_note.rb' - - 'app/models/unity.rb' - -# Offense count: 99 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets. -# SupportedStyles: space, no_space, compact -# SupportedStylesForEmptyBrackets: space, no_space -Layout/SpaceInsideArrayLiteralBrackets: - Exclude: - - 'app/controllers/discipline_teaching_plans_controller.rb' - - 'app/controllers/knowledge_area_teaching_plans_controller.rb' - - 'app/inputs/select2_classroom_input.rb' - - 'app/inputs/select2_course_input.rb' - - 'packages/portabilis/i-diario-plus/app/forms/consumption_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/delivery_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/lunch_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_exit.rb' - - 'packages/portabilis/i-diario-plus/app/queries/menu_execution_query.rb' - - 'packages/portabilis/i-diario-plus/app/reports/delivery_prediction_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/publication_fetcher.rb' - - 'spec/services/navigation/menu_render_spec.rb' - -# Offense count: 69 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. -# SupportedStyles: space, no_space -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceInsideBlockBraces: - Enabled: false - -# Offense count: 55 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. -# SupportedStyles: space, no_space, compact -# SupportedStylesForEmptyBraces: space, no_space -Layout/SpaceInsideHashLiteralBraces: - Enabled: false - -# Offense count: 22 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: space, no_space -Layout/SpaceInsideParens: - Exclude: - - 'app/models/avaliation.rb' - - 'app/models/avaliation_exemption.rb' - - 'app/models/avaliation_recovery_diary_record.rb' - - 'app/models/knowledge_area_content_record.rb' - - 'app/models/signup.rb' - - 'app/services/lesson_plan_attachment_copier.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/menus_controller.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request_authorization.rb' - - 'packages/portabilis/i-diario-plus/app/queries/menu_execution_query.rb' - - 'packages/portabilis/i-diario-plus/app/services/publication_creator.rb' - - 'spec/models/address_spec.rb' - -# Offense count: 66 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: final_newline, final_blank_line -Layout/TrailingEmptyLines: - Enabled: false - -# Offense count: 30 -# Cop supports --auto-correct. -# Configuration parameters: AllowInHeredoc. -Layout/TrailingWhitespace: - Enabled: false - -# Offense count: 1 -Lint/AmbiguousBlockAssociation: - Exclude: - - 'packages/portabilis/i-diario-plus/app/controllers/menu_executions_periods_controller.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Lint/AmbiguousOperator: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/menu_distribution.rb' - -# Offense count: 31 -# Cop supports --auto-correct. -Lint/AmbiguousRegexpLiteral: - Exclude: - - 'spec/controllers/daily_frequencies_controller_spec.rb' - - 'spec/controllers/descriptive_exams_controller_spec.rb' - - 'spec/controllers/entity_configurations_controller_spec.rb' - - 'spec/controllers/roles_controller_spec.rb' - - 'spec/services/navigation/menu_builder_spec.rb' - -# Offense count: 19 -# Configuration parameters: AllowSafeAssignment. -Lint/AssignmentInCondition: - Enabled: false - -# Offense count: 10 -# Configuration parameters: AllowedMethods. -# AllowedMethods: enums -Lint/ConstantDefinitionInBlock: - Exclude: - - 'packages/portabilis/i-diario-plus/app/decorators/controllers/application_controller_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/helpers/role_helper_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/services/features_access_levels_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/services/navigation/base_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/services/student_unification/base.rb' - - 'spec/services/exempted_disciplines_in_step_spec.rb' - -# Offense count: 2 -Lint/DuplicateHashKey: - Exclude: - - 'packages/portabilis/i-diario-plus/app/reports/lunch_report.rb' - -# Offense count: 13 -Lint/DuplicateMethods: - Exclude: - - 'app/decorators/school_calendar_decorator.rb' - - 'app/forms/avaliation_multiple_creator_classroom_form.rb' - - 'app/models/active_search_daily_note_student.rb' - - 'app/models/exempted_daily_note_student.rb' - - 'app/models/null_daily_note_student.rb' - - 'app/models/observation_diary_record.rb' - - 'packages/portabilis/i-diario-plus/app/forms/inventory_adjustment.rb' - - 'packages/portabilis/i-diario-plus/app/forms/inventory_adjustment_item.rb' - - 'packages/portabilis/i-diario-plus/app/models/menu_distribution.rb' - - 'packages/portabilis/i-diario-plus/app/models/message.rb' - - 'packages/portabilis/i-diario-plus/app/services/administrative_tools_integrator/messages.rb' - -# Offense count: 4 -# Configuration parameters: AllowComments. -Lint/EmptyConditionalBody: - Exclude: - - 'app/controllers/api/v2/daily_frequency_students_controller.rb' - - 'app/services/daily_frequencies_creator.rb' - - 'packages/portabilis/i-diario-plus/app/reports/consumption_prediction_report.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Lint/EnsureReturn: - Exclude: - - 'packages/portabilis/i-diario-plus/app/services/publication_creator.rb' - -# Offense count: 1 -Lint/FloatComparison: - Exclude: - - 'packages/portabilis/i-diario-plus/app/forms/inventory_adjustment_item.rb' - -# Offense count: 31 -Lint/IneffectiveAccessModifier: - Enabled: false - -# Offense count: 2 -# Cop supports --auto-correct. -Lint/InterpolationCheck: - Exclude: - - 'packages/portabilis/i-diario-plus/spec/support/turnip/menu_executions_steps.rb' - - 'packages/portabilis/i-diario-plus/spec/support/turnip/service_requests_steps.rb' - -# Offense count: 1 -Lint/LiteralAsCondition: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -Lint/Loop: - Exclude: - - 'app/reports/base_report.rb' - -# Offense count: 1 -# Configuration parameters: MaximumRangeSize. -Lint/MissingCopEnableDirective: - Exclude: - - 'app/services/navigation/render/base.rb' - -# Offense count: 12 -Lint/MissingSuper: - Exclude: - - 'app/services/api/school_calendar_classroom_step_activity.rb' - - 'app/services/api/school_calendar_step_activity.rb' - - 'app/services/contents_for_discipline_record_fetcher.rb' - - 'app/services/contents_for_knowledge_area_record_fetcher.rb' - - 'app/services/discipline_teaching_plan_contents_fetcher.rb' - - 'app/services/discipline_teaching_plan_objectives_fetcher.rb' - - 'app/services/exam_poster/student_only_with_recovery_fetcher.rb' - - 'app/services/knowledge_area_teaching_plan_contents_fetcher.rb' - - 'app/services/knowledge_area_teaching_plan_objectives_fetcher.rb' - - 'spec/support/matchers/have_select2.rb' - - 'spec/support/matchers/have_select2_disabled.rb' - - 'spec/support/matchers/have_select2_filled.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -Lint/NonDeterministicRequireOrder: - Exclude: - - 'spec/spec_helper.rb' - - 'spec/spec_helper_form.rb' - -# Offense count: 6 -Lint/NonLocalExitFromIterator: - Exclude: - - 'app/services/ieducar_synchronizers/teacher_discipline_classrooms_synchronizer.rb' - - 'app/services/school_day_checker.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_exit.rb' - -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: AllowedImplicitNamespaces. -# AllowedImplicitNamespaces: Gem -Lint/RaiseException: - Exclude: - - 'app/models/entity.rb' - - 'packages/portabilis/i-diario-plus/app/services/unities_on_current_year.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Lint/RedundantCopDisableDirective: - Exclude: - - 'app/services/navigation/render/base.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Lint/RedundantStringCoercion: - Exclude: - - 'app/reports/exam_record_report.rb' - -# Offense count: 5 -Lint/RescueException: - Exclude: - - 'app/controllers/daily_notes_controller.rb' - - 'app/controllers/schools_controller.rb' - - 'app/services/aws_s3_handler_service.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contact_schools_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/student_newsletters_controller.rb' - -# Offense count: 2 -Lint/ReturnInVoidContext: - Exclude: - - 'app/models/content_record.rb' - - 'app/models/daily_frequency.rb' - -# Offense count: 4 -Lint/SelfAssignment: - Exclude: - - 'packages/portabilis/i-diario-plus/app/reports/track_launch_shipping_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/totalizers/descriptive_exams.rb' - - 'spec/services/list_grades_by_step_builder_spec.rb' - -# Offense count: 1 -# Configuration parameters: IgnoreImplicitReferences. -Lint/ShadowedArgument: - Exclude: - - 'packages/portabilis/i-diario-plus/lib/tasks/avaliation_data.rake' - -# Offense count: 18 -Lint/ShadowingOuterLocalVariable: - Exclude: - - 'app/controllers/exam_rules_controller.rb' - - 'app/controllers/pedagogical_trackings_controller.rb' - - 'app/forms/discipline_lesson_plan_cloner_form.rb' - - 'app/forms/knowledge_area_lesson_plan_cloner_form.rb' - - 'app/models/recovery_diary_record_student.rb' - - 'app/reports/attendance_record_report.rb' - - 'app/reports/exam_record_report.rb' - - 'app/services/copy_discipline_teaching_plan_service.rb' - - 'app/services/ieducar_synchronizers/student_enrollment_classroom_synchronizer.rb' - - 'app/services/student_enrollment_classroom_businesses.rb' - - 'app/workers/ieducar/send_post_worker.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/publication_fetcher.rb' - - 'packages/portabilis/i-diario-plus/spec/factories/material_requests.rb' - -# Offense count: 3 -# Configuration parameters: AllowComments. -Lint/SuppressedException: - Exclude: - - 'app/services/period_updater_service.rb' - - 'app/services/student_unification/reverter_service.rb' - - 'app/services/teacher_unification/reverter_service.rb' - -# Offense count: 3 -# Cop supports --auto-correct. -Lint/ToJSON: - Exclude: - - 'app/models/lecture.rb' - - 'app/models/remote_grade.rb' - - 'app/models/school_class.rb' - -# Offense count: 9 -# Configuration parameters: AllowKeywordBlockArguments. -Lint/UnderscorePrefixedVariableName: - Exclude: - - 'app/controllers/custom_rounding_tables_controller.rb' - - 'app/controllers/maintenance_adjustments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contracts_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_entrances_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_exits_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/menus_controller.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/models/user_decorator.rb' - -# Offense count: 1 -Lint/UnreachableCode: - Exclude: - - 'packages/portabilis/i-diario-plus/app/services/disciplinary_occurrence_notifier.rb' - -# Offense count: 2 -# Configuration parameters: IgnoredPatterns. -# IgnoredPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times) -Lint/UnreachableLoop: - Exclude: - - 'app/services/school_day_checker.rb' - -# Offense count: 40 -# Cop supports --auto-correct. -# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. -Lint/UnusedBlockArgument: - Enabled: false - -# Offense count: 12 -# Cop supports --auto-correct. -# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. -Lint/UnusedMethodArgument: - Exclude: - - 'app/inputs/select2_remote_input.rb' - - 'app/reports/attendance_record_report.rb' - - 'app/services/school_calender_event_service.rb' - - 'app/workers/concerns/ieducar/send_post_performer.rb' - - 'app/workers/student_dependencies_discarders/base_student_dependencies_discarder_worker.rb' - - 'app/workers/students_update_uses_differentiated_exam_rule_worker.rb' - - 'lib/portabilis/inputs/autocomplete_input.rb' - - 'lib/portabilis/inputs/date_input.rb' - - 'lib/portabilis/inputs/datetime_input.rb' - - 'packages/portabilis/i-diario-plus/app/services/delete_old_users.rb' - - 'spec/support/context.rb' - -# Offense count: 10 -# Cop supports --auto-correct. -# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods. -Lint/UselessAccessModifier: - Exclude: - - 'app/decorators/school_calendar_decorator.rb' - - 'app/enumerations/year.rb' - - 'app/models/discipline.rb' - - 'app/models/knowledge_area_teaching_plan.rb' - - 'app/services/features_access_levels.rb' - - 'lib/portabilis/inputs/string_input.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/group_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/material_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/resource_font_spheres_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/stock_class_decorator.rb' - -# Offense count: 34 -Lint/UselessAssignment: - Enabled: false - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: AllowComments. -Lint/UselessMethodDefinition: - Exclude: - - 'packages/portabilis/i-diario-plus/app/decorators/models/user_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/models/authorization_service_request.rb' - -# Offense count: 5 -# Configuration parameters: CheckForMethodsWithNoSideEffects. -Lint/Void: - Exclude: - - 'app/controllers/discipline_lesson_plan_report_controller.rb' - - 'app/controllers/knowledge_area_lesson_plan_report_controller.rb' - - 'app/services/navigation/menu_builder.rb' - -# Offense count: 442 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. -# IgnoredMethods: refine -Metrics/BlockLength: - Max: 504 - -# Offense count: 146 -# Configuration parameters: IgnoredMethods. -Metrics/CyclomaticComplexity: - Max: 76 - -# Offense count: 27 -# Configuration parameters: CountKeywordArgs. -Metrics/ParameterLists: - Max: 13 - MaxOptionalParameters: 4 - -# Offense count: 120 -# Configuration parameters: IgnoredMethods. -Metrics/PerceivedComplexity: - Max: 83 - -# Offense count: 15 -Naming/AccessorMethodName: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/controllers/knowledge_area_content_records_controller.rb' - - 'app/controllers/knowledge_area_teaching_plans_controller.rb' - - 'app/controllers/users/unlocks_controller.rb' - - 'app/forms/discipline_lesson_plan_cloner_form.rb' - - 'app/forms/knowledge_area_lesson_plan_cloner_form.rb' - - 'app/models/ieducar_api_synchronization.rb' - - 'app/models/user.rb' - - 'app/services/user_by_csv_creator.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/inventory_adjustments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_exits_controller.rb' - - 'packages/portabilis/i-diario-plus/app/models/publication.rb' - - 'packages/portabilis/i-diario-plus/lib/tasks/default_data.rake' - - 'spec/support/matchers/have_select2_filled.rb' - -# Offense count: 1 -# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. -Naming/BlockParameterName: - Exclude: - - 'packages/portabilis/i-diario-plus/app/decorators/material_exit_decorator.rb' - -# Offense count: 1 -# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms. -# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS -Naming/FileName: - Exclude: - - 'packages/portabilis/i-diario-plus/lib/i-diario-plus.rb' - -# Offense count: 67 -# Configuration parameters: EnforcedStyleForLeadingUnderscores. -# SupportedStylesForLeadingUnderscores: disallowed, required, optional -Naming/MemoizedInstanceVariableName: - Enabled: false - -# Offense count: 2 -# Configuration parameters: EnforcedStyle, IgnoredPatterns. -# SupportedStyles: snake_case, camelCase -Naming/MethodName: - Exclude: - - 'app/models/content_record.rb' - - 'app/models/lesson_plan.rb' - -# Offense count: 34 -# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. -# NamePrefix: is_, has_, have_ -# ForbiddenPrefixes: is_, has_, have_ -# AllowedMethods: is_a? -# MethodDefinitionMacros: define_method, define_singleton_method -Naming/PredicateName: - Enabled: false - -# Offense count: 23 -# Cop supports --auto-correct. -# Configuration parameters: PreferredName. -Naming/RescuedExceptionsVariableName: - Enabled: false - -# Offense count: 8 -# Configuration parameters: EnforcedStyle, AllowedIdentifiers. -# SupportedStyles: snake_case, camelCase -Naming/VariableName: - Exclude: - - 'packages/portabilis/i-diario-plus/app/controllers/material_exits_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_request_authorizations_controller.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/material_exit_decorator.rb' - -# Offense count: 121 -# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers. -# SupportedStyles: snake_case, normalcase, non_integer -# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 -Naming/VariableNumber: - Exclude: - - 'app/enumerations/child_educations.rb' - - 'app/enumerations/group_child_educations.rb' - - 'app/helpers/avaliation_helper.rb' - - 'lib/tasks/upgrades.rake' - - 'spec/controllers/daily_frequencies_controller_spec.rb' - - 'spec/controllers/lessons_board_controller_spec.rb' - - 'spec/models/knowledge_area_spec.rb' - - 'spec/queries/school_calendar_query_spec.rb' - - 'spec/services/absence_adjustments_service_spec.rb' - - 'spec/services/student_average_calculation_spec.rb' - - 'spec/services/student_enrollment_classrooms_retriever_spec.rb' - - 'spec/services/student_enrollment_lists_spec.rb' - - 'spec/services/student_enrollments_retriever_spec.rb' - - 'spec/services/years_from_unity_fetcher_spec.rb' - -# Offense count: 7 -# Cop supports --auto-correct. -Rails/ActiveRecordAliases: - Exclude: - - 'app/controllers/avaliation_exemptions_controller.rb' - - 'app/services/exam_poster/base.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/authorization_service_requests_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/foods_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_requests_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/materials_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/service_requests_controller.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Rails/ApplicationController: - Exclude: - - 'app/controllers/sidekiq_monitor_controller.rb' - -# Offense count: 42 -# Cop supports --auto-correct. -Rails/ApplicationRecord: - Enabled: false - -# Offense count: 22 -# Cop supports --auto-correct. -# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent. -Rails/Blank: - Enabled: false - -# Offense count: 16 -# Configuration parameters: Include. -# Include: db/migrate/*.rb -Rails/CreateTableWithTimestamps: - Enabled: false - -# Offense count: 2 -# Configuration parameters: EnforcedStyle. -# SupportedStyles: strict, flexible -Rails/Date: - Exclude: - - 'app/services/active_search_service.rb' - - 'app/services/ieducar_synchronizers/unities_synchronizer.rb' - -# Offense count: 8 -# Cop supports --auto-correct. -# Configuration parameters: EnforceForPrefixed. -Rails/Delegate: - Exclude: - - 'app/decorators/audit_decorator.rb' - - 'app/models/role.rb' - - 'app/serializers/avaliation_serializer.rb' - - 'app/serializers/rounding_table_value_serializer.rb' - - 'app/serializers/student_in_final_recovery_serializer.rb' - - 'app/services/current_profile.rb' - -# Offense count: 30 -# Cop supports --auto-correct. -# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers. -# Whitelist: find_by_sql -# AllowedMethods: find_by_sql -# AllowedReceivers: Gem::Specification -Rails/DynamicFindBy: - Enabled: false - -# Offense count: 9 -# Configuration parameters: EnforcedStyle. -# SupportedStyles: slashes, arguments -Rails/FilePath: - Exclude: - - 'app/models/classroom.rb' - - 'app/models/discipline.rb' - - 'app/services/ieducar_synchronizers/synchronization_configs.rb' - - 'app/services/navigation/base.rb' - - 'lib/sidekiq_monitor.rb' - - 'lib/tasks/clear_reports_folder.rake' - - 'packages/portabilis/i-diario-plus/lib/i-diario-plus/engine.rb' - - 'spec/spec_helper.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: Include. -# Include: app/models/**/*.rb -Rails/FindBy: - Exclude: - - 'app/models/ieducar_api_synchronization.rb' - - 'app/models/user.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance_item.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: Include, IgnoredMethods. -# Include: app/models/**/*.rb -# IgnoredMethods: order, limit, select, lock -Rails/FindEach: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/message.rb' - -# Offense count: 18 -# Configuration parameters: Include. -# Include: app/models/**/*.rb -Rails/HasAndBelongsToMany: - Exclude: - - 'app/models/avaliation.rb' - - 'app/models/custom_rounding_table.rb' - - 'app/models/discipline.rb' - - 'app/models/grade.rb' - - 'app/models/knowledge_area.rb' - - 'app/models/knowledge_area_content_record.rb' - - 'app/models/maintenance_adjustment.rb' - - 'app/models/student.rb' - - 'app/models/unity.rb' - - 'app/models/user.rb' - - 'packages/portabilis/i-diario-plus/app/models/delivery_schedule.rb' - - 'packages/portabilis/i-diario-plus/app/models/menu_distribution.rb' - - 'packages/portabilis/i-diario-plus/app/models/menu_menu_type_weekday.rb' - - 'packages/portabilis/i-diario-plus/app/models/recipe.rb' - - 'packages/portabilis/i-diario-plus/app/models/school_group.rb' - -# Offense count: 67 -# Configuration parameters: Include. -# Include: app/models/**/*.rb -Rails/HasManyOrHasOneDependent: - Enabled: false - -# Offense count: 18 -# Configuration parameters: Include. -# Include: app/helpers/**/*.rb -Rails/HelperInstanceVariable: - Exclude: - - 'app/helpers/avaliation_helper.rb' - - 'app/helpers/conceptual_exam_helper.rb' - - 'app/helpers/daily_frequency_helper.rb' - - 'app/helpers/test_setting_helper.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: numeric, symbolic -Rails/HttpStatus: - Exclude: - - 'app/controllers/conceptual_exams_controller.rb' - - 'app/controllers/unities_controller.rb' - - 'app/controllers/users_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/messages_controller.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Rails/IndexBy: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/publication_student_status.rb' - -# Offense count: 45 -# Configuration parameters: Include. -# Include: app/models/**/*.rb -Rails/InverseOf: - Enabled: false - -# Offense count: 4 -# Configuration parameters: Include. -# Include: app/controllers/**/*.rb -Rails/LexicallyScopedActionFilter: - Exclude: - - 'app/controllers/conceptual_exams_controller.rb' - - 'app/controllers/descriptive_exams_controller.rb' - - 'app/controllers/maintenance_adjustments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contracts_controller.rb' - -# Offense count: 3 -# Configuration parameters: Include. -# Include: db/migrate/*.rb -Rails/NotNullColumn: - Exclude: - - 'packages/portabilis/i-diario-plus/db/migrate/20141007161914_remove_group_from_materials.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20141009180223_add_material_id_to_material_request_items.rb' - - 'packages/portabilis/i-diario-plus/db/migrate/20151210164524_add_material_exit_id_to_menu_executions.rb' - -# Offense count: 6 -# Configuration parameters: Include. -# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb -Rails/Output: - Exclude: - - 'app/services/block_user_service.rb' - - 'app/services/user_by_csv_creator.rb' - - 'packages/portabilis/i-diario-plus/app/services/delete_old_users.rb' - -# Offense count: 34 -Rails/OutputSafety: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -Rails/PluralizationGrammar: - Exclude: - - 'spec/models/school_term_recovery_diary_record_spec.rb' - -# Offense count: 26 -# Cop supports --auto-correct. -Rails/Presence: - Exclude: - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'app/reports/discipline_lesson_plan_pdf.rb' - - 'app/reports/discipline_teaching_plan_pdf.rb' - - 'app/reports/knowledge_area_lesson_plan_pdf.rb' - - 'app/reports/knowledge_area_teaching_plan_pdf.rb' - - 'app/services/block_user_service.rb' - - 'app/services/ieducar_synchronizers/student_enrollment_classroom_synchronizer.rb' - - 'packages/portabilis/i-diario-plus/app/forms/stock_movement.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_donation_pdf.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_supplier_pdf.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/stock_movements_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/stock_position_report.rb' - -# Offense count: 10 -# Cop supports --auto-correct. -# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank. -Rails/Present: - Exclude: - - 'app/forms/exam_record_report_form.rb' - - 'app/models/student_enrollment.rb' - - 'app/services/resource_destroyer.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_entrances_controller.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/helpers/application_helper_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/models/delivery_schedule.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance_item.rb' - -# Offense count: 6 -# Cop supports --auto-correct. -# Configuration parameters: Include. -# Include: app/models/**/*.rb -Rails/ReadWriteAttribute: - Exclude: - - 'app/models/school_calendar_event.rb' - - 'app/models/user.rb' - - 'packages/portabilis/i-diario-plus/app/models/menu_distribution.rb' - -# Offense count: 6 -# Cop supports --auto-correct. -Rails/RedundantForeignKey: - Exclude: - - 'app/models/general_configuration.rb' - - 'app/models/user.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/models/general_configuration_decorator.rb' - -# Offense count: 8 -Rails/ReflectionClassName: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/classrooms_publication.rb' - - 'packages/portabilis/i-diario-plus/app/models/material.rb' - - 'packages/portabilis/i-diario-plus/app/models/publication.rb' - - 'packages/portabilis/i-diario-plus/app/models/students_publication.rb' - -# Offense count: 61 -# Configuration parameters: ForbiddenMethods, AllowedMethods. -# ForbiddenMethods: decrement!, decrement_counter, increment!, increment_counter, insert, insert!, insert_all, insert_all!, toggle!, touch, touch_all, update_all, update_attribute, update_column, update_columns, update_counters, upsert, upsert_all -Rails/SkipsModelValidations: - Enabled: false - -# Offense count: 3 -# Configuration parameters: Environments. -# Environments: development, test, production -Rails/UnknownEnv: - Exclude: - - 'app/services/ieducar_api/base.rb' - - 'packages/portabilis/i-diario-plus/lib/i-diario-plus/engine.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: Include. -# Include: app/models/**/*.rb -Rails/Validation: - Exclude: - - 'app/models/custom_rounding_table_value.rb' - - 'app/models/signup.rb' - - 'packages/portabilis/i-diario-plus/app/models/school_group.rb' - -# Offense count: 1 -Security/MarshalLoad: - Exclude: - - 'app/models/admin_synchronization.rb' - -# Offense count: 29 -Security/Open: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -Security/YAMLLoad: - Exclude: - - 'lib/sidekiq_monitor.rb' - -# Offense count: 8 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: separated, grouped -Style/AccessorGrouping: - Exclude: - - 'app/models/avaliation.rb' - - 'app/models/content_record.rb' - - 'app/services/exam_poster/student_only_with_recovery_fetcher.rb' - - 'app/services/exam_poster/teacher_scores_fetcher.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: always, conditionals -Style/AndOr: - Exclude: - - 'packages/portabilis/i-diario-plus/app/services/stock_material_quantity_rounder.rb' - - 'spec/support/helpers.rb' - -# Offense count: 38 -# Configuration parameters: AllowedChars. -# AllowedChars: © -Style/AsciiComments: - Enabled: false - -# Offense count: 16 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: percent_q, bare_percent -Style/BarePercentLiterals: - Exclude: - - 'app/models/student.rb' - - 'app/models/teacher.rb' - - 'app/models/user.rb' - - 'app/services/backup_file/users.rb' - - 'packages/portabilis/i-diario-plus/app/services/backup_file/groups.rb' - - 'packages/portabilis/i-diario-plus/app/services/backup_file/notifications.rb' - - 'packages/portabilis/i-diario-plus/app/services/publication_creator.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_calculation/contract_calculation.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_calculation/movement.rb' - - 'spec/support/helpers.rb' - -# Offense count: 264 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. -# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces -# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object -# FunctionalMethods: let, let!, subject, watch -# IgnoredMethods: lambda, proc, it -Style/BlockDelimiters: - Enabled: false - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: AllowOnConstant. -Style/CaseEquality: - Exclude: - - 'app/services/posting_date_checker.rb' - -# Offense count: 10 -# Cop supports --auto-correct. -Style/CaseLikeIf: - Exclude: - - 'app/helpers/bootstrap_flash_helper.rb' - - 'app/services/backup_file.rb' - - 'app/services/student_enrollment_classrooms_retriever.rb' - - 'app/services/student_enrollments_list.rb' - - 'app/services/student_enrollments_retriever.rb' - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/no_utilize.rb' - -# Offense count: 8 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: nested, compact -Style/ClassAndModuleChildren: - Exclude: - - 'app/controllers/dashboard/student_partial_scores_controller.rb' - - 'app/controllers/dashboard/teacher_next_avaliations_controller.rb' - - 'app/controllers/dashboard/teacher_pending_avaliations_controller.rb' - - 'app/controllers/dashboard/teacher_work_done_chart_controller.rb' - - 'app/controllers/users/passwords_controller.rb' - - 'app/controllers/users/sessions_controller.rb' - - 'app/controllers/users/unlocks_controller.rb' - - 'app/services/backup_file/base.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: is_a?, kind_of? -Style/ClassCheck: - Exclude: - - 'app/services/ieducar_synchronizers/teacher_unifications_synchronizer.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: IgnoredMethods. -# IgnoredMethods: ==, equal?, eql? -Style/ClassEqualityComparison: - Exclude: - - 'app/reports/base_report.rb' - -# Offense count: 9 -# Cop supports --auto-correct. -Style/ColonMethodCall: - Exclude: - - 'app/models/content_record.rb' - - 'app/models/lesson_plan.rb' - - 'spec/services/weeks_in_period_counter_spec.rb' - -# Offense count: 16 -# Cop supports --auto-correct. -# Configuration parameters: Keywords. -# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE -Style/CommentAnnotation: - Exclude: - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'app/services/test_setting_fetcher.rb' - - 'packages/portabilis/i-diario-plus/spec/support/turnip/contact_schools_steps.rb' - - 'packages/portabilis/i-diario-plus/spec/support/turnip/publications_steps.rb' - - 'packages/portabilis/i-diario-plus/spec/support/turnip/sign_up_steps.rb' - - 'spec/support/turnip/absence_justifications_steps.rb' - - 'spec/support/turnip/user_steps.rb' - -# Offense count: 24 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. -# SupportedStyles: assign_to_condition, assign_inside_condition -Style/ConditionalAssignment: - Exclude: - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'app/controllers/learning_objectives_and_skills_controller.rb' - - 'app/models/signup.rb' - - 'app/reports/attendance_record_report.rb' - - 'app/services/absence_count_service.rb' - - 'app/services/daily_frequency_attributes_normalizer.rb' - - 'app/services/students_in_recovery_fetcher.rb' - - 'app/services/teacher_work_done_chart_fetcher.rb' - - 'app/services/unities_classrooms_disciplines_by_teacher.rb' - - 'packages/portabilis/i-diario-plus/app/reports/consumption_prediction_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/stock_movements_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/totalizers/descriptive_exams.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_calculation/movement.rb' - - 'spec/factories/transfer_notes.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: allowed_in_returns, forbidden -Style/DoubleNegation: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/services/students_in_recovery_fetcher.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/EmptyCaseCondition: - Exclude: - - 'packages/portabilis/i-diario-plus/app/services/food_quantity_rounder.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: empty, nil, both -Style/EmptyElse: - Exclude: - - 'packages/portabilis/i-diario-plus/app/models/moved_material.rb' - -# Offense count: 5 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: compact, expanded -Style/EmptyMethod: - Exclude: - - 'app/services/navigation/base.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/commitments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contracts_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_kinds_controller.rb' - - 'packages/portabilis/i-diario-plus/app/services/authorization_item_status_updater.rb' - -# Offense count: 8 -# Cop supports --auto-correct. -Style/ExpandPathArguments: - Exclude: - - 'packages/portabilis/i-diario-plus/Rakefile' - - 'packages/portabilis/i-diario-plus/bin/rails' - - 'packages/portabilis/i-diario-plus/i-diario-plus.gemspec' - - 'spec/lib/tasks/entity_spec.rb' - - 'spec/spec_helper.rb' - - 'spec/spec_helper_lite.rb' - -# Offense count: 7 -# Cop supports --auto-correct. -Style/ExplicitBlockArgument: - Exclude: - - 'app/reports/base_report.rb' - - 'app/services/current_profile.rb' - - 'app/workers/student_dependencies_discarders/base_student_dependencies_discarder_worker.rb' - - 'packages/portabilis/i-diario-plus/app/services/authorization_item_status_updater.rb' - - 'packages/portabilis/i-diario-plus/app/services/notification_attributes.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: left_coerce, right_coerce, single_coerce, fdiv -Style/FloatDivision: - Exclude: - - 'app/models/worker_batch.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: format, sprintf, percent -Style/FormatString: - Exclude: - - 'app/serializers/student_in_recovery_serializer.rb' - -# Offense count: 6 -# Configuration parameters: AllowedVariables. -Style/GlobalVars: - Exclude: - - 'app/models/admin_synchronization.rb' - - 'node_modules/node-sass/src/libsass/extconf.rb' - -# Offense count: 96 -# Configuration parameters: MinBodyLength. -Style/GuardClause: - Enabled: false - -# Offense count: 24 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: braces, no_braces -Style/HashAsLastArrayItem: - Enabled: false - -# Offense count: 1 -# Cop supports --auto-correct. -Style/HashEachMethods: - Exclude: - - 'app/controllers/transfer_notes_controller.rb' - -# Offense count: 201 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. -# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys -Style/HashSyntax: - Enabled: false - -# Offense count: 6 -Style/IdenticalConditionalBranches: - Exclude: - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/stock_movements_report_controller.rb' - - 'packages/portabilis/i-diario-plus/app/forms/delivery_prediction_report_form.rb' - -# Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: AllowIfModifier. -Style/IfInsideElse: - Exclude: - - 'app/services/student_enrollments_list.rb' - - 'packages/portabilis/i-diario-plus/app/models/authorization_service_request.rb' - - 'packages/portabilis/i-diario-plus/app/services/parent_dashboard_builder.rb' - -# Offense count: 138 -# Cop supports --auto-correct. -Style/IfUnlessModifier: - Enabled: false - -# Offense count: 10 -# Cop supports --auto-correct. -# Configuration parameters: InverseMethods, InverseBlocks. -Style/InverseMethods: - Exclude: - - 'app/controllers/complementary_exams_controller.rb' - - 'app/controllers/final_recovery_diary_records_controller.rb' - - 'app/models/avaliation_recovery_diary_record.rb' - - 'app/reports/attendance_record_report.rb' - - 'packages/portabilis/i-diario-plus/app/forms/inventory_adjustment.rb' - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request.rb' - - 'packages/portabilis/i-diario-plus/app/services/students_from_api_converter.rb' - -# Offense count: 269 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: line_count_dependent, lambda, literal -Style/Lambda: - Enabled: false - -# Offense count: 4 -# Cop supports --auto-correct. -Style/LineEndConcatenation: - Exclude: - - 'app/models/lesson_plan.rb' - - 'spec/services/entity_creator_spec.rb' - -# Offense count: 12 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline -Style/MethodDefParentheses: - Exclude: - - 'app/helpers/dashboard_helper.rb' - - 'app/helpers/user_helper.rb' - - 'app/models/content_record.rb' - - 'app/models/lesson_plan.rb' - - 'packages/portabilis/i-diario-plus/app/forms/consumption_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/authorization_service_request_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/material_request_authorization_helper.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/service_request_helper.rb' - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - - 'packages/portabilis/i-diario-plus/app/models/menu_menu_type_weekday.rb' - -# Offense count: 1 -Style/MissingRespondToMissing: - Exclude: - - 'spec/support/context.rb' - -# Offense count: 1 -Style/MixinUsage: - Exclude: - - 'spec/spec_helper_form.rb' - -# Offense count: 4 -Style/MultilineBlockChain: - Exclude: - - 'app/helpers/conceptual_exam_helper.rb' - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -Style/MultilineIfModifier: - Exclude: - - 'app/controllers/registrations_controller.rb' - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/totalizers/ieducar_api_exam_postings.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/MultilineTernaryOperator: - Exclude: - - 'packages/portabilis/i-diario-plus/app/services/publication_creator.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/MultilineWhenThen: - Exclude: - - 'app/decorators/maintenance_adjustment_decorator.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/MultipleComparison: - Exclude: - - 'app/decorators/audit_decorator.rb' - -# Offense count: 17 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: literals, strict -Style/MutableConstant: - Exclude: - - 'app/controllers/discipline_lesson_plan_report_controller.rb' - - 'app/helpers/bootstrap_flash_helper.rb' - - 'app/helpers/dashboard_helper.rb' - - 'app/models/label.rb' - - 'app/services/backup_file.rb' - - 'app/services/current_profile.rb' - - 'app/services/list_grades_by_step_builder.rb' - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/no_utilize.rb' - - 'packages/portabilis/i-diario-plus/lib/i-diario-plus/version.rb' - -# Offense count: 19 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: both, prefix, postfix -Style/NegatedIf: - Exclude: - - 'app/controllers/avaliation_recovery_diary_records_controller.rb' - - 'app/controllers/daily_notes_controller.rb' - - 'app/forms/avaliation_multiple_creator_classroom_form.rb' - - 'app/models/avaliation_recovery_diary_record.rb' - - 'app/models/daily_frequency_student.rb' - - 'app/models/daily_note_student.rb' - - 'app/models/ieducar_api_exam_posting.rb' - - 'app/models/test_setting.rb' - - 'app/models/user.rb' - - 'app/services/maximum_score_fetcher.rb' - - 'app/services/minimum_score_fetcher.rb' - - 'app/services/student_enrollments_list.rb' - - 'app/workers/ieducar/send_post_worker.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/models/user_decorator.rb' - - 'spec/support/matchers/validate_date_of_matcher.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/NegatedWhile: - Exclude: - - 'app/services/school_day_checker.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AllowedMethods. -# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with -Style/NestedParenthesizedCalls: - Exclude: - - 'app/controllers/users_controller.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -Style/NestedTernaryOperator: - Exclude: - - 'app/models/avaliation.rb' - - 'app/reports/exam_record_report.rb' - -# Offense count: 12 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, MinBodyLength. -# SupportedStyles: skip_modifier_ifs, always -Style/Next: - Exclude: - - 'app/controllers/avaliation_recovery_diary_records_controller.rb' - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'app/controllers/daily_notes_controller.rb' - - 'app/models/role.rb' - - 'app/reports/exam_record_report.rb' - - 'app/services/student_enrollments_list.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contracts_controller.rb' - - 'packages/portabilis/i-diario-plus/app/forms/consumption_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/delivery_prediction_report_form.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: IncludeSemanticChanges. -Style/NonNilCheck: - Exclude: - - 'packages/portabilis/i-diario-plus/app/forms/delivery_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance.rb' - -# Offense count: 3 -# Cop supports --auto-correct. -Style/Not: - Exclude: - - 'app/services/school_day_checker.rb' - - 'spec/support/helpers.rb' - -# Offense count: 9 -# Cop supports --auto-correct. -# Configuration parameters: Strict. -Style/NumericLiterals: - MinDigits: 9 - -# Offense count: 13 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, IgnoredMethods. -# SupportedStyles: predicate, comparison -Style/NumericPredicate: - Exclude: - - 'app/controllers/learning_objectives_and_skills_controller.rb' - - 'app/forms/exam_record_report_form.rb' - - 'app/services/student_average_calculator.rb' - - 'packages/portabilis/i-diario-plus/app/forms/consumption_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/delivery_prediction_report_form.rb' - - 'packages/portabilis/i-diario-plus/app/forms/inventory_adjustment.rb' - - 'packages/portabilis/i-diario-plus/app/models/contract.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_entrance_item.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_exit_item.rb' - - 'packages/portabilis/i-diario-plus/app/reports/consumption_prediction_report.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_report.rb' - -# Offense count: 9 -# Configuration parameters: AllowedMethods. -# AllowedMethods: respond_to_missing? -Style/OptionalBooleanParameter: - Exclude: - - 'app/models/conceptual_exam_value.rb' - - 'app/models/ieducar_api_configuration.rb' - - 'app/services/ieducar_api/base.rb' - - 'app/services/list_grades_by_step_builder.rb' - - 'app/services/student_enrollments_list.rb' - - 'app/workers/ieducar_synchronizer_worker.rb' - - 'packages/portabilis/i-diario-plus/app/helpers/publications_helper.rb' - -# Offense count: 14 -# Cop supports --auto-correct. -Style/OrAssignment: - Exclude: - - 'app/controllers/final_recovery_diary_records_controller.rb' - - 'app/controllers/lessons_boards_controller.rb' - - 'app/controllers/school_calendars_controller.rb' - - 'app/controllers/teaching_plans_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/foods_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_entrances_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_exits_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_request_authorizations_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_requests_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/materials_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/menu_executions_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/menus_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/moved_materials_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/suppliers_controller.rb' - -# Offense count: 5 -# Cop supports --auto-correct. -# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. -Style/ParenthesesAroundCondition: - Exclude: - - 'app/models/avaliation.rb' - - 'app/services/avaliations_test_setting_updater.rb' - - 'app/services/entity_creator.rb' - - 'app/services/entity_status_manager.rb' - - 'app/services/students_in_recovery_fetcher.rb' - -# Offense count: 7 -# Cop supports --auto-correct. -# Configuration parameters: PreferredDelimiters. -Style/PercentLiteralDelimiters: - Exclude: - - 'app/models/label.rb' - - 'app/models/school_calendar_event.rb' - - 'app/models/school_calendar_event_batch.rb' - - 'app/models/signup.rb' - - 'app/uploaders/entity_logo_uploader.rb' - - 'app/uploaders/user_profile_picture_uploader.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request_authorization.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: lower_case_q, upper_case_q -Style/PercentQLiterals: - Exclude: - - 'app/models/user.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: short, verbose -Style/PreferredHashMethods: - Exclude: - - 'spec/support/helpers.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, AllowedCompactTypes. -# SupportedStyles: compact, exploded -Style/RaiseArgs: - Exclude: - - 'app/models/entity.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/services/ieducar_api/students_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/services/unities_on_current_year.rb' - -# Offense count: 15 -# Cop supports --auto-correct. -Style/RedundantAssignment: - Exclude: - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'app/controllers/daily_notes_controller.rb' - - 'app/controllers/knowledge_area_lesson_plans_controller.rb' - - 'app/decorators/observation_diary_record_decorator.rb' - - 'app/forms/exam_record_report_form.rb' - - 'app/models/avaliation_exemption.rb' - - 'app/reports/exam_record_report.rb' - - 'app/services/copy_discipline_teaching_plan_service.rb' - - 'app/services/student_enrollments_list.rb' - - 'app/services/teacher_regent_fetcher.rb' - - 'packages/portabilis/i-diario-plus/app/reports/track_launch_shipping_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_material_quantity_rounder.rb' - -# Offense count: 14 -# Cop supports --auto-correct. -Style/RedundantBegin: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/controllers/schools_controller.rb' - - 'app/reports/base_report_old.rb' - - 'app/services/aws_s3_handler_service.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contact_schools_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_entrances_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_exits_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_request_authorizations_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_requests_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/student_newsletters_controller.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/contact_school_notifier.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/RedundantCondition: - Exclude: - - 'app/models/exam_rule.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/RedundantFileExtensionInRequire: - Exclude: - - 'packages/portabilis/i-diario-plus/spec/services/stock_material_quantity_rounder_spec.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/RedundantFreeze: - Exclude: - - 'app/reports/base_report.rb' - -# Offense count: 42 -# Cop supports --auto-correct. -Style/RedundantInterpolation: - Enabled: false - -# Offense count: 6 -# Cop supports --auto-correct. -Style/RedundantParentheses: - Exclude: - - 'app/reports/knowledge_area_teaching_plan_pdf.rb' - - 'app/services/uploads_storage.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_entrances_controller.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_supplier_pdf.rb' - - 'packages/portabilis/i-diario-plus/app/reports/menu_report.rb' - -# Offense count: 15 -# Cop supports --auto-correct. -Style/RedundantPercentQ: - Exclude: - - 'app/models/student.rb' - - 'app/models/teacher.rb' - - 'app/models/user.rb' - - 'app/services/backup_file/users.rb' - - 'packages/portabilis/i-diario-plus/app/services/backup_file/groups.rb' - - 'packages/portabilis/i-diario-plus/app/services/backup_file/notifications.rb' - - 'packages/portabilis/i-diario-plus/app/services/publication_creator.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_calculation/contract_calculation.rb' - - 'packages/portabilis/i-diario-plus/app/services/stock_calculation/movement.rb' - - 'spec/support/helpers.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -Style/RedundantRegexpCharacterClass: - Exclude: - - 'app/controllers/descriptive_exams_controller.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -Style/RedundantRegexpEscape: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/controllers/descriptive_exams_controller.rb' - - 'app/controllers/users/sessions_controller.rb' - -# Offense count: 18 -# Cop supports --auto-correct. -# Configuration parameters: AllowMultipleReturnValues. -Style/RedundantReturn: - Exclude: - - 'app/controllers/avaliations_controller.rb' - - 'app/decorators/bncc_objectives_and_skills_decorator.rb' - - 'app/forms/discipline_content_record_cloner_form.rb' - - 'app/forms/discipline_lesson_plan_cloner_form.rb' - - 'app/forms/knowledge_area_content_record_cloner_form.rb' - - 'app/forms/knowledge_area_lesson_plan_cloner_form.rb' - - 'app/services/posting_date_checker.rb' - - 'app/services/school_day_checker.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/contact_schools_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_request_authorizations_controller.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/controllers/dashboard_controller_decorator.rb' - - 'packages/portabilis/i-diario-plus/app/forms/stock_movement.rb' - - 'packages/portabilis/i-diario-plus/app/services/contact_school_notifier.rb' - - 'packages/portabilis/i-diario-plus/app/services/menu_cloner.rb' - -# Offense count: 106 -# Cop supports --auto-correct. -Style/RedundantSelf: - Enabled: false - -# Offense count: 5 -# Cop supports --auto-correct. -Style/RedundantSelfAssignment: - Exclude: - - 'app/controllers/ieducar_api_exam_postings_controller.rb' - - 'lib/audit.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/services/synchronization_configs_decorator.rb' - -# Offense count: 29 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, AllowInnerSlashes. -# SupportedStyles: slashes, percent_r, mixed -Style/RegexpLiteral: - Exclude: - - 'app/models/ieducar_api_configuration.rb' - - 'packages/portabilis/i-diario-plus/app/models/publication.rb' - - 'spec/services/navigation/menu_builder_spec.rb' - - 'spec/support/decorator_example_group.rb' - -# Offense count: 33 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: implicit, explicit -Style/RescueStandardError: - Enabled: false - -# Offense count: 11 -# Cop supports --auto-correct. -# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. -# AllowedMethods: present?, blank?, presence, try, try! -Style/SafeNavigation: - Exclude: - - 'app/controllers/api/v2/daily_frequencies_controller.rb' - - 'app/controllers/avaliation_recovery_diary_records_controller.rb' - - 'app/controllers/daily_notes_controller.rb' - - 'app/models/avaliation.rb' - - 'app/services/current_school_year_fetcher.rb' - - 'lib/tasks/delete_frequencies_from_inactive_students.rake' - - 'packages/portabilis/i-diario-plus/app/controllers/contracts_controller.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/inventory_adjustments_controller.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/controllers/application_controller_decorator.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -Style/SelfAssignment: - Exclude: - - 'app/controllers/contents_controller.rb' - - 'app/services/score_rounder.rb' - - 'packages/portabilis/i-diario-plus/app/reports/stock_position_report.rb' - - 'packages/portabilis/i-diario-plus/app/services/menu_execution_material_exit_builder.rb' - -# Offense count: 8 -# Cop supports --auto-correct. -Style/SingleArgumentDig: - Exclude: - - 'app/controllers/current_role_controller.rb' - - 'app/controllers/pedagogical_trackings_controller.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: AllowModifier. -Style/SoleNestedConditional: - Exclude: - - 'app/inputs/select2_period_input.rb' - - 'app/models/avaliation_exemption.rb' - - 'app/policies/test_setting_update_policy.rb' - - 'app/services/student_average_calculator.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: use_perl_names, use_english_names -Style/SpecialGlobalVars: - Exclude: - - 'packages/portabilis/i-diario-plus/i-diario-plus.gemspec' - -# Offense count: 8 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: require_parentheses, require_no_parentheses -Style/StabbyLambdaParentheses: - Exclude: - - 'app/models/observation_diary_record.rb' - - 'app/models/observation_diary_record_note.rb' - - 'app/models/unity.rb' - -# Offense count: 42 -# Cop supports --auto-correct. -Style/StringConcatenation: - Enabled: false - -# Offense count: 1727 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. -# SupportedStyles: single_quotes, double_quotes -Style/StringLiterals: - Enabled: false - -# Offense count: 35 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle. -# SupportedStyles: single_quotes, double_quotes -Style/StringLiteralsInInterpolation: - Enabled: false - -# Offense count: 13 -# Cop supports --auto-correct. -# Configuration parameters: IgnoredMethods. -# IgnoredMethods: respond_to, define_method -Style/SymbolProc: - Exclude: - - 'app/controllers/conceptual_exams_controller.rb' - - 'app/controllers/knowledge_areas_controller.rb' - - 'app/models/unity.rb' - - 'app/services/exam_poster/base.rb' - - 'app/services/student_enrollments_list.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/material_request_items_controller.rb' - - 'packages/portabilis/i-diario-plus/app/forms/inventory_adjustment.rb' - - 'packages/portabilis/i-diario-plus/app/models/food.rb' - - 'packages/portabilis/i-diario-plus/app/models/material_request.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, AllowSafeAssignment. -# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex -Style/TernaryParentheses: - Exclude: - - 'packages/portabilis/i-diario-plus/app/controllers/material_entrances_controller.rb' - - 'packages/portabilis/i-diario-plus/app/reports/material_entrance_supplier_pdf.rb' - -# Offense count: 21 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInArguments: - Exclude: - - 'app/controllers/descriptive_exams_controller.rb' - - 'app/reports/absence_justification_report.rb' - - 'app/services/absence_adjustments_service.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/publications_controller.rb' - - 'packages/portabilis/i-diario-plus/app/decorators/controllers/general_configurations_controller_decorator.rb' - - 'spec/controllers/observation_diary_record_controller_spec.rb' - - 'spec/factories/classrooms.rb' - - 'spec/helpers/daily_frequency_helper_spec.rb' - - 'spec/models/absence_justifications_student_spec.rb' - - 'spec/reports/exam_record_report_spec.rb' - - 'spec/services/absence_adjustments_service_spec.rb' - - 'spec/services/delete_dispensed_exams_and_frequencies_service_spec.rb' - - 'spec/services/school_calendar_event_days_spec.rb' - -# Offense count: 4 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInArrayLiteral: - Exclude: - - 'app/models/profile.rb' - - 'app/services/absence_justified_on_date.rb' - - 'packages/portabilis/i-diario-plus/app/controllers/notifications_controller.rb' - - 'packages/portabilis/i-diario-plus/app/reports/delivery_prediction_report.rb' - -# Offense count: 6 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInHashLiteral: - Exclude: - - 'app/controllers/absence_justifications_controller.rb' - - 'app/controllers/daily_frequencies_in_batchs_controller.rb' - - 'packages/portabilis/i-diario-plus/app/services/administrative_tools_integrator/messages.rb' - - 'spec/services/entity_creator_spec.rb' - -# Offense count: 2 -# Cop supports --auto-correct. -Style/UnlessElse: - Exclude: - - 'packages/portabilis/i-diario-plus/app/services/accompaniments/totalizers/descriptive_exams.rb' - -# Offense count: 1 -# Cop supports --auto-correct. -Style/WhileUntilModifier: - Exclude: - - 'app/services/school_day_checker.rb' - -# Offense count: 15 -# Cop supports --auto-correct. -# Configuration parameters: WordRegex. -# SupportedStyles: percent, brackets -Style/WordArray: - EnforcedStyle: percent - MinSize: 36 diff --git a/.sourcelevel.yml b/.sourcelevel.yml deleted file mode 100644 index 44cfda293..000000000 --- a/.sourcelevel.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This configuration was used SourceLevel to review the portabilis/novo-educacao repository -# on 40d60a9262c41c3ca478f58c50dd7deac03b62df. -# You can make this the default configuration for future reviews by moving this -# file to your repository as `.sourcelevel.yml` and pushing it to GitHub, and tweak -# it as you wish - To know more on how to change this file to better review your -# repository you can go to https://docs.sourcelevel.io/configuration and see the configuration -# details. ---- -engines: - reek: - enabled: true - fixme: - enabled: true - eslint: - enabled: false - csslint: - enabled: false - rubocop: - enabled: true - brakeman: - enabled: true - duplication: - config: - languages: - - ruby - enabled: true - remark-lint: - enabled: true -exclude_paths: -- bin -- config -- db -- public -- script -- spec -- vendor -- **/*.js -- **/*.css diff --git a/Procfile b/Procfile deleted file mode 100644 index a26129fc0..000000000 --- a/Procfile +++ /dev/null @@ -1,2 +0,0 @@ -web: bundle exec rails server -worker: bundle exec sidekiq -v diff --git a/README.md b/README.md index 7730cc9c5..56b2645ce 100644 --- a/README.md +++ b/README.md @@ -320,28 +320,3 @@ RAILS_ENV=test bundle exec rake db:migrate # (Docker) docker-compose exec app bin/rspec spec bin/rspec spec ``` - -### Upgrades - -### Upgrade para a versão 1.1.0 - -Nessa atualização a sincronização entre i-Educar e i-Diário foi completamente reestruturada e com isso o i-Diário - passa a ter dependência da versão **2.1.18** do i-Educar. - -Para o upgrade é necessário atualizar o i-Diário para a versão - [1.1.0](https://github.com/portabilis/i-diario/releases/tag/1.1.0). - -* Executar as migrations: - -```bash -# (Docker) docker-compose exec app bundle exec rake db:migrate -bundle exec rake db:migrate -``` - -* Executar a rake task que irá fazer a atualização do banco de dados e executar a sincronização completa em todas - as entidades: - -```bash -# (Docker) docker-compose exec app bundle exec rake upgrade:versions:1_1_0 -bundle exec rake upgrade:versions:1_1_0 -``` diff --git a/app/assets/html/404.html.erb b/app/assets/html/404.html.erb index e0add9459..d5561dcc0 100644 --- a/app/assets/html/404.html.erb +++ b/app/assets/html/404.html.erb @@ -1,4 +1,5 @@ - + +
- ++ |
| <%= f.input :by_name, label: false, placeholder: "Filtrar nome", input_html: { value: @search_by_name } %> | -<%= f.input :by_cpf, label: false, placeholder: "Filtrar CPF", input_html: { value: @search_by_cpf } %> | -<%= f.input :email, label: false, placeholder: "Filtrar e-mail", input_html: { value: @search_email } %> | -<%= f.input :login, label: false, placeholder: "Filtrar nome de usuário", input_html: { value: @search_login } %> | -<%= f.input :status, as: :select, label: false, prompt: "Filtrar status", collection: UserStatus, input_html: { value: @search_status }, selected: @search_status %> | -+ + | <%= f.input :by_name, label: false, placeholder: "Filtrar nome", input_html: { value: @search_by_name } %> | +<%= f.input :by_cpf, label: false, placeholder: "Filtrar CPF", input_html: { value: @search_by_cpf } %> | +<%= f.input :email, label: false, placeholder: "Filtrar e-mail", input_html: { value: @search_email } %> | +<%= f.input :login, label: false, placeholder: "Filtrar nome de usuário", input_html: { value: @search_login } %> | +<%= f.input :status, as: :select, label: false, prompt: "Filtrar status", collection: UserStatus, input_html: { value: @search_status }, selected: @search_status %> | +|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ | - | <%= User.human_attribute_name :name %> | -<%= User.human_attribute_name :cpf %> | -<%= User.human_attribute_name :email %> | -<%= User.human_attribute_name :login %> | -<%= User.human_attribute_name :status %> | -+ | <%= User.human_attribute_name :name %> | +<%= User.human_attribute_name :cpf %> | +<%= User.human_attribute_name :email %> | +<%= User.human_attribute_name :login %> | +<%= User.human_attribute_name :status %> | +