mulang 6.0.9 → 6.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eefbd2b9f1ecdd231708cd5033ba80d9d7b494a40e9f350d4256ce2cb02b0aed
4
- data.tar.gz: 20b3f0059ffdfb86f9a533398bf2e95b81c1eb3d8fd4fceec92c06cfbd7633ef
3
+ metadata.gz: 7de4072f7ca40dab23b727e1050c90014807bde737f8757089cc816ae2767a78
4
+ data.tar.gz: 734117a52f4a327a1f4ec7bb2d117437230a8015449a65455147042c26e40168
5
5
  SHA512:
6
- metadata.gz: 7ccfa4d0e5d8924bcf588dfd614fa302d8798c9f6cdfe39e85d2f8a01c6b0feafb6972d8c5ca338834a5c4d9012e6aaf5f0ce97ea82a74deedf9fa6e332eb133
7
- data.tar.gz: 076e828e8a6aced911d147b8719a947b193fa4059242bb2075d2a72e41db1245555577f148e7b7a29ffe882e9933f0ca63113daa8d1615512a078061c03da02d
6
+ metadata.gz: 0be8b19d3d973c5ad65d09e51932c22130609e6d67bed901f4871a4e510e6b5f1b5c5b6d7c73f467c2e0f2adaaf67db57fa49b3f1463dfc6d7f37f70a15b9536
7
+ data.tar.gz: 255d9c0cc9cb01ec7a3aaef3906ecf0ae700b1d4c2d2fbfffe27f90e50903d4398378aeccc747777b40bcfa488b8a3de7e00a9b131ee402da61eb2dbde12ba35
data/bin/mulang CHANGED
Binary file
data/lib/locales/en.yml CHANGED
@@ -5,13 +5,15 @@ en:
5
5
  must_not: must not
6
6
  must: must
7
7
  solution: solution
8
+ with_anything: ' with some expression'
8
9
  with_char: ' with character <code>%{value}</code>'
9
10
  with_false: ' with value <code>%{keyword_False}</code>'
10
11
  with_literal: ' with a literal value'
11
12
  with_logic: ' with a boolean expression'
12
13
  with_math: ' with a math expression'
13
14
  with_nil: ' with <code>%{keyword_Nil}</code>'
14
- with_nonliteral: ' with a non-literal expresson'
15
+ with_reference: ' with <code>%{value}</code>'
16
+ with_nonliteral: ' with a non-literal expression'
15
17
  with_number: ' with number <code>%{value}</code>'
16
18
  with_string: ' with string <code>%{value}</code>'
17
19
  with_symbol: ' with symbol <code>%{value}</code>'
data/lib/locales/es.yml CHANGED
@@ -5,12 +5,14 @@ es:
5
5
  must_not: no debe
6
6
  must: debe
7
7
  solution: la solución
8
+ with_anything: ' con alguna expresión'
8
9
  with_char: ' con el carácter <code>%{value}</code>'
9
10
  with_false: ' con el valor <code>%{keyword_False}</code>'
10
11
  with_literal: ' con un valor literal'
11
12
  with_logic: ' con una expresión booleana'
12
13
  with_math: 'con una expresión matemática'
13
14
  with_nil: ' con <code>%{keyword_Nil}</code>'
15
+ with_reference: ' con <code>%{value}</code>'
14
16
  with_nonliteral: ' con una expresión no literal'
15
17
  with_number: ' con el número <code>%{value}</code>'
16
18
  with_string: ' con la cadena <code>%{value}</code>'
@@ -2,95 +2,200 @@ en:
2
2
  mulang:
3
3
  inspection:
4
4
  UsesAnd: '%{binding} %{must} use <code>%{operator_And}</code>'
5
+ CallsAnd: '%{binding} %{must} use <code>%{operator_And}</code>%{matching}'
5
6
  UsesBackwardComposition: '%{binding} %{must} use <code>%{operator_BackwardComposition}</code>'
7
+ CallsBackwardComposition: '%{binding} %{must} use <code>%{operator_BackwardComposition}</code>%{matching}'
6
8
  UsesBitwiseAnd: '%{binding} %{must} use <code>%{operator_BitwiseAnd}</code>'
9
+ CallsBitwiseAnd: '%{binding} %{must} use <code>%{operator_BitwiseAnd}</code>%{matching}'
7
10
  UsesBitwiseLeftShift: '%{binding} %{must} use <code>%{operator_BitwiseLeftShift}</code>'
11
+ CallsBitwiseLeftShift: '%{binding} %{must} use <code>%{operator_BitwiseLeftShift}</code>%{matching}'
8
12
  UsesBitwiseOr: '%{binding} %{must} use <code>%{operator_BitwiseOr}</code>'
13
+ CallsBitwiseOr: '%{binding} %{must} use <code>%{operator_BitwiseOr}</code>%{matching}'
9
14
  UsesBitwiseRightShift: '%{binding} %{must} use <code>%{operator_BitwiseRightShift}</code>'
15
+ CallsBitwiseRightShift: '%{binding} %{must} use <code>%{operator_BitwiseRightShift}</code>%{matching}'
10
16
  UsesBitwiseXor: '%{binding} %{must} use <code>%{operator_BitwiseXor}</code>'
17
+ CallsBitwiseXor: '%{binding} %{must} use <code>%{operator_BitwiseXor}</code>%{matching}'
11
18
  UsesDivide: '%{binding} %{must} use <code>%{operator_Divide}</code>'
19
+ CallsDivide: '%{binding} %{must} use <code>%{operator_Divide}</code>%{matching}'
12
20
  UsesEqual: '%{binding} %{must} use <code>%{operator_Equal}</code>'
21
+ CallsEqual: '%{binding} %{must} use <code>%{operator_Equal}</code>%{matching}'
13
22
  UsesForwardComposition: '%{binding} %{must} use <code>%{operator_ForwardComposition}</code>'
14
- UsesGreatherOrEqualThan: '%{binding} %{must} use <code>%{operator_GreatherOrEqualThan}</code>'
15
- UsesGreatherThan: '%{binding} %{must} use <code>%{operator_GreatherThan}</code>'
23
+ CallsForwardComposition: '%{binding} %{must} use <code>%{operator_ForwardComposition}</code>%{matching}'
24
+ UsesGetAt: '%{binding} %{must} use <code>%{operator_GetAt}</code>'
25
+ CallsGetAt: '%{binding} %{must} use <code>%{operator_GetAt}</code>%{matching}'
26
+ UsesGreaterOrEqualThan: '%{binding} %{must} use <code>%{operator_GreaterOrEqualThan}</code>'
27
+ CallsGreaterOrEqualThan: '%{binding} %{must} use <code>%{operator_GreaterOrEqualThan}</code>%{matching}'
28
+ UsesGreaterThan: '%{binding} %{must} use <code>%{operator_GreaterThan}</code>'
29
+ CallsGreaterThan: '%{binding} %{must} use <code>%{operator_GreaterThan}</code>%{matching}'
16
30
  UsesHash: '%{binding} %{must} use <code>%{operator_Hash}</code>'
31
+ CallsHash: '%{binding} %{must} use <code>%{operator_Hash}</code>%{matching}'
17
32
  UsesLessOrEqualThan: '%{binding} %{must} use <code>%{operator_LessOrEqualThan}</code>'
33
+ CallsLessOrEqualThan: '%{binding} %{must} use <code>%{operator_LessOrEqualThan}</code>%{matching}'
18
34
  UsesLessThan: '%{binding} %{must} use <code>%{operator_LessThan}</code>'
35
+ CallsLessThan: '%{binding} %{must} use <code>%{operator_LessThan}</code>%{matching}'
19
36
  UsesMinus: '%{binding} %{must} use <code>%{operator_Minus}</code>'
37
+ CallsMinus: '%{binding} %{must} use <code>%{operator_Minus}</code>%{matching}'
20
38
  UsesModulo: '%{binding} %{must} use <code>%{operator_Modulo}</code>'
39
+ CallsModulo: '%{binding} %{must} use <code>%{operator_Modulo}</code>%{matching}'
21
40
  UsesMultiply: '%{binding} %{must} use <code>%{operator_Multiply}</code>'
41
+ CallsMultiply: '%{binding} %{must} use <code>%{operator_Multiply}</code>%{matching}'
22
42
  UsesNegation: '%{binding} %{must} use <code>%{operator_Negation}</code>'
43
+ CallsNegation: '%{binding} %{must} use <code>%{operator_Negation}</code>%{matching}'
23
44
  UsesNotEqual: '%{binding} %{must} use <code>%{operator_NotEqual}</code>'
45
+ CallsNotEqual: '%{binding} %{must} use <code>%{operator_NotEqual}</code>%{matching}'
24
46
  UsesNotSame: '%{binding} %{must} use <code>%{operator_NotSame}</code>'
47
+ CallsNotSame: '%{binding} %{must} use <code>%{operator_NotSame}</code>%{matching}'
25
48
  UsesNotSimilar: '%{binding} %{must} use <code>%{operator_NotSimilar}</code>'
49
+ CallsNotSimilar: '%{binding} %{must} use <code>%{operator_NotSimilar}</code>%{matching}'
26
50
  UsesOr: '%{binding} %{must} use <code>%{operator_Or}</code>'
51
+ CallsOr: '%{binding} %{must} use <code>%{operator_Or}</code>%{matching}'
27
52
  UsesOtherwise: '%{binding} %{must} use <code>%{operator_Otherwise}</code>'
53
+ CallsOtherwise: '%{binding} %{must} use <code>%{operator_Otherwise}</code>%{matching}'
28
54
  UsesPlus: '%{binding} %{must} use <code>%{operator_Plus}</code>'
55
+ CallsPlus: '%{binding} %{must} use <code>%{operator_Plus}</code>%{matching}'
29
56
  UsesPush: '%{binding} %{must} use <code>%{operator_Push}</code>'
57
+ CallsPush: '%{binding} %{must} use <code>%{operator_Push}</code>%{matching}'
30
58
  UsesSame: '%{binding} %{must} use <code>%{operator_Same}</code>'
59
+ CallsSame: '%{binding} %{must} use <code>%{operator_Same}</code>%{matching}'
60
+ UsesSetAt: '%{binding} %{must} use <code>%{operator_SetAt}</code>'
61
+ CallsSetAt: '%{binding} %{must} use <code>%{operator_SetAt}</code>%{matching}'
31
62
  UsesSimilar: '%{binding} %{must} use <code>%{operator_Similar}</code>'
63
+ CallsSimilar: '%{binding} %{must} use <code>%{operator_Similar}</code>%{matching}'
32
64
  UsesSize: '%{binding} %{must} use <code>%{operator_Size}</code>'
65
+ CallsSize: '%{binding} %{must} use <code>%{operator_Size}</code>%{matching}'
66
+ UsesSlice: '%{binding} %{must} use <code>%{operator_Slice}</code>'
67
+ CallsSlice: '%{binding} %{must} use <code>%{operator_Slice}</code>%{matching}'
33
68
  es:
34
69
  mulang:
35
70
  inspection:
36
71
  UsesAnd: '%{binding} %{must} usar <code>%{operator_And}</code>'
72
+ CallsAnd: '%{binding} %{must} usar <code>%{operator_And}</code>%{matching}'
37
73
  UsesBackwardComposition: '%{binding} %{must} usar <code>%{operator_BackwardComposition}</code>'
74
+ CallsBackwardComposition: '%{binding} %{must} usar <code>%{operator_BackwardComposition}</code>%{matching}'
38
75
  UsesBitwiseAnd: '%{binding} %{must} usar <code>%{operator_BitwiseAnd}</code>'
76
+ CallsBitwiseAnd: '%{binding} %{must} usar <code>%{operator_BitwiseAnd}</code>%{matching}'
39
77
  UsesBitwiseLeftShift: '%{binding} %{must} usar <code>%{operator_BitwiseLeftShift}</code>'
78
+ CallsBitwiseLeftShift: '%{binding} %{must} usar <code>%{operator_BitwiseLeftShift}</code>%{matching}'
40
79
  UsesBitwiseOr: '%{binding} %{must} usar <code>%{operator_BitwiseOr}</code>'
80
+ CallsBitwiseOr: '%{binding} %{must} usar <code>%{operator_BitwiseOr}</code>%{matching}'
41
81
  UsesBitwiseRightShift: '%{binding} %{must} usar <code>%{operator_BitwiseRightShift}</code>'
82
+ CallsBitwiseRightShift: '%{binding} %{must} usar <code>%{operator_BitwiseRightShift}</code>%{matching}'
42
83
  UsesBitwiseXor: '%{binding} %{must} usar <code>%{operator_BitwiseXor}</code>'
84
+ CallsBitwiseXor: '%{binding} %{must} usar <code>%{operator_BitwiseXor}</code>%{matching}'
43
85
  UsesDivide: '%{binding} %{must} usar <code>%{operator_Divide}</code>'
86
+ CallsDivide: '%{binding} %{must} usar <code>%{operator_Divide}</code>%{matching}'
44
87
  UsesEqual: '%{binding} %{must} usar <code>%{operator_Equal}</code>'
88
+ CallsEqual: '%{binding} %{must} usar <code>%{operator_Equal}</code>%{matching}'
45
89
  UsesForwardComposition: '%{binding} %{must} usar <code>%{operator_ForwardComposition}</code>'
46
- UsesGreatherOrEqualThan: '%{binding} %{must} usar <code>%{operator_GreatherOrEqualThan}</code>'
47
- UsesGreatherThan: '%{binding} %{must} usar <code>%{operator_GreatherThan}</code>'
90
+ CallsForwardComposition: '%{binding} %{must} usar <code>%{operator_ForwardComposition}</code>%{matching}'
91
+ UsesGetAt: '%{binding} %{must} usar <code>%{operator_GetAt}</code>'
92
+ CallsGetAt: '%{binding} %{must} usar <code>%{operator_GetAt}</code>%{matching}'
93
+ UsesGreaterOrEqualThan: '%{binding} %{must} usar <code>%{operator_GreaterOrEqualThan}</code>'
94
+ CallsGreaterOrEqualThan: '%{binding} %{must} usar <code>%{operator_GreaterOrEqualThan}</code>%{matching}'
95
+ UsesGreaterThan: '%{binding} %{must} usar <code>%{operator_GreaterThan}</code>'
96
+ CallsGreaterThan: '%{binding} %{must} usar <code>%{operator_GreaterThan}</code>%{matching}'
48
97
  UsesHash: '%{binding} %{must} usar <code>%{operator_Hash}</code>'
98
+ CallsHash: '%{binding} %{must} usar <code>%{operator_Hash}</code>%{matching}'
49
99
  UsesLessOrEqualThan: '%{binding} %{must} usar <code>%{operator_LessOrEqualThan}</code>'
100
+ CallsLessOrEqualThan: '%{binding} %{must} usar <code>%{operator_LessOrEqualThan}</code>%{matching}'
50
101
  UsesLessThan: '%{binding} %{must} usar <code>%{operator_LessThan}</code>'
102
+ CallsLessThan: '%{binding} %{must} usar <code>%{operator_LessThan}</code>%{matching}'
51
103
  UsesMinus: '%{binding} %{must} usar <code>%{operator_Minus}</code>'
104
+ CallsMinus: '%{binding} %{must} usar <code>%{operator_Minus}</code>%{matching}'
52
105
  UsesModulo: '%{binding} %{must} usar <code>%{operator_Modulo}</code>'
106
+ CallsModulo: '%{binding} %{must} usar <code>%{operator_Modulo}</code>%{matching}'
53
107
  UsesMultiply: '%{binding} %{must} usar <code>%{operator_Multiply}</code>'
108
+ CallsMultiply: '%{binding} %{must} usar <code>%{operator_Multiply}</code>%{matching}'
54
109
  UsesNegation: '%{binding} %{must} usar <code>%{operator_Negation}</code>'
110
+ CallsNegation: '%{binding} %{must} usar <code>%{operator_Negation}</code>%{matching}'
55
111
  UsesNotEqual: '%{binding} %{must} usar <code>%{operator_NotEqual}</code>'
112
+ CallsNotEqual: '%{binding} %{must} usar <code>%{operator_NotEqual}</code>%{matching}'
56
113
  UsesNotSame: '%{binding} %{must} usar <code>%{operator_NotSame}</code>'
114
+ CallsNotSame: '%{binding} %{must} usar <code>%{operator_NotSame}</code>%{matching}'
57
115
  UsesNotSimilar: '%{binding} %{must} usar <code>%{operator_NotSimilar}</code>'
116
+ CallsNotSimilar: '%{binding} %{must} usar <code>%{operator_NotSimilar}</code>%{matching}'
58
117
  UsesOr: '%{binding} %{must} usar <code>%{operator_Or}</code>'
118
+ CallsOr: '%{binding} %{must} usar <code>%{operator_Or}</code>%{matching}'
59
119
  UsesOtherwise: '%{binding} %{must} usar <code>%{operator_Otherwise}</code>'
120
+ CallsOtherwise: '%{binding} %{must} usar <code>%{operator_Otherwise}</code>%{matching}'
60
121
  UsesPlus: '%{binding} %{must} usar <code>%{operator_Plus}</code>'
122
+ CallsPlus: '%{binding} %{must} usar <code>%{operator_Plus}</code>%{matching}'
61
123
  UsesPush: '%{binding} %{must} usar <code>%{operator_Push}</code>'
124
+ CallsPush: '%{binding} %{must} usar <code>%{operator_Push}</code>%{matching}'
62
125
  UsesSame: '%{binding} %{must} usar <code>%{operator_Same}</code>'
126
+ CallsSame: '%{binding} %{must} usar <code>%{operator_Same}</code>%{matching}'
127
+ UsesSetAt: '%{binding} %{must} usar <code>%{operator_SetAt}</code>'
128
+ CallsSetAt: '%{binding} %{must} usar <code>%{operator_SetAt}</code>%{matching}'
63
129
  UsesSimilar: '%{binding} %{must} usar <code>%{operator_Similar}</code>'
130
+ CallsSimilar: '%{binding} %{must} usar <code>%{operator_Similar}</code>%{matching}'
64
131
  UsesSize: '%{binding} %{must} usar <code>%{operator_Size}</code>'
132
+ CallsSize: '%{binding} %{must} usar <code>%{operator_Size}</code>%{matching}'
133
+ UsesSlice: '%{binding} %{must} usar <code>%{operator_Slice}</code>'
134
+ CallsSlice: '%{binding} %{must} usar <code>%{operator_Slice}</code>%{matching}'
65
135
  pt:
66
136
  mulang:
67
137
  inspection:
68
138
  UsesAnd: '%{binding} %{must} utilizar <code>%{operator_And}</code>'
139
+ CallsAnd: '%{binding} %{must} utilizar <code>%{operator_And}</code>%{matching}'
69
140
  UsesBackwardComposition: '%{binding} %{must} utilizar <code>%{operator_BackwardComposition}</code>'
141
+ CallsBackwardComposition: '%{binding} %{must} utilizar <code>%{operator_BackwardComposition}</code>%{matching}'
70
142
  UsesBitwiseAnd: '%{binding} %{must} utilizar <code>%{operator_BitwiseAnd}</code>'
143
+ CallsBitwiseAnd: '%{binding} %{must} utilizar <code>%{operator_BitwiseAnd}</code>%{matching}'
71
144
  UsesBitwiseLeftShift: '%{binding} %{must} utilizar <code>%{operator_BitwiseLeftShift}</code>'
145
+ CallsBitwiseLeftShift: '%{binding} %{must} utilizar <code>%{operator_BitwiseLeftShift}</code>%{matching}'
72
146
  UsesBitwiseOr: '%{binding} %{must} utilizar <code>%{operator_BitwiseOr}</code>'
147
+ CallsBitwiseOr: '%{binding} %{must} utilizar <code>%{operator_BitwiseOr}</code>%{matching}'
73
148
  UsesBitwiseRightShift: '%{binding} %{must} utilizar <code>%{operator_BitwiseRightShift}</code>'
149
+ CallsBitwiseRightShift: '%{binding} %{must} utilizar <code>%{operator_BitwiseRightShift}</code>%{matching}'
74
150
  UsesBitwiseXor: '%{binding} %{must} utilizar <code>%{operator_BitwiseXor}</code>'
151
+ CallsBitwiseXor: '%{binding} %{must} utilizar <code>%{operator_BitwiseXor}</code>%{matching}'
75
152
  UsesDivide: '%{binding} %{must} utilizar <code>%{operator_Divide}</code>'
153
+ CallsDivide: '%{binding} %{must} utilizar <code>%{operator_Divide}</code>%{matching}'
76
154
  UsesEqual: '%{binding} %{must} utilizar <code>%{operator_Equal}</code>'
155
+ CallsEqual: '%{binding} %{must} utilizar <code>%{operator_Equal}</code>%{matching}'
77
156
  UsesForwardComposition: '%{binding} %{must} utilizar <code>%{operator_ForwardComposition}</code>'
78
- UsesGreatherOrEqualThan: '%{binding} %{must} utilizar <code>%{operator_GreatherOrEqualThan}</code>'
79
- UsesGreatherThan: '%{binding} %{must} utilizar <code>%{operator_GreatherThan}</code>'
157
+ CallsForwardComposition: '%{binding} %{must} utilizar <code>%{operator_ForwardComposition}</code>%{matching}'
158
+ UsesGetAt: '%{binding} %{must} utilizar <code>%{operator_GetAt}</code>'
159
+ CallsGetAt: '%{binding} %{must} utilizar <code>%{operator_GetAt}</code>%{matching}'
160
+ UsesGreaterOrEqualThan: '%{binding} %{must} utilizar <code>%{operator_GreaterOrEqualThan}</code>'
161
+ CallsGreaterOrEqualThan: '%{binding} %{must} utilizar <code>%{operator_GreaterOrEqualThan}</code>%{matching}'
162
+ UsesGreaterThan: '%{binding} %{must} utilizar <code>%{operator_GreaterThan}</code>'
163
+ CallsGreaterThan: '%{binding} %{must} utilizar <code>%{operator_GreaterThan}</code>%{matching}'
80
164
  UsesHash: '%{binding} %{must} utilizar <code>%{operator_Hash}</code>'
165
+ CallsHash: '%{binding} %{must} utilizar <code>%{operator_Hash}</code>%{matching}'
81
166
  UsesLessOrEqualThan: '%{binding} %{must} utilizar <code>%{operator_LessOrEqualThan}</code>'
167
+ CallsLessOrEqualThan: '%{binding} %{must} utilizar <code>%{operator_LessOrEqualThan}</code>%{matching}'
82
168
  UsesLessThan: '%{binding} %{must} utilizar <code>%{operator_LessThan}</code>'
169
+ CallsLessThan: '%{binding} %{must} utilizar <code>%{operator_LessThan}</code>%{matching}'
83
170
  UsesMinus: '%{binding} %{must} utilizar <code>%{operator_Minus}</code>'
171
+ CallsMinus: '%{binding} %{must} utilizar <code>%{operator_Minus}</code>%{matching}'
84
172
  UsesModulo: '%{binding} %{must} utilizar <code>%{operator_Modulo}</code>'
173
+ CallsModulo: '%{binding} %{must} utilizar <code>%{operator_Modulo}</code>%{matching}'
85
174
  UsesMultiply: '%{binding} %{must} utilizar <code>%{operator_Multiply}</code>'
175
+ CallsMultiply: '%{binding} %{must} utilizar <code>%{operator_Multiply}</code>%{matching}'
86
176
  UsesNegation: '%{binding} %{must} utilizar <code>%{operator_Negation}</code>'
177
+ CallsNegation: '%{binding} %{must} utilizar <code>%{operator_Negation}</code>%{matching}'
87
178
  UsesNotEqual: '%{binding} %{must} utilizar <code>%{operator_NotEqual}</code>'
179
+ CallsNotEqual: '%{binding} %{must} utilizar <code>%{operator_NotEqual}</code>%{matching}'
88
180
  UsesNotSame: '%{binding} %{must} utilizar <code>%{operator_NotSame}</code>'
181
+ CallsNotSame: '%{binding} %{must} utilizar <code>%{operator_NotSame}</code>%{matching}'
89
182
  UsesNotSimilar: '%{binding} %{must} utilizar <code>%{operator_NotSimilar}</code>'
183
+ CallsNotSimilar: '%{binding} %{must} utilizar <code>%{operator_NotSimilar}</code>%{matching}'
90
184
  UsesOr: '%{binding} %{must} utilizar <code>%{operator_Or}</code>'
185
+ CallsOr: '%{binding} %{must} utilizar <code>%{operator_Or}</code>%{matching}'
91
186
  UsesOtherwise: '%{binding} %{must} utilizar <code>%{operator_Otherwise}</code>'
187
+ CallsOtherwise: '%{binding} %{must} utilizar <code>%{operator_Otherwise}</code>%{matching}'
92
188
  UsesPlus: '%{binding} %{must} utilizar <code>%{operator_Plus}</code>'
189
+ CallsPlus: '%{binding} %{must} utilizar <code>%{operator_Plus}</code>%{matching}'
93
190
  UsesPush: '%{binding} %{must} utilizar <code>%{operator_Push}</code>'
191
+ CallsPush: '%{binding} %{must} utilizar <code>%{operator_Push}</code>%{matching}'
94
192
  UsesSame: '%{binding} %{must} utilizar <code>%{operator_Same}</code>'
193
+ CallsSame: '%{binding} %{must} utilizar <code>%{operator_Same}</code>%{matching}'
194
+ UsesSetAt: '%{binding} %{must} utilizar <code>%{operator_SetAt}</code>'
195
+ CallsSetAt: '%{binding} %{must} utilizar <code>%{operator_SetAt}</code>%{matching}'
95
196
  UsesSimilar: '%{binding} %{must} utilizar <code>%{operator_Similar}</code>'
197
+ CallsSimilar: '%{binding} %{must} utilizar <code>%{operator_Similar}</code>%{matching}'
96
198
  UsesSize: '%{binding} %{must} utilizar <code>%{operator_Size}</code>'
199
+ CallsSize: '%{binding} %{must} utilizar <code>%{operator_Size}</code>%{matching}'
200
+ UsesSlice: '%{binding} %{must} utilizar <code>%{operator_Slice}</code>'
201
+ CallsSlice: '%{binding} %{must} utilizar <code>%{operator_Slice}</code>%{matching}'
data/lib/locales/pt.yml CHANGED
@@ -5,12 +5,14 @@ pt:
5
5
  must_not: 'não deve'
6
6
  must: 'deve'
7
7
  solution: 'a solução'
8
+ with_anything: ' com alguma expressão'
8
9
  with_char: ' com o caractere <code>%{value}</code>'
9
10
  with_false: ' com o valor <code>%{keyword_False}</code>'
10
11
  with_literal: ' com um valor literal'
11
12
  with_logic: ' com uma expressão booleana'
12
13
  with_math: ' com uma expressão matemática'
13
14
  with_nil: ' com <code>%{keyword_Nil}</code>'
15
+ with_reference: ' com <code>%{value}</code>'
14
16
  with_nonliteral: ' com uma expressão não literal'
15
17
  with_number: ' com o número <code>%{value}</code>'
16
18
  with_string: ' com a string <code>%{value}</code>'
@@ -42,11 +44,11 @@ pt:
42
44
  DeclaresComputation_named: '%{binding} %{must} declarar uma computação %{target}'
43
45
  DeclaresComputation: '%{binding} %{must} declarar cálculos'
44
46
  DeclaresComputationWithArity0_named: '%{target} %{must} declarar parâmetros zero'
45
- DeclaresComputationWithArity1_named: '%{target} %{must} tem um parâmetro'
46
- DeclaresComputationWithArity2_named: '%{target} %{must} tem dois parâmetros'
47
- DeclaresComputationWithArity3_named: '%{target} %{must} tem três parâmetros'
48
- DeclaresComputationWithArity4_named: '%{target} %{must} tem quatro parâmetros'
49
- DeclaresComputationWithArity5_named: '%{target} %{must} tem cinco parâmetros'
47
+ DeclaresComputationWithArity1_named: '%{target} %{must} ter um parâmetro'
48
+ DeclaresComputationWithArity2_named: '%{target} %{must} ter dois parâmetros'
49
+ DeclaresComputationWithArity3_named: '%{target} %{must} ter três parâmetros'
50
+ DeclaresComputationWithArity4_named: '%{target} %{must} ter quatro parâmetros'
51
+ DeclaresComputationWithArity5_named: '%{target} %{must} ter cinco parâmetros'
50
52
  DeclaresEntryPoint: '%{binding} %{must} declarar um <code>%{keyword_EntryPoint}</code>%{matching}'
51
53
  DeclaresEnumeration_except: '%{binding} %{must} declarar enumerações que não são chamadas %{target}'
52
54
  DeclaresEnumeration_like: '%{binding} %{must} declarar uma enumeração de nome semelhante a %{target}'
@@ -163,9 +165,9 @@ pt:
163
165
  SubordinatesDeclarationsTo: 'Todas as declarações em %{binding} %{must} ser usadas a partir de %{target}'
164
166
  SubordinatesDeclarationsToEntryPoint: 'Todas as declarações em %{binding} %{must} devem ser usadas a partir de <code>%{keyword_EntryPoint}</code>'
165
167
  TypesAs_named: '%{binding} %{must} é do tipo %{target}'
166
- TypesAs: '%{binding} %{must} tem tipo'
167
- TypesReturnAs_named: '%{binding} %{must} tem tipo de valor de retorno %{target}'
168
- TypesReturnAs: '%{binding} %{must} tem tipo de valor de retorno'
168
+ TypesAs: '%{binding} %{must} ter tipo'
169
+ TypesReturnAs_named: '%{binding} %{must} ter tipo de valor de retorno %{target}'
170
+ TypesReturnAs: '%{binding} %{must} ter tipo de valor de retorno'
169
171
  Uses_except: '%{binding} %{must} delegar algo diferente para %{target}'
170
172
  Uses_like: '%{binding} %{must} delegar algo semelhante ao %{target}'
171
173
  Uses_named: '%{binding} %{must} usar %{target}'
@@ -1,7 +1,11 @@
1
1
  class Mulang::Inspection::Matcher
2
2
  include Mulang::Inspection::Compacted
3
3
 
4
- TYPES = %w(WithChar WithFalse WithLiteral WithLogic WithMath WithNil WithNonliteral WithNumber WithString WithSymbol WithTrue)
4
+ TYPES = %w(
5
+ WithAnything WithChar WithFalse WithLiteral
6
+ WithLogic WithMath WithNil WithNonliteral
7
+ WithNumber WithReference WithString
8
+ WithSymbol WithTrue)
5
9
 
6
10
  attr_accessor :type, :value
7
11
 
@@ -12,8 +12,8 @@ module Mulang
12
12
  ^(?<negation>Not:)?
13
13
  (?<type>[^:]+)
14
14
  (
15
- :(?<matcher>WithLiteral|WithNonliteral|WithLogic|WithMath|WithFalse|WithNil|WithTrue) |
16
- :(?<matcher>WithChar|WithNumber|WithString|WithSymbol):(?<value>[^:]+) |
15
+ :(?<matcher>WithAnything|WithLiteral|WithNonliteral|WithLogic|WithMath|WithFalse|WithNil|WithTrue) |
16
+ :(?<matcher>WithReference|WithChar|WithNumber|WithString|WithSymbol):(?<value>[^:]+) |
17
17
  :(?<target>[^:]+)(:(?<matcher>[^:]+)(:(?<value>[^:]+))?)?
18
18
  )?$}.gsub(/\s/, '')
19
19
 
data/lib/mulang/tokens.rb CHANGED
@@ -12,14 +12,17 @@ module Mulang
12
12
  operator_And: '&amp;&amp;',
13
13
  operator_Divide: '/',
14
14
  operator_Equal: '==',
15
- operator_GreatherOrEqualThan: '&gt;=',
16
- operator_GreatherThan: '&gt;',
15
+ operator_GreaterOrEqualThan: '&gt;=',
16
+ operator_GreaterThan: '&gt;',
17
17
  operator_LessOrEqualThan: '&lt;=',
18
18
  operator_LessThan: '&lt;',
19
19
  operator_Minus: '-',
20
20
  operator_Multiply: '*',
21
21
  operator_Negation: '!',
22
22
  operator_NotEqual: '!=',
23
+ operator_Slice: 'slice',
24
+ operator_GetAt: '[]',
25
+ operator_SetAt: '[]=',
23
26
  operator_Or: '||',
24
27
  operator_Plus: '+',
25
28
  operator_Modulo: '%',
@@ -41,8 +44,8 @@ module Mulang
41
44
  operator_And: '&amp;&amp;',
42
45
  operator_Divide: '/',
43
46
  operator_Equal: '==',
44
- operator_GreatherOrEqualThan: '&gt;=',
45
- operator_GreatherThan: '&gt;',
47
+ operator_GreaterOrEqualThan: '&gt;=',
48
+ operator_GreaterThan: '&gt;',
46
49
  operator_LessOrEqualThan: '&lt;=',
47
50
  operator_LessThan: '&lt;',
48
51
  operator_Minus: '-',
@@ -66,8 +69,8 @@ module Mulang
66
69
  operator_And: '&amp;&amp;',
67
70
  operator_Divide: '/',
68
71
  operator_Equal: '==',
69
- operator_GreatherOrEqualThan: '&gt;=',
70
- operator_GreatherThan: '&gt;',
72
+ operator_GreaterOrEqualThan: '&gt;=',
73
+ operator_GreaterThan: '&gt;',
71
74
  operator_LessOrEqualThan: '&lt;=',
72
75
  operator_LessThan: '&lt;',
73
76
  operator_Minus: '-',
@@ -96,14 +99,17 @@ module Mulang
96
99
  operator_And: '&amp;&amp;',
97
100
  operator_Divide: '/',
98
101
  operator_Equal: 'equal',
99
- operator_GreatherOrEqualThan: '&gt;=',
100
- operator_GreatherThan: '&gt;',
102
+ operator_GreaterOrEqualThan: '&gt;=',
103
+ operator_GreaterThan: '&gt;',
101
104
  operator_LessOrEqualThan: '&lt;=',
102
105
  operator_LessThan: '&lt;',
103
106
  operator_Minus: '-',
104
107
  operator_Multiply: '*',
105
108
  operator_Negation: '!',
106
109
  operator_NotEqual: '!=',
110
+ operator_Slice: 'slice',
111
+ operator_GetAt: '[]',
112
+ operator_SetAt: '[]=',
107
113
  operator_Or: '||',
108
114
  operator_Plus: '+',
109
115
  operator_Modulo: '%',
@@ -128,14 +134,17 @@ module Mulang
128
134
  operator_And: '&amp;&amp;',
129
135
  operator_Divide: '/',
130
136
  operator_Equal: '===',
131
- operator_GreatherOrEqualThan: '&gt;=',
132
- operator_GreatherThan: '&gt;',
137
+ operator_GreaterOrEqualThan: '&gt;=',
138
+ operator_GreaterThan: '&gt;',
133
139
  operator_LessOrEqualThan: '&lt;=',
134
140
  operator_LessThan: '&lt;',
135
141
  operator_Minus: '-',
136
142
  operator_Multiply: '*',
137
143
  operator_Negation: '!',
138
144
  operator_NotEqual: '!==',
145
+ operator_Slice: 'slice',
146
+ operator_GetAt: '[]',
147
+ operator_SetAt: '[]=',
139
148
  operator_Or: '||',
140
149
  operator_Plus: '+',
141
150
  operator_Modulo: '%',
@@ -161,14 +170,17 @@ module Mulang
161
170
  operator_And: 'and',
162
171
  operator_Divide: '/',
163
172
  operator_Equal: '==',
164
- operator_GreatherOrEqualThan: '&gt;=',
165
- operator_GreatherThan: '&gt;',
173
+ operator_GreaterOrEqualThan: '&gt;=',
174
+ operator_GreaterThan: '&gt;',
166
175
  operator_LessOrEqualThan: '&lt;=',
167
176
  operator_LessThan: '&lt;',
168
177
  operator_Minus: '-',
169
178
  operator_Multiply: '*',
170
179
  operator_Negation: 'not',
171
180
  operator_NotEqual: '!=',
181
+ operator_Slice: '[:]',
182
+ operator_GetAt: '[]',
183
+ operator_SetAt: '[]=',
172
184
  operator_Or: 'or',
173
185
  operator_Plus: '+',
174
186
  operator_Modulo: '%',
@@ -177,7 +189,8 @@ module Mulang
177
189
  operator_BitwiseXor: '^',
178
190
  operator_BitwiseLeftShift: '&lt;&lt;',
179
191
  operator_BitwiseRightShift: '&gt;&gt;',
180
- operator_Hash: 'hash'
192
+ operator_Hash: 'hash',
193
+ operator_Size: 'len'
181
194
  },
182
195
  Ruby: {
183
196
  keyword_False: 'false',
@@ -195,14 +208,17 @@ module Mulang
195
208
  operator_And: '&amp;&amp;',
196
209
  operator_Divide: '/',
197
210
  operator_Equal: '==',
198
- operator_GreatherOrEqualThan: '&gt;=',
199
- operator_GreatherThan: '&gt;',
211
+ operator_GreaterOrEqualThan: '&gt;=',
212
+ operator_GreaterThan: '&gt;',
200
213
  operator_LessOrEqualThan: '&lt;=',
201
214
  operator_LessThan: '&lt;',
202
215
  operator_Minus: '-',
203
216
  operator_Multiply: '*',
204
217
  operator_Negation: '!',
205
218
  operator_NotEqual: '!=',
219
+ operator_Slice: 'slice',
220
+ operator_GetAt: '[]',
221
+ operator_SetAt: '[]=',
206
222
  operator_Or: '||',
207
223
  operator_Plus: '+',
208
224
  operator_Modulo: '%',
@@ -228,14 +244,17 @@ module Mulang
228
244
  operator_And: '&amp;&amp;',
229
245
  operator_Divide: '/',
230
246
  operator_Equal: '==',
231
- operator_GreatherOrEqualThan: '&gt;=',
232
- operator_GreatherThan: '&gt;',
247
+ operator_GreaterOrEqualThan: '&gt;=',
248
+ operator_GreaterThan: '&gt;',
233
249
  operator_LessOrEqualThan: '&lt;=',
234
250
  operator_LessThan: '&lt;',
235
251
  operator_Minus: '-',
236
252
  operator_Multiply: '*',
237
253
  operator_Negation: '!',
238
254
  operator_NotEqual: '!=',
255
+ operator_Slice: 'slice',
256
+ operator_GetAt: '[]',
257
+ operator_SetAt: '[]=',
239
258
  operator_Or: '||',
240
259
  operator_Plus: '+',
241
260
  operator_Modulo: '%',
@@ -252,8 +271,8 @@ module Mulang
252
271
  keyword_Not: 'not',
253
272
  keyword_Is: 'is',
254
273
  operator_Divide: '/',
255
- operator_GreatherOrEqualThan: '&gt;=',
256
- operator_GreatherThan: '&gt;',
274
+ operator_GreaterOrEqualThan: '&gt;=',
275
+ operator_GreaterThan: '&gt;',
257
276
  operator_LessOrEqualThan: '=&lt;',
258
277
  operator_LessThan: '&lt;',
259
278
  operator_Minus: '-',
@@ -1,4 +1,4 @@
1
1
  module Mulang
2
- VERSION = "6.0.9"
3
- MULANG_VERSION = "6.0.9"
2
+ VERSION = "6.10.0"
3
+ MULANG_VERSION = "6.10.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mulang
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.9
4
+ version: 6.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2023-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core