Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Offenses:
- 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.
- gem 'rails_12factor'
- ^^^^^^^^^^^^^^^^^^^^
- 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]
- def create ...
- ^^^^^^^^^^
- app/controllers/api/v1/batch_general_informations_controller.rb:6:7: C: Metrics/MethodLength: Method has too many lines. [13/10]
- def create ...
- ^^^^^^^^^^
- 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]
- def create ...
- ^^^^^^^^^^
- app/controllers/api/v1/batch_skills_controller.rb:8:7: C: Metrics/MethodLength: Method has too many lines. [16/10]
- def create ...
- ^^^^^^^^^^
- 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]
- def create ...
- ^^^^^^^^^^
- app/controllers/api/v1/batch_studies_controller.rb:8:7: C: Metrics/MethodLength: Method has too many lines. [14/10]
- def create ...
- ^^^^^^^^^^
- app/controllers/api/v1/employees_controller.rb:10:7: C: Metrics/MethodLength: Method has too many lines. [13/10]
- def index ...
- ^^^^^^^^^
- app/controllers/application_controller.rb:8:51: C: Naming/VariableNumber: Use normalcase for symbol numbers.
- rescue_from ActiveRecord::RecordNotFound, with: :render_404
- ^^^^^^^^^^^
- app/controllers/application_controller.rb:11:7: C: Naming/VariableNumber: Use normalcase for method name numbers.
- def render_404
- ^^^^^^^^^^
- app/controllers/web/employees/skills_controller.rb:10:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
- def index ...
- ^^^^^^^^^
- app/controllers/web/employees/skills_controller.rb:25:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
- def edit ...
- ^^^^^^^^
- app/controllers/web/employees/studies_controller.rb:9:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
- def index ...
- ^^^^^^^^^
- app/controllers/web/employees/studies_controller.rb:24:7: C: Metrics/MethodLength: Method has too many lines. [11/10]
- def edit ...
- ^^^^^^^^
- app/controllers/web/employees_controller.rb:12:5: C: Metrics/MethodLength: Method has too many lines. [11/10]
- def index ...
- ^^^^^^^^^
- app/controllers/web/employees_controller.rb:77:5: W: [Correctable] Lint/RedundantCopDisableDirective: Unnecessary disabling of Metrics/AbcSize.
- # rubocop:disable Metrics/AbcSize
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- app/helpers/web/employees/cv_helper.rb:26:11: C: Style/HashLikeCase: Consider replacing case-when with a hash lookup.
- case hard_skill.level ...
- ^^^^^^^^^^^^^^^^^^^^^
- app/models/employee.rb:4:1: C: [Correctable] Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body beginning.
- 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]).
- validates :url, format: URI.regexp(%w[http https])
- ^^^^^^
- app/presenters/hard_skill_presenter.rb:7:3: W: [Correctable] Lint/RedundantCopDisableDirective: Unnecessary disabling of Metrics/AbcSize.
- # rubocop:disable Metrics/AbcSize
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- app/serializers/certificate_serializer.rb:4:24: C: [Correctable] Layout/LeadingCommentSpace: Missing space after #.
- attributes :id, :name#, :file
- ^^^^^^^^
- app/serializers/certificate_serializer.rb:4:24: C: [Correctable] Layout/SpaceBeforeComment: Put a space before an end-of-line comment.
- attributes :id, :name#, :file
- ^^^^^^^^
- app/services/employees/sort_service.rb:10:7: W: Lint/Debugger: Remove debugger entry point binding.pry.
- binding.pry
- ^^^^^^^^^^^
- app/services/employees/sort_service.rb:23:7: W: Lint/Debugger: Remove debugger entry point binding.pry.
- binding.pry
- ^^^^^^^^^^^
- app/services/employees/sort_service.rb:49:121: C: Layout/LineLength: Line is too long. [125/120]
- default_scope.where(first_name: value).and(where(last_name: query)).and(where(city: query)).and(where(position: query))
- ^^^^^
- app/services/employees/sort_service.rb:67:7: W: Lint/Debugger: Remove debugger entry point binding.pry.
- binding.pry
- ^^^^^^^^^^^
- 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]
- def call ...
- ^^^^^^^^
- app/services/general_information_batch_processor.rb:11:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for call is too high. [14/7]
- def call ...
- ^^^^^^^^
- app/services/general_information_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [39/10]
- def call ...
- ^^^^^^^^
- app/services/general_information_batch_processor.rb:11:3: C: Metrics/PerceivedComplexity: Perceived complexity for call is too high. [14/8]
- def call ...
- ^^^^^^^^
- app/services/general_information_batch_processor.rb:12:5: C: Metrics/BlockLength: Block has too many lines. [33/25]
- ActiveRecord::Base.transaction do ...
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- app/services/general_information_batch_processor.rb:13:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
- app/services/general_information_batch_processor.rb:14:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
- app/services/general_information_batch_processor.rb:25:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
- 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]
- def call ...
- ^^^^^^^^
- app/services/publication_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [20/10]
- def call ...
- ^^^^^^^^
- 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]
- def call ...
- ^^^^^^^^
- app/services/skill_batch_processor.rb:11:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for call is too high. [20/7]
- def call ...
- ^^^^^^^^
- app/services/skill_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [72/10]
- def call ...
- ^^^^^^^^
- app/services/skill_batch_processor.rb:11:3: C: Metrics/PerceivedComplexity: Perceived complexity for call is too high. [17/8]
- def call ...
- ^^^^^^^^
- app/services/skill_batch_processor.rb:12:5: C: Metrics/BlockLength: Block has too many lines. [66/25]
- ActiveRecord::Base.transaction do ...
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 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]
- def call ...
- ^^^^^^^^
- app/services/study_batch_processor.rb:11:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for call is too high. [14/7]
- def call ...
- ^^^^^^^^
- app/services/study_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [40/10]
- def call ...
- ^^^^^^^^
- app/services/study_batch_processor.rb:11:3: C: Metrics/PerceivedComplexity: Perceived complexity for call is too high. [12/8]
- def call ...
- ^^^^^^^^
- app/services/study_batch_processor.rb:12:5: C: Metrics/BlockLength: Block has too many lines. [34/25]
- ActiveRecord::Base.transaction do ...
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 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]
- def call ...
- ^^^^^^^^
- app/services/work_experience_batch_processor.rb:11:3: C: Metrics/MethodLength: Method has too many lines. [21/10]
- def call ...
- ^^^^^^^^
- config/environments/development.rb:9:19: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
- config.hosts << "team.local"
- ^^^^^^^^^^^^
- config/environments/production.rb:31:50: C: [Correctable] Style/GlobalStdStream: Use $stdout instead of STDOUT.
- logger = ActiveSupport::Logger.new(STDOUT)
- ^^^^^^
- config/puma.rb:9:25: C: [Correctable] Style/RedundantFetchBlock: Use fetch('RAILS_MAX_THREADS', 5) instead of fetch('RAILS_MAX_THREADS') { 5 }.
- max_threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- config/puma.rb:15:17: C: [Correctable] Style/RedundantFetchBlock: Use fetch('PORT', 3000) instead of fetch('PORT') { 3000 }.
- port ENV.fetch('PORT') { 3000 }
- ^^^^^^^^^^^^^^^^^^^^^^
- config/puma.rb:19:17: C: [Correctable] Style/RedundantFetchBlock: Use fetch('RAILS_ENV', 'development') instead of fetch('RAILS_ENV') { 'development' }.
- environment ENV.fetch('RAILS_ENV') { 'development' }
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- config/puma.rb:22:13: C: [Correctable] Style/RedundantFetchBlock: Use fetch('PIDFILE', 'tmp/pids/server.pid') instead of fetch('PIDFILE') { 'tmp/pids/server.pid' }.
- pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' }
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- spec/controllers/web/employees/cvs_controller_spec.rb:78:12: C: [Correctable] Layout/SpaceAroundMethodCallOperator: Avoid using spaces around a method call operator.
- end .to change { Cv.count }.by(1)
- ^
- spec/factories/taggings.rb:6:7: C: RSpec/MissingExampleGroupArgument: The first argument to context should not be empty.
- context { 'soft_skills' }
- ^^^^^^^^^^^^^^^^^^^^^^^^^
- spec/factories/taggings.rb:10:7: C: RSpec/MissingExampleGroupArgument: The first argument to context should not be empty.
- context { 'interests' }
- ^^^^^^^^^^^^^^^^^^^^^^^
- 187 files inspected, 57 offenses detected, 17 offenses auto-correctable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement