mulang 5.1.0.2 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mulang +0 -0
- data/lib/locales/en.yml +2 -0
- data/lib/locales/es.yml +2 -0
- data/lib/locales/pt.yml +2 -0
- data/lib/mulang/expectation.rb +2 -2
- data/lib/mulang/version.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f2532a78fd09450660accc92e937121b5b10cfb3e72abebd27182fadd52eea
|
4
|
+
data.tar.gz: 9673dafb8b5643b692649116dcb816ef068128c917c54923a54dc19db2a98268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43ac61e3aacf5d5caef6ac737c4d99cfd512007dae3d8effd7e6a8ad73b01281717bcb660a0d0fb6c5fa37d4c30753b6da7d48a5aae12f07f0fb98f9bac52639
|
7
|
+
data.tar.gz: 735ec1621b40a3241120274b920e6d28cac2c8e1045a3afdb9b6466f0cc9ea3efe81b3251ffb894814b1a330d6340ac6f0b1a09eb7a5d34c6a0bd23ce0c7f1c1
|
data/bin/mulang
CHANGED
Binary file
|
data/lib/locales/en.yml
CHANGED
@@ -105,6 +105,7 @@ en:
|
|
105
105
|
HasAssignmentReturn: '%{binding} returns the result of an assignment'
|
106
106
|
HasCodeDuplication: '%{binding} has code duplication'
|
107
107
|
HasEmptyIfBranches: '%{binding} has empty <i>%{keyword_if}</i> branches'
|
108
|
+
HasEmptyRepeat: '%{binding} has empty <i>%{keyword_repeat}</i>'
|
108
109
|
HasLongParameterList: '%{binding} has too many parameters. You may be missing an abstraction.'
|
109
110
|
HasMisspelledBindings: '%{binding} is misspelled'
|
110
111
|
HasMisspelledIdentifiers: '%{binding} is misspelled'
|
@@ -143,6 +144,7 @@ en:
|
|
143
144
|
Returns: '%{binding} %{must} return%{matching}'
|
144
145
|
ReturnsNil: '%{binding} retuns <i>%{keyword_null}</i>, which is a bad practice'
|
145
146
|
ReturnsNull: '%{binding} retuns <i>%{keyword_null}</i>, which is a bad practice'
|
147
|
+
ShouldInvertIfCondition: '%{binding} should invert <i>%{keyword_if}</i> condition and swap branches'
|
146
148
|
TypesAs_named: '%{binding} %{must} type as %{target}'
|
147
149
|
TypesAs: '%{binding} %{must} type'
|
148
150
|
TypesParameterAs_except: '%{binding} %{must} type parameters with a type distinct from %{target}'
|
data/lib/locales/es.yml
CHANGED
@@ -109,6 +109,7 @@ es:
|
|
109
109
|
HasAssignmentReturn: '%{binding} devuelve el resultado de una asignación'
|
110
110
|
HasCodeDuplication: '%{binding} tiene código repetido'
|
111
111
|
HasEmptyIfBranches: '%{binding} tiene ramas de <i>%{keyword_if}</i> vacías'
|
112
|
+
HasEmptyRepeat: '%{binding} tiene un <i>%{keyword_repeat}</i> vacío'
|
112
113
|
HasLongParameterList: '%{binding} tiene demasiados parámetros. Te podría estar faltando una abstracción'
|
113
114
|
HasMisspelledBindings: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
|
114
115
|
HasMisspelledIdentifiers: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
|
@@ -155,6 +156,7 @@ es:
|
|
155
156
|
Returns: '%{binding} %{must} retornar%{matching}'
|
156
157
|
ReturnsNil: '%{binding} retorna null, lo cual es una mala práctica'
|
157
158
|
ReturnsNull: '%{binding} retorna null, lo cual es una mala práctica'
|
159
|
+
ShouldInvertIfCondition: '%{binding} debería invertir la condición del <i>%{keyword_if}</i> e intercambiar las ramas'
|
158
160
|
TypesAs_named: '%{binding} %{must} ser de tipo %{target}'
|
159
161
|
TypesAs: '%{binding} %{must} tipar'
|
160
162
|
TypesParameterAs_except: '%{binding} %{must} tipar parámetros con un tipo diferente a %{target}'
|
data/lib/locales/pt.yml
CHANGED
@@ -109,6 +109,7 @@ pt:
|
|
109
109
|
HasAssignmentReturn: '%{binding} retorna o resultado de uma tarefa'
|
110
110
|
HasCodeDuplication: '%{binding} tem código repetido'
|
111
111
|
HasEmptyIfBranches: '%{binding} tem vazio <i>%{keyword_if}</i> ramos'
|
112
|
+
HasEmptyRepeat: '%{binding} tem um <i>%{keyword_repeat}</i> vazio'
|
112
113
|
HasLongParameterList: '%{binding} tem muitos parâmetros. Você pode estar perdendo uma abstração.'
|
113
114
|
HasMisspelledBindings: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
|
114
115
|
HasMisspelledIdentifiers: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
|
@@ -143,6 +144,7 @@ pt:
|
|
143
144
|
Raises_except: '%{binding} %{must} lançar exceções diferentes de %{target}'
|
144
145
|
Raises_like: '%{binding} %{must} lançar exceções semelhantes a %{target}'
|
145
146
|
Raises_named: '%{binding} %{must} launch %{target}'
|
147
|
+
ShouldInvertIfCondition: '%{binding} deve inverter a condição da <i>%{keyword_if}</i> e trocar as ramos'
|
146
148
|
Raises: '%{binding} %{must} lançar exceções'
|
147
149
|
Rescues_except: '%{binding} %{must} capturar exceções que não sejam %{target}'
|
148
150
|
Rescues_like: '%{binding} %{must} capturar exceções semelhantes a %{target}'
|
data/lib/mulang/expectation.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module Mulang::Expectation
|
2
2
|
SMELLS = %w(DiscardsExceptions DoesConsolePrint DoesNilTest DoesNullTest DoesTypeTest
|
3
|
-
HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasRedundantRepeat HasLongParameterList
|
3
|
+
HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasEmptyRepeat HasRedundantRepeat HasLongParameterList
|
4
4
|
HasMisspelledBindings HasMisspelledIdentifiers
|
5
5
|
HasRedundantBooleanComparison HasRedundantGuards HasRedundantIf
|
6
6
|
HasRedundantLambda HasRedundantLocalVariableReturn HasRedundantParameter
|
7
7
|
HasRedundantReduction HasTooManyMethods HasTooShortBindings HasTooShortIdentifiers HasUnreachableCode
|
8
8
|
HasWrongCaseBinding HasWrongCaseIdentifiers IsLongCode OverridesEqualOrHashButNotBoth
|
9
|
-
ReturnsNil ReturnsNull UsesCut UsesFail UsesUnificationOperator)
|
9
|
+
ReturnsNil ReturnsNull ShouldInvertIfCondition UsesCut UsesFail UsesUnificationOperator)
|
10
10
|
|
11
11
|
def self.guess_type(expectation)
|
12
12
|
if expectation[:binding] == '<<custom>>'
|
data/lib/mulang/version.rb
CHANGED
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: 5.
|
4
|
+
version: 5.2.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:
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-core
|
@@ -124,7 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
|
127
|
+
rubyforge_project:
|
128
|
+
rubygems_version: 2.7.7
|
128
129
|
signing_key:
|
129
130
|
specification_version: 4
|
130
131
|
summary: Gem wrapper for mulang tool
|