# Redmine plugin for Document Management System "Features" # # Karel Pičman # # This file is part of Redmine DMSF plugin. # # Redmine DMSF plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General # Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any # later version. # # Redmine DMSF plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for # more details. # # You should have received a copy of the GNU General Public License along with Redmine DMSF plugin. If not, see # . plugins: - rubocop-rails - rubocop-performance AllCops: TargetRubyVersion: 3.2 TargetRailsVersion: 7.1 SuggestExtensions: false NewCops: enable Exclude: - '**/vendor/**/*' # Rules for DMSF Layout/LineLength: Exclude: - app/models/dmsf_query.rb Lint/SymbolConversion: Exclude: - test/unit/dmsf_file_revision_test.rb Lint/ScriptPermission: Exclude: - extra/xapian_indexer.rb Lint/UselessAssignment: Exclude: - lib/redmine_dmsf/lockable.rb Naming/BlockForwarding: EnforcedStyle: explicit Metrics/AbcSize: Enabled: false Metrics/BlockLength: Enabled: false Metrics/BlockNesting: Enabled: false Metrics/ClassLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/MethodLength: Enabled: false Metrics/ModuleLength: Enabled: false Metrics/ParameterLists: Enabled: false Metrics/PerceivedComplexity: Enabled: false Naming/AccessorMethodName: Exclude: - lib/dav4rack/resource.rb Naming/PredicatePrefix: Exclude: - patches/attachable_patch.rb Style/HashSyntax: EnforcedShorthandSyntax: either Style/ZeroLengthPredicate: Exclude: - lib/redmine_dmsf/webdav/dmsf_resource.rb Rails/BulkChangeTable: Exclude: - db/migrate/20170217141601_add_dmsf_not_inheritable_to_custom_fields.rb Rails/DangerousColumnNames: Exclude: - db/migrate/20170330131901_create_dmsf_folder_permissions.rb Rails/DynamicFindBy: AllowedMethods: - find_by_token - find_by_param Rails/SkipsModelValidations: Exclude: - app/helpers/dmsf_upload_helper.rb # touch is Okay - app/models/dmsf_workflow.rb # update doesn't work here - lib/redmine_dmsf/patches/user_patch.rb - lib/redmine_dmsf/patches/role_patch.rb - db/migrate/20170526144701_dmsf_attachable.rb - db/migrate/20170421101901_dmsf_file_container_rollback.rb - db/migrate/20170118142001_dmsf_file_container.rb - db/migrate/20160222140401_approval_workflow_std_fields.rb - db/migrate/20160215125801_approval_workflow_status.rb - db/migrate/20140519133201_trash_bin.rb - db/migrate/07_dmsf_1_4_4.rb - db/migrate/20240829093801_rename_dmsf_digest_token.rb Rails/ThreeStateBooleanColumn: Exclude: - db/migrate/04_dmsf_0_9_0.rb - db/migrate/20170217141601_add_dmsf_not_inheritable_to_custom_fields.rb Rails/UniqueValidationWithoutIndex: Exclude: - app/models/dmsf_folder.rb # TODO: Create a case insensitive index in DB migrations - app/models/dmsf_file.rb - app/models/dmsf_workflow_step.rb # Impossible due to steps sorting Style/ExpandPathArguments: Enabled: false Style/FrozenStringLiteralComment: Exclude: - init.rb Style/OpenStructUse: Exclude: - lib/dav4rack/utils.rb Style/OptionalBooleanParameter: Exclude: - lib/redmine_dmsf/field_formats/dmsf_file_format.rb - lib/redmine_dmsf/field_formats/dmsf_file_revision_format.rb