mulang 6.0.4 → 6.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c939a5ccbb3c37d4185d74b92716ec2edb749e749ba030957cf76cde4f4eca8a
4
- data.tar.gz: d26a911d0af64e7909a3febc313609c3c4014d16f493135b095925accf8b5cae
3
+ metadata.gz: 840be5bf9bea2b4855d162f1aa04249c43f6b03081715e3fd930eebf7ab25545
4
+ data.tar.gz: 5b6304cdd8c354fc8300064f8c2852f63556f39549157e6580ec904fea36b24f
5
5
  SHA512:
6
- metadata.gz: 42d6d6a37862e5f72e052c45e21e1889614a27f16ee5b26e5a9155e1450fa0520b7ab29b31eee145b3a6848ea2127a1fe46ceead60d78dbcbfa94ca65b7fc84f
7
- data.tar.gz: b982f347a29409ebcce08d54d20f766c152217c761fedb5b5229671731ca816f10c0816774d670511e08d152d2af94ae7039e04280c3641ac207c83a87a71691
6
+ metadata.gz: d132b9c22e545e123f7badba82e9435f746a735d29346ae078f7c916f8d03968b0c3695e358931bab0d72255b2e4f3dd7f45211c5afe8b43826bbb590919e5b0
7
+ data.tar.gz: bc0a5da0bd4475e77b56d9daef6e2bf4f1af4f2250c9108c4203123669be1837177b9209e00809a6f50c7df70bc7d1f0d3c1fa2fe6fde8206e46b7adc5c2490a
data/bin/mulang CHANGED
Binary file
data/lib/locales/en.yml CHANGED
@@ -171,8 +171,8 @@ en:
171
171
  UsesComprehension: '%{binding} %{must} use comprehensions'
172
172
  UsesConditional: '%{binding} %{must} use conditionals'
173
173
  UsesCut: '%{binding} uses <code>!</li> operator, which is a bad practice'
174
- UsesDynamicPolymorphism: '%{binding} %{must} use polymorphism'
175
174
  UsesDynamicMethodOverload: '%{binding} %{must} use overload'
175
+ UsesDynamicPolymorphism: '%{binding} %{must} use polymorphism'
176
176
  UsesFail: '%{binding} uses <code>%{keyword_Fail}</li>, which is a bad practice'
177
177
  UsesFindall: '%{binding} %{must} use <code>%{keyword_Findall}</code>'
178
178
  UsesForall: '%{binding} %{must} use <code>%{keyword_Forall}</code>'
@@ -185,6 +185,7 @@ en:
185
185
  UsesLoop: '%{binding} %{must} use a loop%{matching}'
186
186
  UsesMath: '%{binding} %{must} usar math expressions'
187
187
  UsesMixin: '%{binding} %{must} use mixins'
188
+ UsesNamedSelfReference: '%{binding} should use <code>%{keyword_Self}</code> instead of a global reference'
188
189
  UsesNot: '%{binding} %{must} use not'
189
190
  UsesObjectComposition: '%{binding} %{must} use composition'
190
191
  UsesPatternMatching: '%{binding} %{must} use pattern matching'
data/lib/locales/es.yml CHANGED
@@ -183,8 +183,8 @@ es:
183
183
  UsesComprehension: '%{binding} %{must} emplear listas por comprensión'
184
184
  UsesConditional: '%{binding} %{must} utilizar condicionales'
185
185
  UsesCut: '%{binding} usa el operador !, lo cual es una mala práctica'
186
- UsesDynamicPolymorphism: '%{binding} %{must} usar polimorfismo'
187
186
  UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
187
+ UsesDynamicPolymorphism: '%{binding} %{must} usar polimorfismo'
188
188
  UsesExceptionHandling: '%{binding} %{must} realizar manejo de excepciones'
189
189
  UsesExceptions: '%{binding} %{must} usar excepciones'
190
190
  UsesFail: '%{binding} usa <code>%{keyword_Fail}</li>, lo cual es una mala práctica'
@@ -201,6 +201,7 @@ es:
201
201
  UsesMath: '%{binding} %{must} usar expresiones matemáticas'
202
202
  UsesMixin: '%{binding} %{must} utilizar mixins'
203
203
  UsesMixins: '%{binding} %{must} usar mixins'
204
+ UsesNamedSelfReference: '%{binding} debería usar <code>%{keyword_Self}</code> en lugar de una referencia global'
204
205
  UsesNot: '%{binding} %{must} utilizar <code>%{keyword_Not}</code>'
205
206
  UsesObjectComposition: '%{binding} %{must} usar composición'
206
207
  UsesPatternMatching: '%{binding} %{must} utilizar pattern matching'
data/lib/locales/pt.yml CHANGED
@@ -145,7 +145,7 @@ pt:
145
145
  Instantiates_named: '%{binding} %{must} instantiate %{target}'
146
146
  Instantiates: '%{binding} %{must} instanciar objetos'
147
147
  IsLongCode: '%{binding} é muito longo. Tente delegar mais'
148
- JavaScript#UsesVarInsteadOfLet: '% {binding} deve usar <code>let</code> em vez de <code>var</code>'
148
+ JavaScript#UsesVarInsteadOfLet: '%{binding} deve usar <code>let</code> em vez de <code>var</code>'
149
149
  OverridesEqualOrHashButNotBoth: '%{binding} redefine os métodos <code>equals</code> ou <code>hash </code>, mas não ambos'
150
150
  Raises_except: '%{binding} %{must} lançar exceções diferentes de %{target}'
151
151
  Raises_like: '%{binding} %{must} lançar exceções semelhantes a %{target}'
@@ -175,8 +175,8 @@ pt:
175
175
  UsesComprehension: '%{binding} %{must} usar listas pelo entendimento'
176
176
  UsesConditional: '%{binding} %{must} usar conditional'
177
177
  UsesCut: '%{binding} usa o operador !, que é uma má prática'
178
- UsesDynamicPolymorphism: '%{binding} %{must} usar polimorfismo'
179
178
  UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
179
+ UsesDynamicPolymorphism: '%{binding} %{must} usar polimorfismo'
180
180
  UsesExceptionHandling: '%{binding} %{must} executar o tratamento de exceção'
181
181
  UsesExceptions: '%{binding} %{must} usar exceções'
182
182
  UsesFail: '%{binding} usa <code>%{keyword_Fail}</li>, o que é uma prática ruim'
@@ -192,6 +192,7 @@ pt:
192
192
  UsesLoop: '%{binding} %{must} usar um loop%{matching}'
193
193
  UsesMath: '%{binding} %{must} usar expressões matemáticas'
194
194
  UsesMixins: '%{binding} %{must} usar mixins'
195
+ UsesNamedSelfReference: '%{binding} deve usar <code>%{keyword_Self}</code> em vez de uma referência global'
195
196
  UsesNot: '%{binding} %{must} usar <code>%{keyword_Not}</code>'
196
197
  UsesObjectComposition: '%{binding} %{must} usar composição'
197
198
  UsesPatternMatching: '%{binding} %{must} usar o padrão de correspondência'
@@ -8,6 +8,7 @@ module Mulang::Expectation
8
8
 
9
9
  FUNCTIONAL_SMELLS = %w(
10
10
  HasRedundantGuards
11
+ HasRedundantLambda
11
12
  HasRedundantParameter
12
13
  ShouldUseOtherwise
13
14
  )
@@ -15,11 +16,12 @@ module Mulang::Expectation
15
16
  OBJECT_ORIENTED_SMELLS = %w(
16
17
  DoesNilTest
17
18
  DoesNullTest
19
+ DoesTypeTest
18
20
  HasTooManyMethods
19
21
  OverridesEqualOrHashButNotBoth
20
22
  ReturnsNil
21
23
  ReturnsNull
22
- DoesTypeTest
24
+ UsesNamedSelfReference
23
25
  )
24
26
 
25
27
  IMPERATIVE_SMELLS = %w(
@@ -32,6 +34,7 @@ module Mulang::Expectation
32
34
  EXPRESSIVENESS_SMELLS = %w(
33
35
  HasMisspelledBindings
34
36
  HasMisspelledIdentifiers
37
+ HasTooShortBindings
35
38
  HasTooShortIdentifiers
36
39
  HasWrongCaseBinding
37
40
  HasWrongCaseIdentifiers
@@ -46,10 +49,8 @@ module Mulang::Expectation
46
49
  HasEqualIfBranches
47
50
  HasLongParameterList
48
51
  HasRedundantBooleanComparison
49
- HasRedundantLocalVariableReturn
50
52
  HasRedundantIf
51
- HasRedundantLambda
52
- HasTooShortBindings
53
+ HasRedundantLocalVariableReturn
53
54
  HasUnreachableCode
54
55
  HasUsageTypos
55
56
  IsLongCode
data/lib/mulang/tokens.rb CHANGED
@@ -92,6 +92,7 @@ module Mulang
92
92
  keyword_ForEach: 'for',
93
93
  keyword_Interface: 'interface',
94
94
  keyword_Switch: 'switch',
95
+ keyword_Self: 'this',
95
96
  operator_And: '&amp;&amp;',
96
97
  operator_Divide: '/',
97
98
  operator_Equal: 'equal',
@@ -123,6 +124,7 @@ module Mulang
123
124
  keyword_If: 'if',
124
125
  keyword_Return: 'return',
125
126
  keyword_While: 'while',
127
+ keyword_Self: 'this',
126
128
  operator_And: '&amp;&amp;',
127
129
  operator_Divide: '/',
128
130
  operator_Equal: '===',
@@ -155,6 +157,7 @@ module Mulang
155
157
  keyword_If: 'if',
156
158
  keyword_Return: 'return',
157
159
  keyword_While: 'while',
160
+ keyword_Self: 'self',
158
161
  operator_And: 'and',
159
162
  operator_Divide: '/',
160
163
  operator_Equal: '==',
@@ -188,6 +191,7 @@ module Mulang
188
191
  keyword_ForEach: 'for',
189
192
  keyword_Include: 'include',
190
193
  keyword_Switch: 'case',
194
+ keyword_Self: 'self',
191
195
  operator_And: '&amp;&amp;',
192
196
  operator_Divide: '/',
193
197
  operator_Equal: '==',
@@ -220,6 +224,7 @@ module Mulang
220
224
  keyword_If: 'if',
221
225
  keyword_Return: 'return',
222
226
  keyword_While: 'while',
227
+ keyword_Self: 'this',
223
228
  operator_And: '&amp;&amp;',
224
229
  operator_Divide: '/',
225
230
  operator_Equal: '==',
@@ -1,4 +1,4 @@
1
1
  module Mulang
2
- VERSION = "6.0.4"
3
- MULANG_VERSION = "6.0.4"
2
+ VERSION = "6.0.5"
3
+ MULANG_VERSION = "6.0.5"
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.4
4
+ version: 6.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-04 00:00:00.000000000 Z
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core