ontohub/ontohub

View on GitHub
app/fake_records/repository_file.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Class RepositoryFile has 28 methods (exceeds 20 allowed). Consider refactoring.
Open

class RepositoryFile < FakeRecord
  class PathValidator < ActiveModel::Validator
    def validate(record)
      if record.repository.points_through_file?(record.target_path)
        record.errors[:target_directory] = "Error! This path points to or through a file."
Severity: Minor
Found in app/fake_records/repository_file.rb - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status