cane 1.4.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +0,0 @@
1
- # Value object used by StyleCheck.
2
- class StyleViolation < Struct.new(:file_name, :line, :message)
3
- def description
4
- "Lines violated style requirements"
5
- end
6
-
7
- def columns
8
- ["%s:%i" % [file_name, line], message]
9
- end
10
- end
@@ -1,20 +0,0 @@
1
- module Cane
2
-
3
- # Value object used by AbcCheck for a file that cannot be parsed. This is
4
- # handled by AbcCheck rather than a separate class since it is a low value
5
- # violation (syntax errors should have been picked up by specs) but we still
6
- # have to deal with the edge case.
7
- class SyntaxViolation < Struct.new(:file_name)
8
- def columns
9
- [file_name]
10
- end
11
-
12
- def description
13
- "Files contained invalid syntax"
14
- end
15
-
16
- def sort_index
17
- 0
18
- end
19
- end
20
- end
@@ -1,15 +0,0 @@
1
- # Value object used by ThresholdCheck.
2
- class ThresholdViolation < Struct.new(:name, :operator, :value, :limit)
3
- def description
4
- "Quality threshold crossed"
5
- end
6
-
7
- def columns
8
- ["%s is %s, should be %s %s" % [
9
- name,
10
- value,
11
- operator,
12
- limit
13
- ]]
14
- end
15
- end