OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Avoid naming error warnings on codeclimate due to V2_1
Oliver Günther423efa50fe3a
diff --git a/.codeclimate.yml b/.codeclimate.ymlindex b05573788b1..283e631b559 100644--- a/.codeclimate.yml+++ b/.codeclimate.yml@@ -27,6 +27,9 @@ checks:plugins:rubocop:enabled: true+ checks:+ Rubocop/Naming/ClassAndModuleCamelCase:+ enabled: false# Codeclimate uses brakeman 4.3.1 which does not support rails 6# Check https://docs.codeclimate.com/docs/brakeman for updates.brakeman:diff --git a/lib/api/errors/not_implemented.rb b/lib/api/errors/not_implemented.rbindex 31d6059c9f2..8f49d66f6e2 100644--- a/lib/api/errors/not_implemented.rb+++ b/lib/api/errors/not_implemented.rb@@ -1,4 +1,5 @@#-- encoding: UTF-8+#-- copyright# OpenProject is a project management system.# Copyright (C) 2012-2018 the OpenProject Foundation (OPF)diff --git a/modules/bcf/app/representers/bcf/api/v2_1/viewpoints/sliced_representer.rb b/modules/bcf/app/representers/bcf/api/v2_1/viewpoints/sliced_representer.rbindex fd8db91ff9f..17c356827a5 100644--- a/modules/bcf/app/representers/bcf/api/v2_1/viewpoints/sliced_representer.rb+++ b/modules/bcf/app/representers/bcf/api/v2_1/viewpoints/sliced_representer.rb@@ -33,7 +33,7 @@ module Bcf::API::V2_1class SlicedRepresenter < SingleRepresenterattr_reader :slice, :key- def initialize(represented, slice:, key:nil)+ def initialize(represented, slice:, key: nil)super(represented)@key = key || slice.last@slice = slice