lib/cc/analyzer/issue_validator.rb in codeclimate-0.34.1 vs lib/cc/analyzer/issue_validator.rb in codeclimate-0.35.0
- old
+ new
@@ -1,19 +1,8 @@
module CC
module Analyzer
class IssueValidator
- CHECKS = [
- IssueCategoryValidation,
- IssueCheckNamePresenceValidation,
- IssueDescriptionPresenceValidation,
- IssueLocationFormatValidation,
- IssueOtherLocationsFormatValidation,
- IssuePathExistenceValidation,
- IssuePathIsFileValidation,
- IssuePathPresenceValidation,
- IssueRelativePathValidation,
- IssueTypeValidation,
- ].freeze
+ CHECKS = IssueValidations.validations.freeze
attr_reader :error
def initialize(issue)
@issue = issue