Advertisement
YarikHrom

Untitled

May 6th, 2022
1,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.25 KB | None | 0 0
  1. Offenses:
  2.  
  3. Gemfile:71:3: C: [Correctable] Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem rails_12factor should appear before scout_apm.
  4.   gem 'rails_12factor'
  5.   ^^^^^^^^^^^^^^^^^^^^
  6. app/controllers/api/v1/batch_general_informations_controller.rb:6:7: C: Metrics/AbcSize: Assignment Branch Condition size for create is too high. [<1, 18, 3> 18.28/17]
  7.       def create ...
  8.       ^^^^^^^^^^
  9. app/controllers/api/v1/batch_general_informations_controller.rb:6:7: C: Metrics/MethodLength: Method has too many lines. [13/10]
  10.       def create ...
  11.       ^^^^^^^^^^
  12. app/controllers/api/v1/batch_skills_controller.rb:8:7: C: Metrics/AbcSize: Assignment Branch Condition size for create is too high. [<1, 18, 3> 18.28/17]
  13.       def create ...
  14.       ^^^^^^^^^^
  15. app/controllers/api/v1/batch_skills_controller.rb:8:7: C: Metrics/MethodLength: Method has too many lines. [16/10]
  16.       def create ...
  17.       ^^^^^^^^^^
  18. app/controllers/api/v1/batch_studies_controller.rb:8:7: C: Metrics/AbcSize: Assignment Branch Condition size for create is too high. [<1, 17, 3> 17.29/17]
  19.       def create ...
  20.       ^^^^^^^^^^
  21. app/controllers/api/v1/batch_studies_controller.rb:8:7: C: Metrics/MethodLength: Method has too many lines. [14/10]
  22.       def create ...
  23.       ^^^^^^^^^^
  24. app/controllers/api/v1/employees_controller.rb:10:7: C: Metrics/MethodLength: Method has too many lines. [13/10]
  25.       def index ...
  26.       ^^^^^^^^^
  27. app/controllers/application_controller.rb:8:51: C: Naming/VariableNumber: Use normalcase for symbol numbers.
  28.   rescue_from ActiveRecord::RecordNotFound, with: :render_404
  29.                                                   ^^^^^^^^^^^
  30. app/controllers/application_controller.rb:11:7: C: Naming/VariableNumber: Use normalcase for method name numbers.
  31.   def render_404
  32.       ^^^^^^^^^^
  33. app/controllers/web/employees/skills_controller.rb:10:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
  34.       def index ...
  35.       ^^^^^^^^^
  36. app/controllers/web/employees/skills_controller.rb:25:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
  37.       def edit ...
  38.       ^^^^^^^^
  39. app/controllers/web/employees/studies_controller.rb:9:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
  40.       def index ...
  41.       ^^^^^^^^^
  42. app/controllers/web/employees/studies_controller.rb:24:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
  43.       def edit ...
  44.       ^^^^^^^^
  45. app/controllers/web/employees_controller.rb:12:5: C: Metrics/MethodLength: Method has too many lines. [11/10]
  46.     def index ...
  47.     ^^^^^^^^^
  48. app/controllers/web/employees_controller.rb:77:5: W: [Correctable] Lint/RedundantCopDisableDirective: Unnecessary disabling of Metrics/AbcSize.
  49.     # rubocop:disable Metrics/AbcSize
  50.     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. app/helpers/web/employees/cv_helper.rb:26:11: C: Style/HashLikeCase: Consider replacing case-when with a hash lookup.
  52.           case hard_skill.level ...
  53.           ^^^^^^^^^^^^^^^^^^^^^
  54. app/models/employee.rb:4:1: C: [Correctable] Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.
  55. app/models/publication.rb:7:31: W: [Correctable] Lint/UriRegexp: URI.regexp(%w[http https]) is obsolete and should not be used. Instead, use URI::DEFAULT_PARSER.make_regexp(%w[http https]).
  56.   validates :url, format: URI.regexp(%w[http https])
  57.                               ^^^^^^
  58. app/presenters/hard_skill_presenter.rb:7:3: W: [Correctable] Lint/RedundantCopDisableDirective: Unnecessary disabling of Metrics/AbcSize.
  59.   # rubocop:disable Metrics/AbcSize
  60.   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  61. app/serializers/certificate_serializer.rb:4:24: C: [Correctable] Layout/LeadingCommentSpace: Missing space after #.
  62.   attributes :id, :name#, :file
  63.                        ^^^^^^^^
  64. app/serializers/certificate_serializer.rb:4:24: C: [Correctable] Layout/SpaceBeforeComment: Put a space before an end-of-line comment.
  65.   attributes :id, :name#, :file
  66.                        ^^^^^^^^
  67. app/services/employees/sort_service.rb:10:7: W: Lint/Debugger: Remove debugger entry point binding.pry.
  68.       binding.pry
  69.       ^^^^^^^^^^^
  70. app/services/employees/sort_service.rb:23:7: W: Lint/Debugger: Remove debugger entry point binding.pry.
  71.       binding.pry
  72.       ^^^^^^^^^^^
  73. app/services/employees/sort_service.rb:49:121: C: Layout/LineLength: Line is too long. [125/120]
  74.       default_scope.where(first_name: value).and(where(last_name: query)).and(where(city: query)).and(where(position: query))
  75.                                                                                                                         ^^^^^
  76. app/services/employees/sort_service.rb:67:7: W: Lint/Debugger: Remove debugger entry point binding.pry.
  77.       binding.pry
  78.       ^^^^^^^^^^^
  79. app/services/general_information_batch_processor.rb:11:3: C: Metrics/AbcSize: Assignment Branch Condition size for call is too high. [<8, 66, 14> 67.94/17]
  80.   def call ...
  81.   ^^^^^^^^
  82. app/services/general_information_batch_processor.rb:11:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for call is too high. [14/7]
  83.   def call ...
  84.   ^^^^^^^^
  85. app/services/general_information_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [39/10]
  86.   def call ...
  87.   ^^^^^^^^
  88. app/services/general_information_batch_processor.rb:11:3: C: Metrics/PerceivedComplexity: Perceived complexity for call is too high. [14/8]
  89.   def call ...
  90.   ^^^^^^^^
  91. app/services/general_information_batch_processor.rb:12:5: C: Metrics/BlockLength: Block has too many lines. [33/25]
  92.     ActiveRecord::Base.transaction do ...
  93.     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  94. app/services/general_information_batch_processor.rb:13:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
  95. app/services/general_information_batch_processor.rb:14:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
  96. app/services/general_information_batch_processor.rb:25:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
  97. app/services/publication_batch_processor.rb:11:3: C: Metrics/AbcSize: Assignment Branch Condition size for call is too high. [<4, 20, 5> 21/17]
  98.   def call ...
  99.   ^^^^^^^^
  100. app/services/publication_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [20/10]
  101.   def call ...
  102.   ^^^^^^^^
  103. app/services/skill_batch_processor.rb:11:3: C: Metrics/AbcSize: Assignment Branch Condition size for call is too high. [<14, 90, 19> 93.04/17]
  104.   def call ...
  105.   ^^^^^^^^
  106. app/services/skill_batch_processor.rb:11:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for call is too high. [20/7]
  107.   def call ...
  108.   ^^^^^^^^
  109. app/services/skill_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [72/10]
  110.   def call ...
  111.   ^^^^^^^^
  112. app/services/skill_batch_processor.rb:11:3: C: Metrics/PerceivedComplexity: Perceived complexity for call is too high. [17/8]
  113.   def call ...
  114.   ^^^^^^^^
  115. app/services/skill_batch_processor.rb:12:5: C: Metrics/BlockLength: Block has too many lines. [66/25]
  116.     ActiveRecord::Base.transaction do ...
  117.     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  118. app/services/study_batch_processor.rb:11:3: C: Metrics/AbcSize: Assignment Branch Condition size for call is too high. [<9, 50, 13> 52.44/17]
  119.   def call ...
  120.   ^^^^^^^^
  121. app/services/study_batch_processor.rb:11:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for call is too high. [14/7]
  122.   def call ...
  123.   ^^^^^^^^
  124. app/services/study_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [40/10]
  125.   def call ...
  126.   ^^^^^^^^
  127. app/services/study_batch_processor.rb:11:3: C: Metrics/PerceivedComplexity: Perceived complexity for call is too high. [12/8]
  128.   def call ...
  129.   ^^^^^^^^
  130. app/services/study_batch_processor.rb:12:5: C: Metrics/BlockLength: Block has too many lines. [34/25]
  131.     ActiveRecord::Base.transaction do ...
  132.     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  133. app/services/work_experience_batch_processor.rb:11:3: C: Metrics/AbcSize: Assignment Branch Condition size for call is too high. [<5, 24, 6> 25.24/17]
  134.   def call ...
  135.   ^^^^^^^^
  136. app/services/work_experience_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [21/10]
  137.   def call ...
  138.   ^^^^^^^^
  139. config/environments/development.rb:9:19: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
  140.  config.hosts << "team.local"
  141.                  ^^^^^^^^^^^^
  142. config/environments/production.rb:31:50: C: [Correctable] Style/GlobalStdStream: Use $stdout instead of STDOUT.
  143.    logger           = ActiveSupport::Logger.new(STDOUT)
  144.                                                 ^^^^^^
  145. config/puma.rb:9:25: C: [Correctable] Style/RedundantFetchBlock: Use fetch('RAILS_MAX_THREADS', 5) instead of fetch('RAILS_MAX_THREADS') { 5 }.
  146. max_threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
  147.                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  148. config/puma.rb:15:17: C: [Correctable] Style/RedundantFetchBlock: Use fetch('PORT', 3000) instead of fetch('PORT') { 3000 }.
  149. port        ENV.fetch('PORT') { 3000 }
  150.                ^^^^^^^^^^^^^^^^^^^^^^
  151. config/puma.rb:19:17: C: [Correctable] Style/RedundantFetchBlock: Use fetch('RAILS_ENV', 'development') instead of fetch('RAILS_ENV') { 'development' }.
  152. environment ENV.fetch('RAILS_ENV') { 'development' }
  153.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  154. config/puma.rb:22:13: C: [Correctable] Style/RedundantFetchBlock: Use fetch('PIDFILE', 'tmp/pids/server.pid') instead of fetch('PIDFILE') { 'tmp/pids/server.pid' }.
  155. pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' }
  156.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  157. spec/controllers/web/employees/cvs_controller_spec.rb:78:12: C: [Correctable] Layout/SpaceAroundMethodCallOperator: Avoid using spaces around a method call operator.
  158.        end .to change { Cv.count }.by(1)
  159.           ^
  160. spec/factories/taggings.rb:6:7: C: RSpec/MissingExampleGroupArgument: The first argument to context should not be empty.
  161.      context { 'soft_skills' }
  162.      ^^^^^^^^^^^^^^^^^^^^^^^^^
  163. spec/factories/taggings.rb:10:7: C: RSpec/MissingExampleGroupArgument: The first argument to context should not be empty.
  164.      context { 'interests' }
  165.      ^^^^^^^^^^^^^^^^^^^^^^^
  166.  
  167. 187 files inspected, 57 offenses detected, 17 offenses auto-correctable
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement