mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
26 lines
485 B
Crystal
26 lines
485 B
Crystal
module Ameba
|
|
# Represents an issue reported by Ameba.
|
|
record Issue,
|
|
# A rule that triggers this issue.
|
|
rule : Rule::Base,
|
|
|
|
# Location of the issue.
|
|
location : Crystal::Location?,
|
|
|
|
# End location of the issue.
|
|
end_location : Crystal::Location?,
|
|
|
|
# Issue message.
|
|
message : String,
|
|
|
|
# Issue status.
|
|
status : Symbol? do
|
|
def disabled?
|
|
status == :disabled
|
|
end
|
|
|
|
def syntax?
|
|
rule.is_a?(Rule::Lint::Syntax)
|
|
end
|
|
end
|
|
end
|