mumukit-inspection 3.6.1 → 3.6.2

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: 1bb215d88c099d1f4c084eb43386cab8e6b0052fa2d81f068be5aa1540e32b86
4
- data.tar.gz: 06fdb5f7a573f24f22a103d4da7111bf5ab11e54a9a3a012f35c12c50d550ebe
3
+ metadata.gz: eee225cdc6402627f59ef3c3ee6b2836ca1ab689e62604fc24d19cae88f6aef9
4
+ data.tar.gz: 4db88cc5cfb767abf7a9032d093dcbdd4a3b67a4c579d799946379f6177e0176
5
5
  SHA512:
6
- metadata.gz: b07d8268f3705860b8539b21fc5f7faf6a777003a0bf1f1bae1baef8ef2f92105f8fcde2769082ed1ab73e845b7ebb43cb129e7db2251748aa8dce2524162de8
7
- data.tar.gz: d29e582cc95422f3017adc91a4aa3742e47bfdbdfda296a20f25fd6aaca97f621bb60d931669eae63da06163a26bfd7fb4e7488bdaebbce7e231d9d90032c956
6
+ metadata.gz: d85712bf42f4b77d4544faeefbe64e053faf791c248b3ea254b3023b8a1d3a0d5c15a08b8ad15454238b7ec7f1d01889a0bd06e3629f308b412775f179c98b0b
7
+ data.tar.gz: 21e049e9826a632e08b6c944423e804c03e00a59ed6000d38e5e3bbf9ab1e7b88118b2156170e646439c6b1c22e9181eaac8ad42c3abe8b8a5db815d51ecbbd3
data/lib/locales/en.yml CHANGED
@@ -102,6 +102,7 @@ en:
102
102
  HasAssignmentReturn: '%{binding} returns the result of an assignment'
103
103
  HasCodeDuplication: '%{binding} has code duplication'
104
104
  HasEmptyIfBranches: '%{binding} has empty <i>%{keyword_if}</i> branches'
105
+ HasLongParameterList: '%{binding} has too many parameters. You may be missing an abstraction.'
105
106
  HasMisspelledBindings: '%{binding} is misspelled'
106
107
  HasMisspelledIdentifiers: '%{binding} is misspelled'
107
108
  HasRedundantBooleanComparison: '%{binding} makes unnecesary boolean comparisons'
@@ -110,10 +111,13 @@ en:
110
111
  HasRedundantLambda: '%{binding} has unnecessary lambdas'
111
112
  HasRedundantLocalVariableReturn: '%{binding} has unnecesary local variables; please try returning the expression directly'
112
113
  HasRedundantParameter: '%{binding} has unnecessary parameters, that can be removed using point-free'
113
- HasRedundantReduction: '%{binding} uses <i>%{keyword_is}</i>, but it does not artihmetic.'
114
+ HasRedundantReduction: '%{binding} uses <i>%{keyword_is}</i>, but it does not artihmetic'
115
+ HasTooManyMethods: '%{binding} has too many methods'
114
116
  HasTooShortBindings: '%{binding} is a too short identifier'
115
- HasUnreachableCode: '%{binding} has unreachable code.'
117
+ HasTooShortIdentifiers: '%{binding} is a too short identifier'
118
+ HasUnreachableCode: '%{binding} has unreachable code'
116
119
  HasWrongCaseBindings: '%{binding} does not honor case conventions'
120
+ HasWrongCaseIdentifiers: '%{binding} does not honor case conventions'
117
121
  Implements_except: '%{binding} %{must} implement interfaces distinct from %{target}'
118
122
  Implements_like: '%{binding} %{must} implement interfaces like %{target}'
119
123
  Implements_named: '%{binding} %{must} implement %{target}'
@@ -127,6 +131,7 @@ en:
127
131
  Instantiates_named: '%{binding} %{must} instantiate %{target}'
128
132
  Instantiates: '%{binding} %{must} instantiate objects'
129
133
  IsLongCode: '%{binding} is too long'
134
+ OverridesEqualOrHashButNotBoth: '%{binding} overrides <i>equals</i> or <i>hash</i> methods, but not both'
130
135
  Raises_except: '%{binding} %{must} throw exceptions distinct from %{target}'
131
136
  Raises_like: '%{binding} %{must} throw exceptions like %{target}'
132
137
  Raises_named: '%{binding} %{must} throw %{target}'
data/lib/locales/es.yml CHANGED
@@ -98,14 +98,15 @@ es:
98
98
  DeclaresVariable_like: '%{binding} %{must} declarar una variable parecida a %{target}'
99
99
  DeclaresVariable_named: '%{binding} %{must} declarar una variable %{target}'
100
100
  DeclaresVariable: '%{binding} %{must} debe declarar variables'
101
- DiscardsExceptions: '%{binding} está ignorando exceptiones silenciosamiente.'
102
- DoesConsolePrint: '%{binding} está realizando impresiones por pantalla.'
101
+ DiscardsExceptions: '%{binding} está ignorando excepciones silenciosamiente'
102
+ DoesConsolePrint: '%{binding} está realizando impresiones por pantalla'
103
103
  DoesNilTest: '%{binding} hace comparaciones contra <i>%{keyword_null}</i>'
104
104
  DoesNullTest: '%{binding} hace comparaciones contra <i>%{keyword_null}</i>'
105
105
  DoesTypeTest: '%{binding} hace comparaciones contra strings'
106
106
  HasAssignmentReturn: '%{binding} devuelve el resultado de una asignación'
107
107
  HasCodeDuplication: '%{binding} tiene código repetido'
108
108
  HasEmptyIfBranches: '%{binding} tiene ramas de <i>%{keyword_if}</i> vacías'
109
+ HasLongParameterList: '%{binding} tiene demasiados parámetros. Te podría estar faltando una abstracción'
109
110
  HasMisspelledBindings: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
110
111
  HasMisspelledIdentifiers: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
111
112
  HasRedundantBooleanComparison: '%{binding} hace comparaciones booleanas innecesarias'
@@ -114,10 +115,11 @@ es:
114
115
  HasRedundantLambda: '%{binding} tiene lambdas innecesarias'
115
116
  HasRedundantLocalVariableReturn: '%{binding} usa variables locales innecesarias; podés retornar directamente la expresión'
116
117
  HasRedundantParameter: '%{binding} tiene parámetros innecesarios (se pueden eliminar mediante point-free)'
117
- HasRedundantReduction: '%{binding} usa <i>%{keyword_is}</i>, pero no realiza cálculos.'
118
+ HasRedundantReduction: '%{binding} usa <i>%{keyword_is}</i>, pero no realiza cálculos'
119
+ HasTooManyMethods: '%{binding} tiene demasiados métodos'
118
120
  HasTooShortBindings: '%{binding} es un identificador muy corto'
119
121
  HasTooShortIdentifiers: '%{binding} es un identificador muy corto'
120
- HasUnreachableCode: '%{binding} tiene código inalcanzable.'
122
+ HasUnreachableCode: '%{binding} tiene código inalcanzable'
121
123
  HasWrongCaseBindings: '%{binding} no respeta la convención de nombres'
122
124
  HasWrongCaseIdentifiers: '%{binding} no respeta la convención de nombres'
123
125
  Implements_except: '%{binding} %{must} implementar interfaces distintas de %{target}'
@@ -137,14 +139,15 @@ es:
137
139
  Instantiates_named: '%{binding} %{must} instanciar %{target}'
138
140
  Instantiates: '%{binding} %{must} instanciar objetos'
139
141
  IsLongCode: '%{binding} es muy largo. Tratá de delegar más'
142
+ OverridesEqualOrHashButNotBoth: '%{binding} redefine los métodos <i>equals</i> o <i>hash</i>, pero no ambos'
140
143
  Raises_except: '%{binding} %{must} lanzar excepciones diferentes a %{target}'
141
144
  Raises_like: '%{binding} %{must} lanzar excepciones parecidas a %{target}'
142
145
  Raises_named: '%{binding} %{must} lanzar %{target}'
143
- Raises: '%{binding} %{must} lanzar exceptiones'
146
+ Raises: '%{binding} %{must} lanzar excepciones'
144
147
  Rescues_except: '%{binding} %{must} capturar excepciones diferentes a %{target}'
145
148
  Rescues_like: '%{binding} %{must} capturar excepciones parecidas a %{target}'
146
149
  Rescues_named: '%{binding} %{must} capturar %{target}'
147
- Rescues: '%{binding} %{must} capturar exceptiones'
150
+ Rescues: '%{binding} %{must} capturar excepciones'
148
151
  ReturnsNil: '%{binding} retorna null, lo cual es una mala práctica'
149
152
  ReturnsNull: '%{binding} retorna null, lo cual es una mala práctica'
150
153
  SourceContains_named: 'la solución %{must} usar %{target}'
@@ -170,8 +173,8 @@ es:
170
173
  UsesCut: '%{binding} usa el operador !, lo cual es una mala práctica'
171
174
  UsesDyamicPolymorphism: '%{binding} %{must} usar polimorfismo'
172
175
  UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
173
- UsesExceptionHandling: '%{binding} %{must} realizar manejo de exceptiones'
174
- UsesExceptions: '%{binding} %{must} usar exceptiones'
176
+ UsesExceptionHandling: '%{binding} %{must} realizar manejo de excepciones'
177
+ UsesExceptions: '%{binding} %{must} usar excepciones'
175
178
  UsesFail: '%{binding} usa <i>%{keyword_fail}</li>, lo cual es una mala práctica'
176
179
  UsesFindall: '%{binding} %{must} utilizar <i>%{keyword_findall}</i>'
177
180
  UsesForall: '%{binding} %{must} utilizar <i>%{keyword_forall}</i>'
data/lib/locales/pt.yml CHANGED
@@ -98,14 +98,15 @@ pt:
98
98
  DeclaresVariable_like: '%{binding} %{must} declarar uma variável semelhante a %{target}'
99
99
  DeclaresVariable_named: '%{binding} %{must} declarar uma variável %{target}'
100
100
  DeclaresVariable: '%{binding} %{must} deve declarar variáveis'
101
- DiscardsExceptions: '%{binding} está silenciosamente ignorando exceções.'
102
- DoesConsolePrint: '%{binding} está fazendo impressões na tela.'
101
+ DiscardsExceptions: '%{binding} está silenciosamente ignorando exceções'
102
+ DoesConsolePrint: '%{binding} está fazendo impressões na tela'
103
103
  DoesNilTest: '%{binding} faz comparações contra <i>%{keyword_null}</i>'
104
104
  DoesNullTest: '%{binding} faz comparações contra <i>%{keyword_null}</i>'
105
105
  DoesTypeTest: '%{binding} faz comparações contra strings'
106
106
  HasAssignmentReturn: '%{binding} retorna o resultado de uma tarefa'
107
107
  HasCodeDuplication: '%{binding} tem código repetido'
108
108
  HasEmptyIfBranches: '%{binding} tem vazio <i>%{keyword_if}</i> ramos'
109
+ HasLongParameterList: '%{binding} tem muitos parâmetros. Você pode estar perdendo uma abstração.'
109
110
  HasMisspelledBindings: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
110
111
  HasMisspelledIdentifiers: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
111
112
  HasRedundantBooleanComparison: '%{binding} faz comparações booleanas desnecessárias'
@@ -114,11 +115,11 @@ pt:
114
115
  HasRedundantLambda: '%{binding} possui lambdas desnecessários'
115
116
  HasRedundantLocalVariableReturn: '%{binding} usa variáveis ​​locais desnecessárias; você pode retornar a expressão diretamente'
116
117
  HasRedundantParameter: '%{binding} possui parâmetros desnecessários (pode ser removido por ponto-livre)'
117
- HasRedundantReduction: '%{binding} usa <i>%{keyword_is}</i>, mas não executa cálculos.'
118
+ HasRedundantReduction: '%{binding} usa <i>%{keyword_is}</i>, mas não executa cálculos'
119
+ HasTooManyMethods: '%{binding} tem muitos métodos'
118
120
  HasTooShortBindings: '%{binding} é um identificador muito curto'
119
- HasTooShortIdentifiers: '%{binding} é um identificador muito curto'
120
- HasTooShortIdentifiers: '%{binding} é um identificador muito curto'
121
- HasUnreachableCode: '%{binding} tem código inacessível.'
121
+ HasTooShortIdentifiers: '%{binding} é um identificador muito curto'
122
+ HasUnreachableCode: '%{binding} tem código inacessível'
122
123
  HasWrongCaseBindings: '%{binding} não respeita a convenção de nomenclatura'
123
124
  HasWrongCaseIdentifiers: '%{binding} não respeita a convenção de nomenclatura'
124
125
  Implements_except: '%{binding} %{must} implementar interfaces diferentes de %{target}'
@@ -134,6 +135,7 @@ pt:
134
135
  Instantiates_named: '%{binding} %{must} instantiate %{target}'
135
136
  Instantiates: '%{binding} %{must} instanciar objetos'
136
137
  IsLongCode: '%{binding} é muito longo. Tente delegar mais'
138
+ OverridesEqualOrHashButNotBoth: '%{binding} redefine os métodos <i>equals</i> ou <i>hash </i>, mas não ambos'
137
139
  Raises_except: '%{binding} %{must} lançar exceções diferentes de %{target}'
138
140
  Raises_like: '%{binding} %{must} lançar exceções semelhantes a %{target}'
139
141
  Raises_named: '%{binding} %{must} launch %{target}'
@@ -1,11 +1,13 @@
1
1
  class Mumukit::Inspection::Expectation
2
2
 
3
- SMELLS = %w(DiscardsExceptions DoesConsolePrint DoesNullTest DoesTypeTest
4
- HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasMisspelledIdentifiers
3
+ SMELLS = %w(DiscardsExceptions DoesConsolePrint DoesNilTest DoesNullTest DoesTypeTest
4
+ HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasLongParameterList
5
+ HasMisspelledBindings HasMisspelledIdentifiers
5
6
  HasRedundantBooleanComparison HasRedundantGuards HasRedundantIf
6
7
  HasRedundantLambda HasRedundantLocalVariableReturn HasRedundantParameter
7
- HasRedundantReduction HasTooShortIdentifiers HasUnreachableCode
8
- HasWrongCaseIdentifiers IsLongCode ReturnsNull UsesCut UsesFail UsesUnificationOperator)
8
+ HasRedundantReduction HasTooManyMethods HasTooShortBindings HasTooShortIdentifiers HasUnreachableCode
9
+ HasWrongCaseBinding HasWrongCaseIdentifiers IsLongCode OverridesEqualOrHashButNotBoth
10
+ ReturnsNil ReturnsNull UsesCut UsesFail UsesUnificationOperator)
9
11
 
10
12
  attr_accessor :binding, :inspection
11
13
 
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  class Inspection
3
- VERSION = '3.6.1'
3
+ VERSION = '3.6.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-inspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-03 00:00:00.000000000 Z
11
+ date: 2019-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-core
@@ -120,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.7.8
123
+ rubygems_version: 3.0.3
125
124
  signing_key:
126
125
  specification_version: 4
127
126
  summary: Minimal library for parsing Mumuki inspection language