mumukit-inspection 3.6.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/inspection.rb +33 -32
- data/lib/mumukit/inspection/version.rb +2 -2
- data/lib/mumukit/locales/en.yml +18 -0
- data/lib/mumukit/locales/es.yml +18 -0
- data/lib/mumukit/locales/pt.yml +18 -0
- metadata +53 -29
- data/lib/locales/en.yml +0 -166
- data/lib/locales/es.yml +0 -184
- data/lib/locales/pt.yml +0 -185
- data/lib/mumukit/inspection/expectation.rb +0 -104
- data/lib/mumukit/inspection/i18n.rb +0 -53
- data/lib/mumukit/inspection/target.rb +0 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a602b1e33e05bc253bba3d5b77ee792553e86d75ae15f9dd3b8254bd27edca2
|
4
|
+
data.tar.gz: a9683da63ada1efdd03b79c972848bd90cdc806c670d84e7852dc1355e8676b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be6a7082c1e720da7e4befdd40bcc14b0fb455192d19bf8f5344e601ebc01d992a66bf6483f4dde663fbbf99de760784135b0e858cca08f0cc10c572de5aaa0
|
7
|
+
data.tar.gz: dede2e7efb6d2ac13b3c6193f081e85a11ddb552252d3f67bfaabeea60d2a4bee8add48f70bf27a8fcd7487ae4475f061f7b13cbeee00b4cd4420c139408606f
|
data/lib/mumukit/inspection.rb
CHANGED
@@ -1,47 +1,48 @@
|
|
1
|
-
require '
|
1
|
+
require 'mulang'
|
2
2
|
|
3
|
-
I18n.load_translations_path File.join(__dir__, '
|
4
|
-
|
5
|
-
require_relative '../mumukit/inspection/version'
|
3
|
+
I18n.load_translations_path File.join(__dir__, 'locales', '*.yml')
|
6
4
|
|
7
5
|
module Mumukit
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
module Inspection
|
7
|
+
module Extension
|
8
|
+
def new_inspection(match)
|
9
|
+
if match
|
10
|
+
Mulang::Inspection.new match['type'],
|
11
|
+
Mulang::Inspection::Target.new(:unknown, match['target']),
|
12
|
+
negated: match['negation'].present?,
|
13
|
+
i18n_namespace: 'mumukit.inspection'
|
14
|
+
end
|
15
|
+
end
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
end
|
18
|
+
module Css
|
19
|
+
extend Mumukit::Inspection::Extension
|
21
20
|
|
22
|
-
|
23
|
-
negated ? 'Not:' : nil
|
24
|
-
end
|
21
|
+
REGEXP = /^(?<negation>Not:)?(?<type>DeclaresStyle|DeclaresTag):(?<target>.*)$/
|
25
22
|
|
26
|
-
|
27
|
-
|
23
|
+
def self.parse(inspection_s)
|
24
|
+
new_inspection REGEXP.match(inspection_s)
|
25
|
+
end
|
28
26
|
end
|
29
27
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
28
|
+
module Html
|
29
|
+
extend Mumukit::Inspection::Extension
|
30
|
+
|
31
|
+
REGEXP = /^(?<negation>Not:)?(?<type>DeclaresAttribute):(?<target>(href|src)=.*)$/
|
32
|
+
|
33
|
+
def self.parse(inspection_s)
|
34
|
+
new_inspection REGEXP.match(inspection_s)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
module Source
|
39
|
+
extend Mumukit::Inspection::Extension
|
40
|
+
|
41
|
+
REGEXP = /^(?<negation>Not:)?(?<type>SourceRepeats|SourceContains|SourceEquals|SourceEqualsIgnoreSpaces):(?<target>.*)$/
|
42
|
+
|
43
|
+
def self.parse(inspection_s)
|
44
|
+
new_inspection REGEXP.match(inspection_s)
|
45
|
+
end
|
41
46
|
end
|
42
47
|
end
|
43
48
|
end
|
44
|
-
|
45
|
-
require_relative '../mumukit/inspection/target'
|
46
|
-
require_relative '../mumukit/inspection/expectation'
|
47
|
-
require_relative '../mumukit/inspection/i18n'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
mumukit:
|
4
|
+
inspection:
|
5
|
+
DeclaresAttribute_named: '%{binding} %{must} declare an HTML attribute %{target}'
|
6
|
+
DeclaresAttribute: '%{binding} %{must} declare HTML attributes'
|
7
|
+
DeclaresStyle_except: '%{binding} %{must} declare style distinct from %{target}'
|
8
|
+
DeclaresStyle_like: '%{binding} %{must} declare a style similar to %{target}'
|
9
|
+
DeclaresStyle_named: '%{binding} %{must} declare a style %{target}'
|
10
|
+
DeclaresStyle: '%{binding} %{must} declare styles'
|
11
|
+
DeclaresTag_except: '%{binding} %{must} declare a tag distinct from %{target}'
|
12
|
+
DeclaresTag_like: '%{binding} %{must} declare a tag similar to %{target}'
|
13
|
+
DeclaresTag_named: '%{binding} %{must} declare a tag %{target}'
|
14
|
+
DeclaresTag: '%{binding} %{must} declare a tag'
|
15
|
+
SourceContains_named: 'solution %{must} use %{target}'
|
16
|
+
SourceEquals_named: 'solution %{must} be equal to %{target}'
|
17
|
+
SourceEqualsIgnoreSpaces_named: 'solution %{must} be equal to %{target}'
|
18
|
+
SourceRepeats_named: 'solution %{must} use %{target} more than one time'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
es:
|
3
|
+
mumukit:
|
4
|
+
inspection:
|
5
|
+
DeclaresAttribute_named: '%{binding} %{must} declarar un atributo HTML %{target}'
|
6
|
+
DeclaresAttribute: '%{binding} %{must} declarar atributos HTML'
|
7
|
+
DeclaresStyle_except: '%{binding} %{must} declarar un estilo diferente a %{target}'
|
8
|
+
DeclaresStyle_like: '%{binding} %{must} declarar un estilo parecido a %{target}'
|
9
|
+
DeclaresStyle_named: '%{binding} %{must} declarar un estilo %{target}'
|
10
|
+
DeclaresStyle: '%{binding} %{must} declarar un estilo'
|
11
|
+
DeclaresTag_except: '%{binding} %{must} declarar un elemento diferente a %{target}'
|
12
|
+
DeclaresTag_like: '%{binding} %{must} declarar un elemento parecido a %{target}'
|
13
|
+
DeclaresTag_named: '%{binding} %{must} declarar un elemento %{target}'
|
14
|
+
DeclaresTag: '%{binding} %{must} declarar un elemento'
|
15
|
+
SourceContains_named: 'la solución %{must} usar %{target}'
|
16
|
+
SourceEquals_named: 'la solución %{must} ser igual a %{target}'
|
17
|
+
SourceEqualsIgnoreSpaces_named: 'la solución %{must} ser igual a %{target}'
|
18
|
+
SourceRepeats_named: 'la solución %{must} usar %{target} más de una vez'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
pt:
|
3
|
+
mumukit:
|
4
|
+
inspection:
|
5
|
+
DeclaresAttribute_named: '%{binding} %{must} declarar um atributo HTML %{target}'
|
6
|
+
DeclaresAttribute: '%{binding} %{must} declarar atributos HTML'
|
7
|
+
DeclaresStyle_except: '%{binding} %{must} declarar um estilo diferentes de %{target}'
|
8
|
+
DeclaresStyle_like: '%{binding} %{must} declarar um estilo semelhante a %{target}'
|
9
|
+
DeclaresStyle_named: '%{binding} %{must} declarar um estilo %{target}'
|
10
|
+
DeclaresStyle: '%{binding} %{must} declarar um estilo'
|
11
|
+
DeclaresTag_except: '%{binding} %{must} declarar uma etiqueta diferente de %{target}'
|
12
|
+
DeclaresTag_like: '%{binding} %{must} declarar uma etiqueta similar a %{target}'
|
13
|
+
DeclaresTag_named: '%{binding} %{must} declarar uma etiqueta %{target}'
|
14
|
+
DeclaresTag: '%{binding} %{must} declarar uma etiqueta'
|
15
|
+
SourceContains_named: 'a solução %{must} usar %{target}'
|
16
|
+
SourceEquals_named: 'a solução %{must} ser igual a %{target}'
|
17
|
+
SourceEqualsIgnoreSpaces_named: 'a solução %{must} ser igual a %{target}'
|
18
|
+
SourceRepeats_named: 'a solução %{must} usar %{target} mais de uma vez'
|
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-inspection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
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:
|
11
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '1.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2'
|
@@ -24,68 +24,96 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0
|
29
|
+
version: '1.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: mulang
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '6.0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '6.0'
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
48
|
name: bundler
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
36
50
|
requirements:
|
37
51
|
- - "~>"
|
38
52
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
53
|
+
version: '2.0'
|
40
54
|
type: :development
|
41
55
|
prerelease: false
|
42
56
|
version_requirements: !ruby/object:Gem::Requirement
|
43
57
|
requirements:
|
44
58
|
- - "~>"
|
45
59
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
60
|
+
version: '2.0'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
62
|
+
name: codeclimate-test-reporter
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: activesupport
|
49
77
|
requirement: !ruby/object:Gem::Requirement
|
50
78
|
requirements:
|
51
79
|
- - "~>"
|
52
80
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
81
|
+
version: '5.0'
|
54
82
|
type: :development
|
55
83
|
prerelease: false
|
56
84
|
version_requirements: !ruby/object:Gem::Requirement
|
57
85
|
requirements:
|
58
86
|
- - "~>"
|
59
87
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
88
|
+
version: '5.0'
|
61
89
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
90
|
+
name: rake
|
63
91
|
requirement: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
|
-
- -
|
93
|
+
- - "~>"
|
66
94
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
95
|
+
version: '12.3'
|
68
96
|
type: :development
|
69
97
|
prerelease: false
|
70
98
|
version_requirements: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
|
-
- -
|
100
|
+
- - "~>"
|
73
101
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
102
|
+
version: '12.3'
|
75
103
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
104
|
+
name: rspec
|
77
105
|
requirement: !ruby/object:Gem::Requirement
|
78
106
|
requirements:
|
79
|
-
- - "
|
107
|
+
- - "~>"
|
80
108
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
109
|
+
version: '3.0'
|
82
110
|
type: :development
|
83
111
|
prerelease: false
|
84
112
|
version_requirements: !ruby/object:Gem::Requirement
|
85
113
|
requirements:
|
86
|
-
- - "
|
114
|
+
- - "~>"
|
87
115
|
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
116
|
+
version: '3.0'
|
89
117
|
description:
|
90
118
|
email:
|
91
119
|
- flbulgarelli@yahoo.com.ar
|
@@ -93,14 +121,11 @@ executables: []
|
|
93
121
|
extensions: []
|
94
122
|
extra_rdoc_files: []
|
95
123
|
files:
|
96
|
-
- lib/locales/en.yml
|
97
|
-
- lib/locales/es.yml
|
98
|
-
- lib/locales/pt.yml
|
99
124
|
- lib/mumukit/inspection.rb
|
100
|
-
- lib/mumukit/inspection/expectation.rb
|
101
|
-
- lib/mumukit/inspection/i18n.rb
|
102
|
-
- lib/mumukit/inspection/target.rb
|
103
125
|
- lib/mumukit/inspection/version.rb
|
126
|
+
- lib/mumukit/locales/en.yml
|
127
|
+
- lib/mumukit/locales/es.yml
|
128
|
+
- lib/mumukit/locales/pt.yml
|
104
129
|
homepage: ''
|
105
130
|
licenses:
|
106
131
|
- MIT
|
@@ -120,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
145
|
- !ruby/object:Gem::Version
|
121
146
|
version: '0'
|
122
147
|
requirements: []
|
123
|
-
|
124
|
-
rubygems_version: 2.7.8
|
148
|
+
rubygems_version: 3.0.3
|
125
149
|
signing_key:
|
126
150
|
specification_version: 4
|
127
151
|
summary: Minimal library for parsing Mumuki inspection language
|
data/lib/locales/en.yml
DELETED
@@ -1,166 +0,0 @@
|
|
1
|
-
---
|
2
|
-
en:
|
3
|
-
expectation_Assigns_except: '%{binding} %{must} assign something distinct from %{target}'
|
4
|
-
expectation_Assigns_like: '%{binding} %{must} assign something similar to %{target}'
|
5
|
-
expectation_Assigns_named: '%{binding} %{must} assign %{target}'
|
6
|
-
expectation_Assigns: '%{binding} %{must} perform assignments'
|
7
|
-
expectation_Calls_except: '%{binding} %{must} delegate to something distinct from %{target}'
|
8
|
-
expectation_Calls_like: '%{binding} %{must} delegate to something similar to %{target}'
|
9
|
-
expectation_Calls_named: '%{binding} %{must} use %{target}'
|
10
|
-
expectation_Calls: '%{binding} %{must} delegate'
|
11
|
-
expectation_Declares_except: '%{binding} %{must} contain declarations distinct from %{target}'
|
12
|
-
expectation_Declares_like: '%{binding} %{must} declare an identifier similar to %{target}'
|
13
|
-
expectation_Declares_named: '%{binding} %{must} declare %{target}'
|
14
|
-
expectation_Declares: '%{binding} %{must} contain declarations'
|
15
|
-
expectation_DeclaresAttribute_except: '%{binding} %{must} declare attributes distinct from %{target}'
|
16
|
-
expectation_DeclaresAttribute_like: '%{binding} %{must} declare an attribute similar to %{target}'
|
17
|
-
expectation_DeclaresAttribute_named: '%{binding} %{must} declare an attribute %{target}'
|
18
|
-
expectation_DeclaresAttribute: '%{binding} %{must} declare attributes'
|
19
|
-
expectation_DeclaresClass_except: '%{binding} %{must} declare classes distinct from %{target}'
|
20
|
-
expectation_DeclaresClass_like: '%{binding} %{must} declare a class similar to %{target}'
|
21
|
-
expectation_DeclaresClass_named: '%{binding} %{must} declare a class %{target}'
|
22
|
-
expectation_DeclaresClass: '%{binding} %{must} declare classes'
|
23
|
-
expectation_DeclaresComputation_except: '%{binding} %{must} declare computations distinct from %{target}'
|
24
|
-
expectation_DeclaresComputation_like: '%{binding} %{must} declare a computation similar to %{target}'
|
25
|
-
expectation_DeclaresComputation_named: '%{binding} %{must} declare a computation %{target}'
|
26
|
-
expectation_DeclaresComputation: '%{binding} %{must} declare computations'
|
27
|
-
expectation_DeclaresComputationWithArity0_named: '%{target} %{must} have zero parameters'
|
28
|
-
expectation_DeclaresComputationWithArity1_named: '%{target} %{must} have one parameter'
|
29
|
-
expectation_DeclaresComputationWithArity2_named: '%{target} %{must} have 2 parameters'
|
30
|
-
expectation_DeclaresComputationWithArity3_named: '%{target} %{must} have 3 parameters'
|
31
|
-
expectation_DeclaresComputationWithArity4_named: '%{target} %{must} have 4 parameters'
|
32
|
-
expectation_DeclaresComputationWithArity5_named: '%{target} %{must} have 5 parameters'
|
33
|
-
expectation_DeclaresEntryPoint: '%{binding} %{must} declare an entry point'
|
34
|
-
expectation_DeclaresEnumeration_except: '%{binding} %{must} declare enumerations distinct from %{target}'
|
35
|
-
expectation_DeclaresEnumeration_like: '%{binding} %{must} declare an enumeration like %{target}'
|
36
|
-
expectation_DeclaresEnumeration_named: '%{binding} %{must} declare an enumeration %{target}'
|
37
|
-
expectation_DeclaresEnumeration: '%{binding} %{must} declare enumerations'
|
38
|
-
expectation_DeclaresFact_except: '%{binding} %{must} declare facts distinct from %{target}'
|
39
|
-
expectation_DeclaresFact_like: '%{binding} %{must} declare a fact similar to %{target}'
|
40
|
-
expectation_DeclaresFact_named: '%{binding} %{must} declare a fact %{target}'
|
41
|
-
expectation_DeclaresFact: '%{binding} %{must} declare facts'
|
42
|
-
expectation_DeclaresFunction_except: '%{binding} %{must} declare functions distinct from %{target}'
|
43
|
-
expectation_DeclaresFunction_like: '%{binding} %{must} declare a function similar to %{target}'
|
44
|
-
expectation_DeclaresFunction_named: '%{binding} %{must} declare a function %{target}'
|
45
|
-
expectation_DeclaresFunction: '%{binding} %{must} debe declare functions'
|
46
|
-
expectation_DeclaresInterface_except: '%{binding} %{must} declare interfaces distinct from %{target}'
|
47
|
-
expectation_DeclaresInterface_like: '%{binding} %{must} declare an interface like %{target}'
|
48
|
-
expectation_DeclaresInterface_named: '%{binding} %{must} declare an interface %{target}'
|
49
|
-
expectation_DeclaresInterface: '%{binding} %{must} declare interfaces'
|
50
|
-
expectation_DeclaresMethod_except: '%{binding} %{must} declare methods distinct from %{target}'
|
51
|
-
expectation_DeclaresMethod_like: '%{binding} %{must} declare a method similar to %{target}'
|
52
|
-
expectation_DeclaresMethod_named: '%{binding} %{must} declare a method %{target}'
|
53
|
-
expectation_DeclaresMethod: '%{binding} %{must} declare methods'
|
54
|
-
expectation_DeclaresObject_except: '%{binding} %{must} declare objects distinct from %{target}'
|
55
|
-
expectation_DeclaresObject_like: '%{binding} %{must} declare an object similar to %{target}'
|
56
|
-
expectation_DeclaresObject_named: '%{binding} %{must} declare an object %{target}'
|
57
|
-
expectation_DeclaresObject: '%{binding} %{must} declare objects'
|
58
|
-
expectation_DeclaresPredicate_except: '%{binding} %{must} declare a predicate distinct from %{target}'
|
59
|
-
expectation_DeclaresPredicate_like: '%{binding} %{must} declare a predicate similar to %{target}'
|
60
|
-
expectation_DeclaresPredicate_named: '%{binding} %{must} declare predicates %{target}'
|
61
|
-
expectation_DeclaresPredicate: '%{binding} %{must} declare predicates'
|
62
|
-
expectation_DeclaresProcedure_except: '%{binding} %{must} declare procedures distinct from %{target}'
|
63
|
-
expectation_DeclaresProcedure_like: '%{binding} %{must} declare a procedure similar to %{target}'
|
64
|
-
expectation_DeclaresProcedure_named: '%{binding} %{must} declare a procedure %{target}'
|
65
|
-
expectation_DeclaresProcedure: '%{binding} %{must} declare procedures'
|
66
|
-
expectation_DeclaresRecursively_named: '%{target} %{must} declared recursively'
|
67
|
-
expectation_DeclaresRule_except: '%{binding} %{must} declare rules distinct from %{target}'
|
68
|
-
expectation_DeclaresRule_like: '%{binding} %{must} declare a rule similar to %{target}'
|
69
|
-
expectation_DeclaresRule_named: '%{binding} %{must} declare a rule %{target}'
|
70
|
-
expectation_DeclaresRule: '%{binding} %{must} debe declare rules'
|
71
|
-
expectation_DeclaresStyles_except: '%{binding} %{must} declare style distinct from %{target}'
|
72
|
-
expectation_DeclaresStyles_like: '%{binding} %{must} declare a style similar to %{target}'
|
73
|
-
expectation_DeclaresStyles_named: '%{binding} %{must} declare a style %{target}'
|
74
|
-
expectation_DeclaresStyles: '%{binding} %{must} declare styles'
|
75
|
-
expectation_DeclaresTag_except: '%{binding} %{must} declare a tag distinct from %{target}'
|
76
|
-
expectation_DeclaresTag_like: '%{binding} %{must} declare a tag similar to %{target}'
|
77
|
-
expectation_DeclaresTag_named: '%{binding} %{must} declare a tag %{target}'
|
78
|
-
expectation_DeclaresTag: '%{binding} %{must} declare a tag'
|
79
|
-
expectation_DeclaresTypeAlias_except: '%{binding} %{must} declare type aliases distinct from %{target}'
|
80
|
-
expectation_DeclaresTypeAlias_like: '%{binding} %{must} declare a type alias similar to %{target}'
|
81
|
-
expectation_DeclaresTypeAlias_named: '%{binding} %{must} declare a type alias %{target}'
|
82
|
-
expectation_DeclaresTypeAlias: '%{binding} %{must} declare type aliases'
|
83
|
-
expectation_DeclaresTypeSignature_except: '%{binding} %{must} declare a type signature distinct from %{target}'
|
84
|
-
expectation_DeclaresTypeSignature_like: '%{binding} %{must} declare a type signature for something like %{target}'
|
85
|
-
expectation_DeclaresTypeSignature_named: '%{binding} %{must} declare a type signature %{target}'
|
86
|
-
expectation_DeclaresTypeSignature: '%{binding} %{must} decarar type signatures'
|
87
|
-
expectation_DeclaresVariable_except: '%{binding} %{must} declare variables distinct from %{target}'
|
88
|
-
expectation_DeclaresVariable_like: '%{binding} %{must} declare a variable similar to %{target}'
|
89
|
-
expectation_DeclaresVariable_named: '%{binding} %{must} declare a variable %{target}'
|
90
|
-
expectation_DeclaresVariable: '%{binding} %{must} debe declare variables'
|
91
|
-
expectation_DiscardsExceptions: '%{binding} is ignoring exceptions silently'
|
92
|
-
expectation_DoesConsolePrint: '%{binding} is printing to the console'
|
93
|
-
expectation_DoesNilTest: '%{binding} does <i>%{keyword_null}</i> tests'
|
94
|
-
expectation_DoesNullTest: '%{binding} does <i>%{keyword_null}</i> tests'
|
95
|
-
expectation_DoesTypeTest: '%{binding} string type tests'
|
96
|
-
expectation_HasAssignmentReturn: '%{binding} returns the result of an assignment'
|
97
|
-
expectation_HasCodeDuplication: '%{binding} has code duplication'
|
98
|
-
expectation_HasEmptyIfBranches: '%{binding} has empty <i>%{keyword_if}</i> branches'
|
99
|
-
expectation_HasMisspelledBindings: '%{binding} is misspelled'
|
100
|
-
expectation_HasMisspelledIdentifiers: '%{binding} is misspelled'
|
101
|
-
expectation_HasRedundantBooleanComparison: '%{binding} makes unnecesary boolean comparisons'
|
102
|
-
expectation_HasRedundantGuards: '%{binding} has unnecessary guards'
|
103
|
-
expectation_HasRedundantIf: '%{binding} has unnecessary <i>%{keyword_if}</i>s'
|
104
|
-
expectation_HasRedundantLambda: '%{binding} has unnecessary lambdas'
|
105
|
-
expectation_HasRedundantLocalVariableReturn: '%{binding} has unnecesary local variables; please try returning the expression directly'
|
106
|
-
expectation_HasRedundantParameter: '%{binding} has unnecessary parameters, that can be removed using point-free'
|
107
|
-
expectation_HasRedundantReduction: '%{binding} uses <i>%{keyword_is}</i>, but it does not artihmetic.'
|
108
|
-
expectation_HasTooShortBindings: '%{binding} is a too short identifier'
|
109
|
-
expectation_HasUnreachableCode: '%{binding} has unreachable code.'
|
110
|
-
expectation_HasWrongCaseBindings: '%{binding} does not honor case conventions'
|
111
|
-
expectation_Implements_except: '%{binding} %{must} implement interfaces distinct from %{target}'
|
112
|
-
expectation_Implements_like: '%{binding} %{must} implement interfaces like %{target}'
|
113
|
-
expectation_Implements_named: '%{binding} %{must} implement %{target}'
|
114
|
-
expectation_Implements: '%{binding} %{must} implement intefaces'
|
115
|
-
expectation_Instantiates_except: '%{binding} %{must} instantiate classes distinct from %{target}'
|
116
|
-
expectation_Instantiates_like: '%{binding} %{must} instantiate classes like %{target}'
|
117
|
-
expectation_Instantiates_named: '%{binding} %{must} instantiate %{target}'
|
118
|
-
expectation_Instantiates: '%{binding} %{must} instantiate objects'
|
119
|
-
expectation_IsLongCode: '%{binding} is too long'
|
120
|
-
expectation_must_not: must not
|
121
|
-
expectation_must: must
|
122
|
-
expectation_Raises_except: '%{binding} %{must} throw exceptions distinct from %{target}'
|
123
|
-
expectation_Raises_like: '%{binding} %{must} throw exceptions like %{target}'
|
124
|
-
expectation_Raises_named: '%{binding} %{must} throw %{target}'
|
125
|
-
expectation_Raises: '%{binding} %{must} throw exceptions'
|
126
|
-
expectation_ReturnsNil: '%{binding} retuns <i>%{keyword_null}</i>, which is a bad practice'
|
127
|
-
expectation_ReturnsNull: '%{binding} retuns <i>%{keyword_null}</i>, which is a bad practice'
|
128
|
-
expectation_solution: solution
|
129
|
-
expectation_SourceContains_named: 'solution %{must} use %{target}'
|
130
|
-
expectation_SourceEquals_named: 'solution %{must} be equal to %{target}'
|
131
|
-
expectation_SourceEqualsIgnoreSpaces_named: 'solution %{must} be equal to %{target}'
|
132
|
-
expectation_SourceRepeats_named: 'solution %{must} use %{target} more than one time'
|
133
|
-
expectation_TypesAs_named: '%{binding} %{must} type as %{target}'
|
134
|
-
expectation_TypesAs: '%{binding} %{must} type'
|
135
|
-
expectation_TypesReturnAs_named: '%{binding} %{must} type its return value as %{target}'
|
136
|
-
expectation_TypesReturnAs: '%{binding} %{must} type its return value'
|
137
|
-
expectation_Uses_except: '%{binding} %{must} delegate to something distinct from %{target}'
|
138
|
-
expectation_Uses_like: '%{binding} %{must} delegate to something similar to %{target}'
|
139
|
-
expectation_Uses_named: '%{binding} %{must} use %{target}'
|
140
|
-
expectation_Uses: '%{binding} %{must} delegate'
|
141
|
-
expectation_UsesAnonymousVariable: '%{binding} %{must} use an annonymous variable'
|
142
|
-
expectation_UsesComposition: '%{binding} %{must} use composition'
|
143
|
-
expectation_UsesComprehension: '%{binding} %{must} use comprehensions'
|
144
|
-
expectation_UsesConditional: '%{binding} %{must} use conditionals'
|
145
|
-
expectation_UsesCut: '%{binding} uses <i>!</li> operator, which is a bad practice'
|
146
|
-
expectation_UsesDyamicPolymorphism: '%{binding} %{must} use polymorphism'
|
147
|
-
expectation_UsesDynamicMethodOverload: '%{binding} %{must} use overload'
|
148
|
-
expectation_UsesFail: '%{binding} uses <i>%{keyword_fail}</li>, which is a bad practice'
|
149
|
-
expectation_UsesFindall: '%{binding} %{must} use <i>%{keyword_findall}</i>'
|
150
|
-
expectation_UsesForall: '%{binding} %{must} use <i>%{keyword_forall}</i>'
|
151
|
-
expectation_UsesForeach: '%{binding} %{must} use <i>%{keyword_foreach}</i>'
|
152
|
-
expectation_UsesGuards: '%{binding} %{must} use guards'
|
153
|
-
expectation_UsesIf: '%{binding} %{must} use <i>%{keyword_if}</i>'
|
154
|
-
expectation_UsesLambda: '%{binding} %{must} use lambda expressions'
|
155
|
-
expectation_UsesLoop: '%{binding} %{must} use a loop'
|
156
|
-
expectation_UsesNot: '%{binding} %{must} use not'
|
157
|
-
expectation_UsesObjectComposition: '%{binding} %{must} use composition'
|
158
|
-
expectation_UsesPatternMatching: '%{binding} %{must} use pattern matching'
|
159
|
-
expectation_UsesRepeat: '%{binding} %{must} use <i>%{keyword_repeat}</i>'
|
160
|
-
expectation_UsesRepeatOf: '%{binding} %{must} use <i>%{keyword_repeat}</i>'
|
161
|
-
expectation_UsesStaticMethodOverload: '%{binding} %{must} use overload'
|
162
|
-
expectation_UsesStaticPolymorphism: '%{binding} %{must} use polymorphism'
|
163
|
-
expectation_UsesSwitch: '%{binding} %{must} use a <i>%{keyword_switch}</i>'
|
164
|
-
expectation_UsesTemplateMethod: '%{binding} %{must} use a template method'
|
165
|
-
expectation_UsesUnificationOperator: '%{binding} uses the unification operator (=)'
|
166
|
-
expectation_UsesWhile: '%{binding} %{must} use <i>%{keyword_while}</i>'
|
data/lib/locales/es.yml
DELETED
@@ -1,184 +0,0 @@
|
|
1
|
-
---
|
2
|
-
es:
|
3
|
-
expectation_Assigns_except: '%{binding} %{must} asignar a algo diferente a %{target}'
|
4
|
-
expectation_Assigns_like: '%{binding} %{must} asignar algo parecido a %{target}'
|
5
|
-
expectation_Assigns_named: '%{binding} %{must} asignar %{target}'
|
6
|
-
expectation_Assigns: '%{binding} %{must} realizar asignaciones'
|
7
|
-
expectation_Calls_except: '%{binding} %{must} delegar en algo diferente a %{target}'
|
8
|
-
expectation_Calls_like: '%{binding} %{must} delegar en algo parecido a %{target}'
|
9
|
-
expectation_Calls_named: '%{binding} %{must} utilizar %{target}'
|
10
|
-
expectation_Calls: '%{binding} %{must} delegar'
|
11
|
-
expectation_Declares_except: '%{binding} %{must} contener declaraciones distintas a %{target}'
|
12
|
-
expectation_Declares_like: '%{binding} %{must} declarar un identificador parecido a %{target}'
|
13
|
-
expectation_Declares_named: '%{binding} %{must} declarar %{target}'
|
14
|
-
expectation_Declares: '%{binding} %{must} contener declaraciones'
|
15
|
-
expectation_DeclaresAttribute_except: '%{binding} %{must} declarar atributos diferentes a %{target}'
|
16
|
-
expectation_DeclaresAttribute_like: '%{binding} %{must} declarar un atributo parecido a %{target}'
|
17
|
-
expectation_DeclaresAttribute_named: '%{binding} %{must} declarar un atributo %{target}'
|
18
|
-
expectation_DeclaresAttribute: '%{binding} %{must} declarar atributos'
|
19
|
-
expectation_DeclaresClass_except: '%{binding} %{must} declarar clases diferentes a %{target}'
|
20
|
-
expectation_DeclaresClass_like: '%{binding} %{must} declarar una clase parecida a %{target}'
|
21
|
-
expectation_DeclaresClass_named: '%{binding} %{must} declarar una clase %{target}'
|
22
|
-
expectation_DeclaresClass: '%{binding} %{must} declarar clases'
|
23
|
-
expectation_DeclaresComputation_except: '%{binding} %{must} declarar computaciones diferentes a %{target}'
|
24
|
-
expectation_DeclaresComputation_like: '%{binding} %{must} declarar una computación parecida a %{target}'
|
25
|
-
expectation_DeclaresComputation_named: '%{binding} %{must} declarar una computación %{target}'
|
26
|
-
expectation_DeclaresComputation: '%{binding} %{must} declarar computaciones'
|
27
|
-
expectation_DeclaresComputationWithArity0_named: '%{target} %{must} declarar cero parametros'
|
28
|
-
expectation_DeclaresComputationWithArity1_named: '%{target} %{must} tener un parámetro'
|
29
|
-
expectation_DeclaresComputationWithArity2_named: '%{target} %{must} tener dos parámetros'
|
30
|
-
expectation_DeclaresComputationWithArity3_named: '%{target} %{must} tener tres parámetros'
|
31
|
-
expectation_DeclaresComputationWithArity4_named: '%{target} %{must} tener cuatro parámetros'
|
32
|
-
expectation_DeclaresComputationWithArity5_named: '%{target} %{must} tener cinco parámetros'
|
33
|
-
expectation_DeclaresEntryPoint: '%{binding} %{must} declarar un punto de entrada'
|
34
|
-
expectation_DeclaresEnumeration_except: '%{binding} %{must} declarar enumeraciones que no se llamen %{target}'
|
35
|
-
expectation_DeclaresEnumeration_like: '%{binding} %{must} declarar una enumeracion de nombre parecido a %{target}'
|
36
|
-
expectation_DeclaresEnumeration_named: '%{binding} %{must} declarar una enumeracion %{target}'
|
37
|
-
expectation_DeclaresEnumeration: '%{binding} %{must} declarar enumeraciones'
|
38
|
-
expectation_DeclaresFact_except: '%{binding} %{must} declarar hechos diferentes a %{target}'
|
39
|
-
expectation_DeclaresFact_like: '%{binding} %{must} declarar un hecho parecido a %{target}'
|
40
|
-
expectation_DeclaresFact_named: '%{binding} %{must} declarar un hecho %{target}'
|
41
|
-
expectation_DeclaresFact: '%{binding} %{must} declarar hechos'
|
42
|
-
expectation_DeclaresFunction_except: '%{binding} %{must} declarar funciones diferentes a %{target}'
|
43
|
-
expectation_DeclaresFunction_like: '%{binding} %{must} declarar una función parecida a %{target}'
|
44
|
-
expectation_DeclaresFunction_named: '%{binding} %{must} declarar una función %{target}'
|
45
|
-
expectation_DeclaresFunction: '%{binding} %{must} debe declarar funciones'
|
46
|
-
expectation_DeclaresInterface_except: '%{binding} %{must} declarar interfaces que no se llamen %{target}'
|
47
|
-
expectation_DeclaresInterface_like: '%{binding} %{must} declarar una interfaz de nombre parecido a %{target}'
|
48
|
-
expectation_DeclaresInterface_named: '%{binding} %{must} declarar una interfaz %{target}'
|
49
|
-
expectation_DeclaresInterface: '%{binding} %{must} declarar interfaces'
|
50
|
-
expectation_DeclaresMethod_except: '%{binding} %{must} declarar métodos diferentes a %{target}'
|
51
|
-
expectation_DeclaresMethod_like: '%{binding} %{must} declarar un método parecido a %{target}'
|
52
|
-
expectation_DeclaresMethod_named: '%{binding} %{must} declarar un método %{target}'
|
53
|
-
expectation_DeclaresMethod: '%{binding} %{must} declarar métodos'
|
54
|
-
expectation_DeclaresObject_except: '%{binding} %{must} declarar objetos diferentes a %{target}'
|
55
|
-
expectation_DeclaresObject_like: '%{binding} %{must} declarar un objeto parecido a%{target}'
|
56
|
-
expectation_DeclaresObject_named: '%{binding} %{must} declarar un objeto %{target}'
|
57
|
-
expectation_DeclaresObject: '%{binding} %{must} declarar objetos'
|
58
|
-
expectation_DeclaresPredicate_except: '%{binding} %{must} declarar predicados diferentes a %{target}'
|
59
|
-
expectation_DeclaresPredicate_like: '%{binding} %{must} declarar un predicados parecido a %{target}'
|
60
|
-
expectation_DeclaresPredicate_named: '%{binding} %{must} declarar un predicados %{target}'
|
61
|
-
expectation_DeclaresPredicate: '%{binding} %{must} declarar predicados'
|
62
|
-
expectation_DeclaresProcedure_except: '%{binding} %{must} declarar procedimientos diferentes a %{target}'
|
63
|
-
expectation_DeclaresProcedure_like: '%{binding} %{must} declarar un procedimiento parecido a %{target}'
|
64
|
-
expectation_DeclaresProcedure_named: '%{binding} %{must} declarar un procedimiento %{target}'
|
65
|
-
expectation_DeclaresProcedure: '%{binding} %{must} declarar procedimientos'
|
66
|
-
expectation_DeclaresRecursively_named: '%{target} %{must} estar declarado recursivamente'
|
67
|
-
expectation_DeclaresRule_except: '%{binding} %{must} declarar reglas diferentes a %{target}'
|
68
|
-
expectation_DeclaresRule_like: '%{binding} %{must} declarar una regla parecida a %{target}'
|
69
|
-
expectation_DeclaresRule_named: '%{binding} %{must} declarar una regla %{target}'
|
70
|
-
expectation_DeclaresRule: '%{binding} %{must} debe declarar reglas'
|
71
|
-
expectation_DeclaresStyle_except: '%{binding} %{must} declarar un estilo diferente a %{target}'
|
72
|
-
expectation_DeclaresStyle_like: '%{binding} %{must} declarar un estilo parecido a %{target}'
|
73
|
-
expectation_DeclaresStyle_named: '%{binding} %{must} declarar un estilo %{target}'
|
74
|
-
expectation_DeclaresStyle: '%{binding} %{must} declarar un estilo'
|
75
|
-
expectation_DeclaresSuperclass_except: '%{binding} %{must} declarar una superclase distinta de %{target}'
|
76
|
-
expectation_DeclaresSuperclass_like: '%{binding} %{must} declarar una superclase parecida a %{target}'
|
77
|
-
expectation_DeclaresSuperclass_named: '%{binding} %{must} declarar una superclase %{target}'
|
78
|
-
expectation_DeclaresSuperclass: '%{binding} %{must} declarar una superclase'
|
79
|
-
expectation_DeclaresTag_except: '%{binding} %{must} declarar un elemento diferente a %{target}'
|
80
|
-
expectation_DeclaresTag_like: '%{binding} %{must} declarar un elemento parecido a %{target}'
|
81
|
-
expectation_DeclaresTag_named: '%{binding} %{must} declarar un elemento %{target}'
|
82
|
-
expectation_DeclaresTag: '%{binding} %{must} declarar un elemento'
|
83
|
-
expectation_DeclaresTypeAlias_except: '%{binding} %{must} declarar sinónimos de tipo diferentes a %{target}'
|
84
|
-
expectation_DeclaresTypeAlias_like: '%{binding} %{must} declarar un sinónimo de tipo parecido a %{target}'
|
85
|
-
expectation_DeclaresTypeAlias_named: '%{binding} %{must} declarar un sinónimo de tipo %{target}'
|
86
|
-
expectation_DeclaresTypeAlias: '%{binding} %{must} declarar sinónimos de tipo'
|
87
|
-
expectation_DeclaresTypeSignature_except: '%{binding} %{must} declarar firmas de tipos diferentes a %{target}'
|
88
|
-
expectation_DeclaresTypeSignature_like: '%{binding} %{must} declarar una firma para algo parecido %{target}'
|
89
|
-
expectation_DeclaresTypeSignature_named: '%{binding} %{must} declarar una firma %{target}'
|
90
|
-
expectation_DeclaresTypeSignature: '%{binding} %{must} declarar firmas de tipos'
|
91
|
-
expectation_DeclaresVariable_except: '%{binding} %{must} declarar variables diferentes a %{target}'
|
92
|
-
expectation_DeclaresVariable_like: '%{binding} %{must} declarar una variable parecida a %{target}'
|
93
|
-
expectation_DeclaresVariable_named: '%{binding} %{must} declarar una variable %{target}'
|
94
|
-
expectation_DeclaresVariable: '%{binding} %{must} debe declarar variables'
|
95
|
-
expectation_DiscardsExceptions: '%{binding} está ignorando exceptiones silenciosamiente.'
|
96
|
-
expectation_DoesConsolePrint: '%{binding} está realizando impresiones por pantalla.'
|
97
|
-
expectation_DoesNilTest: '%{binding} hace comparaciones contra <i>%{keyword_null}</i>'
|
98
|
-
expectation_DoesNullTest: '%{binding} hace comparaciones contra <i>%{keyword_null}</i>'
|
99
|
-
expectation_DoesTypeTest: '%{binding} hace comparaciones contra strings'
|
100
|
-
expectation_HasAssignmentReturn: '%{binding} devuelve el resultado de una asignación'
|
101
|
-
expectation_HasCodeDuplication: '%{binding} tiene código repetido'
|
102
|
-
expectation_HasEmptyIfBranches: '%{binding} tiene ramas de <i>%{keyword_if}</i> vacías'
|
103
|
-
expectation_HasMisspelledBindings: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
|
104
|
-
expectation_HasMisspelledIdentifiers: '%{binding} está mal escrito. Revisá la ortografía y procurá no usar abreviaturas'
|
105
|
-
expectation_HasRedundantBooleanComparison: '%{binding} hace comparaciones booleanas innecesarias'
|
106
|
-
expectation_HasRedundantGuards: '%{binding} tiene guardas innecesarias'
|
107
|
-
expectation_HasRedundantIf: '%{binding} tiene ifs innecesarios'
|
108
|
-
expectation_HasRedundantLambda: '%{binding} tiene lambdas innecesarias'
|
109
|
-
expectation_HasRedundantLocalVariableReturn: '%{binding} usa variables locales innecesarias; podés retornar directamente la expresión'
|
110
|
-
expectation_HasRedundantParameter: '%{binding} tiene parámetros innecesarios (se pueden eliminar mediante point-free)'
|
111
|
-
expectation_HasRedundantReduction: '%{binding} usa <i>%{keyword_is}</i>, pero no realiza cálculos.'
|
112
|
-
expectation_HasTooShortBindings: '%{binding} es un identificador muy corto'
|
113
|
-
expectation_HasTooShortIdentifiers: '%{binding} es un identificador muy corto'
|
114
|
-
expectation_HasUnreachableCode: '%{binding} tiene código inalcanzable.'
|
115
|
-
expectation_HasWrongCaseBindings: '%{binding} no respeta la convención de nombres'
|
116
|
-
expectation_HasWrongCaseIdentifiers: '%{binding} no respeta la convención de nombres'
|
117
|
-
expectation_Implements_except: '%{binding} %{must} implementar interfaces distintas de %{target}'
|
118
|
-
expectation_Implements_like: '%{binding} %{must} implementar insterfaces parecidas a %{target}'
|
119
|
-
expectation_Implements_named: '%{binding} %{must} implementar %{target}'
|
120
|
-
expectation_Implements: '%{binding} %{must} implementar intefaces'
|
121
|
-
expectation_Inherits_except: '%{binding} %{must} declarar una superclase distinta de %{target}'
|
122
|
-
expectation_Inherits_like: '%{binding} %{must} declarar una superclase parecida a %{target}'
|
123
|
-
expectation_Inherits_named: '%{binding} %{must} declarar una superclase %{target}'
|
124
|
-
expectation_Inherits: '%{binding} %{must} declarar una superclase'
|
125
|
-
expectation_Instantiates_except: '%{binding} %{must} instanciar clases distintas de %{target}'
|
126
|
-
expectation_Instantiates_like: '%{binding} %{must} instanciar clases parecidas a %{target}'
|
127
|
-
expectation_Instantiates_named: '%{binding} %{must} instanciar %{target}'
|
128
|
-
expectation_Instantiates: '%{binding} %{must} instanciar objetos'
|
129
|
-
expectation_IsLongCode: '%{binding} es muy largo. Tratá de delegar más'
|
130
|
-
expectation_must_not: no debe
|
131
|
-
expectation_must: debe
|
132
|
-
expectation_Raises_except: '%{binding} %{must} lanzar excepciones diferentes a %{target}'
|
133
|
-
expectation_Raises_like: '%{binding} %{must} lanzar excepciones parecidas a %{target}'
|
134
|
-
expectation_Raises_named: '%{binding} %{must} lanzar %{target}'
|
135
|
-
expectation_Raises: '%{binding} %{must} lanzar exceptiones'
|
136
|
-
expectation_Rescues_except: '%{binding} %{must} capturar excepciones diferentes a %{target}'
|
137
|
-
expectation_Rescues_like: '%{binding} %{must} capturar excepciones parecidas a %{target}'
|
138
|
-
expectation_Rescues_named: '%{binding} %{must} capturar %{target}'
|
139
|
-
expectation_Rescues: '%{binding} %{must} capturar exceptiones'
|
140
|
-
expectation_ReturnsNil: '%{binding} retorna null, lo cual es una mala práctica'
|
141
|
-
expectation_ReturnsNull: '%{binding} retorna null, lo cual es una mala práctica'
|
142
|
-
expectation_solution: la solución
|
143
|
-
expectation_SourceContains_named: 'la solución %{must} usar %{target}'
|
144
|
-
expectation_SourceEquals_named: 'la solución %{must} ser igual a %{target}'
|
145
|
-
expectation_SourceEqualsIgnoreSpaces_named: 'la solución %{must} ser igual a %{target}'
|
146
|
-
expectation_SourceRepeats_named: 'la solución %{must} usar %{target} más de una vez'
|
147
|
-
expectation_TypesAs_named: '%{binding} %{must} ser de tipo %{target}'
|
148
|
-
expectation_TypesAs: '%{binding} %{must} tipar'
|
149
|
-
expectation_TypesReturnAs_named: '%{binding} %{must} tipar su valor de retorno como %{target}'
|
150
|
-
expectation_TypesReturnAs: '%{binding} %{must} tipar su valor de retorno'
|
151
|
-
expectation_Uses_except: '%{binding} %{must} delegar en algo diferente a %{target}'
|
152
|
-
expectation_Uses_like: '%{binding} %{must} delegar en algo parecido a %{target}'
|
153
|
-
expectation_Uses_named: '%{binding} %{must} utilizar %{target}'
|
154
|
-
expectation_Uses: '%{binding} %{must} delegar'
|
155
|
-
expectation_UsesAnonymousVariable: '%{binding} %{must} utilizar una variable anónima'
|
156
|
-
expectation_UsesComposition: '%{binding} %{must} usar composición'
|
157
|
-
expectation_UsesComprehension: '%{binding} %{must} emplear listas por comprensión'
|
158
|
-
expectation_UsesConditional: '%{binding} %{must} utilizar condicionales'
|
159
|
-
expectation_UsesCut: '%{binding} usa el operador !, lo cual es una mala práctica'
|
160
|
-
expectation_UsesDyamicPolymorphism: '%{binding} %{must} usar polimorfismo'
|
161
|
-
expectation_UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
|
162
|
-
expectation_UsesExceptionHandling: '%{binding} %{must} realizar manejo de exceptiones'
|
163
|
-
expectation_UsesExceptions: '%{binding} %{must} usar exceptiones'
|
164
|
-
expectation_UsesFail: '%{binding} usa <i>%{keyword_fail}</li>, lo cual es una mala práctica'
|
165
|
-
expectation_UsesFindall: '%{binding} %{must} utilizar <i>%{keyword_findall}</i>'
|
166
|
-
expectation_UsesForall: '%{binding} %{must} utilizar <i>%{keyword_forall}</i>'
|
167
|
-
expectation_UsesForeach: '%{binding} %{must} usar <i>%{keyword_foreach}</i>'
|
168
|
-
expectation_UsesGuards: '%{binding} %{must} usar guardas'
|
169
|
-
expectation_UsesIf: '%{binding} %{must} usar <i>%{keyword_if}</i>'
|
170
|
-
expectation_UsesInheritance: '%{binding} %{must} usar herencia'
|
171
|
-
expectation_UsesLambda: '%{binding} %{must} emplear expresiones lambda'
|
172
|
-
expectation_UsesLoop: '%{binding} %{must} usar un bucle'
|
173
|
-
expectation_UsesMixins: '%{binding} %{must} usar mixins'
|
174
|
-
expectation_UsesNot: '%{binding} %{must} utilizar <i>%{keyword_not}</i>'
|
175
|
-
expectation_UsesObjectComposition: '%{binding} %{must} usar composición'
|
176
|
-
expectation_UsesPatternMatching: '%{binding} %{must} utilizar pattern matching'
|
177
|
-
expectation_UsesRepeat: '%{binding} %{must} usar <i>%{keyword_repeat}</i>'
|
178
|
-
expectation_UsesRepeatOf: '%{binding} %{must} usar un <i>%{keyword_repeat}</i> de %{target}'
|
179
|
-
expectation_UsesStaticMethodOverload: '%{binding} %{must} usar sobrecarga'
|
180
|
-
expectation_UsesStaticPolymorphism: '%{binding} %{must} usar polimorfismo'
|
181
|
-
expectation_UsesSwitch: '%{binding} %{must} utilizar un <i>%{keyword_switch}</i>'
|
182
|
-
expectation_UsesTemplateMethod: '%{binding} %{must} usar un método plantilla'
|
183
|
-
expectation_UsesUnificationOperator: '%{binding} usa el operador de unificación (=)'
|
184
|
-
expectation_UsesWhile: '%{binding} %{must} utilizar un <i>%{keyword_while}</i>'
|
data/lib/locales/pt.yml
DELETED
@@ -1,185 +0,0 @@
|
|
1
|
-
---
|
2
|
-
pt:
|
3
|
-
expectation_Assigns_except: '%{binding} %{must} atribuir algo diferente a %{target}'
|
4
|
-
expectation_Assigns_like: '%{binding} %{must} atribuir algo semelhante ao %{target}'
|
5
|
-
expectation_Assigns_named: '%{binding} %{must} atribuir %{target}'
|
6
|
-
expectation_Assigns: '%{binding} %{must} fazer atribuições'
|
7
|
-
expectation_Calls_except: '%{binding} %{must} delegar algo diferente para %{target}'
|
8
|
-
expectation_Calls_like: '%{binding} %{must} delegar algo semelhante ao %{target}'
|
9
|
-
expectation_Calls_named: '%{binding} %{must} usar %{target}'
|
10
|
-
expectation_Calls: '%{binding} %{must} delegate'
|
11
|
-
expectation_Declares_except: '%{binding} %{must} contém instruções diferentes de %{target}'
|
12
|
-
expectation_Declares_like: '%{binding} %{must} declarar um identificador semelhante a %{target}'
|
13
|
-
expectation_Declares_named: '%{binding} %{must} declarar %{target}'
|
14
|
-
expectation_Declares: '%{binding} %{must} contém declarações'
|
15
|
-
expectation_DeclaresAttribute_except: '%{binding} %{must} declarar atributos diferentes de %{target}'
|
16
|
-
expectation_DeclaresAttribute_like: '%{binding} %{must} declarar um atributo semelhante a %{target}'
|
17
|
-
expectation_DeclaresAttribute_named: '%{binding} %{must} declarar um atributo %{target}'
|
18
|
-
expectation_DeclaresAttribute: '%{binding} %{must} declarar atributos'
|
19
|
-
expectation_DeclaresClass_except: '%{binding} %{must} declarar classes diferentes para %{target}'
|
20
|
-
expectation_DeclaresClass_like: '%{binding} %{must} declarar uma classe semelhante a %{target}'
|
21
|
-
expectation_DeclaresClass_named: '%{binding} %{must} declarar uma classe %{target}'
|
22
|
-
expectation_DeclaresClass: '%{binding} %{must} declarar classes'
|
23
|
-
expectation_DeclaresComputation_except: '%{binding} %{must} declarar cálculos diferentes de %{target}'
|
24
|
-
expectation_DeclaresComputation_like: '%{binding} %{must} declarar uma computação semelhante a %{target}'
|
25
|
-
expectation_DeclaresComputation_named: '%{binding} %{must} declarar uma computação %{target}'
|
26
|
-
expectation_DeclaresComputation: '%{binding} %{must} declarar cálculos'
|
27
|
-
expectation_DeclaresComputationWithArity0_named: '%{target} %{must} declarar parâmetros zero'
|
28
|
-
expectation_DeclaresComputationWithArity1_named: '%{target} %{must} tem um parâmetro'
|
29
|
-
expectation_DeclaresComputationWithArity2_named: '%{target} %{must} tem dois parâmetros'
|
30
|
-
expectation_DeclaresComputationWithArity3_named: '%{target} %{must} tem três parâmetros'
|
31
|
-
expectation_DeclaresComputationWithArity4_named: '%{target} %{must} tem quatro parâmetros'
|
32
|
-
expectation_DeclaresComputationWithArity5_named: '%{target} %{must} tem cinco parâmetros'
|
33
|
-
expectation_DeclaresEntryPoint: '%{binding} %{must} declarar um ponto de entrada'
|
34
|
-
expectation_DeclaresEnumeration_except: '%{binding} %{must} declarar enumerações que não são chamadas %{target}'
|
35
|
-
expectation_DeclaresEnumeration_like: '%{binding} %{must} declarar uma enumeração de nome semelhante a %{target}'
|
36
|
-
expectation_DeclaresEnumeration_named: '%{binding} %{must} declarar uma enumeração %{target}'
|
37
|
-
expectation_DeclaresEnumeration: '%{binding} %{must} declarar enumerações'
|
38
|
-
expectation_DeclaresFact_except: '%{binding} %{must} declarar fatos diferentes de %{target}'
|
39
|
-
expectation_DeclaresFact_like: '%{binding} %{must} declarar um fato semelhante a %{target}'
|
40
|
-
expectation_DeclaresFact_named: '%{binding} %{must} declarar um fato %{target}'
|
41
|
-
expectation_DeclaresFact: '%{binding} %{must} declarar fatos'
|
42
|
-
expectation_DeclaresFunction_except: '%{binding} %{must} declarar funções diferentes de %{target}'
|
43
|
-
expectation_DeclaresFunction_like: '%{binding} %{must} declarar uma função semelhante a %{target}'
|
44
|
-
expectation_DeclaresFunction_named: '%{binding} %{must} declarar uma função %{target}'
|
45
|
-
expectation_DeclaresFunction: '%{binding} %{must} deve declarar funções'
|
46
|
-
expectation_DeclaresInterface_except: '%{binding} %{must} declarar interfaces que não são chamadas %{target}'
|
47
|
-
expectation_DeclaresInterface_like: '%{binding} %{must} declarar uma interface de nome semelhante a %{target}'
|
48
|
-
expectation_DeclaresInterface_named: '%{binding} %{must} declarar uma interface %{target}'
|
49
|
-
expectation_DeclaresInterface: '%{binding} %{must} declarar interfaces'
|
50
|
-
expectation_DeclaresMethod_except: '%{binding} %{must} declarar métodos diferentes de %{target}'
|
51
|
-
expectation_DeclaresMethod_like: '%{binding} %{must} declarar um método semelhante a %{target}'
|
52
|
-
expectation_DeclaresMethod_named: '%{binding} %{must} declarar um método %{target}'
|
53
|
-
expectation_DeclaresMethod: '%{binding} %{must} declarar métodos'
|
54
|
-
expectation_DeclaresObject_except: '%{binding} %{must} declarar objetos diferentes de %{target}'
|
55
|
-
expectation_DeclaresObject_like: '%{binding} %{must} declarar um objeto semelhante a %{target}'
|
56
|
-
expectation_DeclaresObject_named: '%{binding} %{must} declarar um objeto %{target}'
|
57
|
-
expectation_DeclaresObject: '%{binding} %{must} declarar objetos'
|
58
|
-
expectation_DeclaresPredicate_except: '%{binding} %{must} declarar predicados diferentes para %{target}'
|
59
|
-
expectation_DeclaresPredicate_like: '%{binding} %{must} declarar um predicado semelhante ao %{target}'
|
60
|
-
expectation_DeclaresPredicate_named: '%{binding} %{must} declarar um predicado %{target}'
|
61
|
-
expectation_DeclaresPredicate: '%{binding} %{must} declarar predicados'
|
62
|
-
expectation_DeclaresProcedure_except: '%{binding} %{must} declarar procedimentos diferentes de %{target}'
|
63
|
-
expectation_DeclaresProcedure_like: '%{binding} %{must} declarar um procedimento semelhante a %{target}'
|
64
|
-
expectation_DeclaresProcedure_named: '%{binding} %{must} declarar um procedimento %{target}'
|
65
|
-
expectation_DeclaresProcedure: '%{binding} %{must} declarar procedimentos'
|
66
|
-
expectation_DeclaresRecursively_named: '%{target} %{must} deve ser declarado recursivamente'
|
67
|
-
expectation_DeclaresRule_except: '%{binding} %{must} declarar regras diferentes de %{target}'
|
68
|
-
expectation_DeclaresRule_like: '%{binding} %{must} declarar uma regra semelhante a %{target}'
|
69
|
-
expectation_DeclaresRule_named: '%{binding} %{must} declarar uma regra %{target}'
|
70
|
-
expectation_DeclaresRule: '%{binding} %{must} deve declarar regras'
|
71
|
-
expectation_DeclaresStyle_except: '%{binding} %{must} declarar um estilo diferentes de %{target}'
|
72
|
-
expectation_DeclaresStyle_like: '%{binding} %{must} declarar um estilo semelhante a %{target}'
|
73
|
-
expectation_DeclaresStyle_named: '%{binding} %{must} declarar um estilo %{target}'
|
74
|
-
expectation_DeclaresStyle: '%{binding} %{must} declarar um estilo'
|
75
|
-
expectation_DeclaresSuperclass_except: '%{binding} %{must} declarar uma superclasse diferente de %{target}'
|
76
|
-
expectation_DeclaresSuperclass_like: '%{binding} %{must} declarar uma superclasse semelhante a %{target}'
|
77
|
-
expectation_DeclaresSuperclass_named: '%{binding} %{must} declarar uma superclasse %{target}'
|
78
|
-
expectation_DeclaresSuperclass: '%{binding} %{must} declarar uma superclasse'
|
79
|
-
expectation_DeclaresTag_except: '%{binding} %{must} declarar uma etiqueta diferente de %{target}'
|
80
|
-
expectation_DeclaresTag_like: '%{binding} %{must} declarar uma etiqueta similar a %{target}'
|
81
|
-
expectation_DeclaresTag_named: '%{binding} %{must} declarar uma etiqueta %{target}'
|
82
|
-
expectation_DeclaresTag: '%{binding} %{must} declarar uma etiqueta'
|
83
|
-
expectation_DeclaresTypeAlias_except: '%{binding} %{must} declarar sinônimos de tipo diferente de %{target}'
|
84
|
-
expectation_DeclaresTypeAlias_like: '%{binding} %{must} declarar um sinônimo de tipo similar a %{target}'
|
85
|
-
expectation_DeclaresTypeAlias_named: '%{binding} %{must} declarar um sinônimo do tipo %{target}'
|
86
|
-
expectation_DeclaresTypeAlias: '%{binding} %{must} declarar o tipo de sinônimos'
|
87
|
-
expectation_DeclaresTypeSignature_except: '%{binding} %{must} declarar assinaturas de tipos diferentes de %{target}'
|
88
|
-
expectation_DeclaresTypeSignature_like: '%{binding} %{must} declarar uma assinatura para algo semelhante %{target}'
|
89
|
-
expectation_DeclaresTypeSignature_named: '%{binding} %{must} declarar uma assinatura %{target}'
|
90
|
-
expectation_DeclaresTypeSignature: '%{binding} %{must} excluir assinaturas de tipo'
|
91
|
-
expectation_DeclaresVariable_except: '%{binding} %{must} declarar variáveis diferentes de %{target}'
|
92
|
-
expectation_DeclaresVariable_like: '%{binding} %{must} declarar uma variável semelhante a %{target}'
|
93
|
-
expectation_DeclaresVariable_named: '%{binding} %{must} declarar uma variável %{target}'
|
94
|
-
expectation_DeclaresVariable: '%{binding} %{must} deve declarar variáveis'
|
95
|
-
expectation_DiscardsExceptions: '%{binding} está silenciosamente ignorando exceções.'
|
96
|
-
expectation_DoesConsolePrint: '%{binding} está fazendo impressões na tela.'
|
97
|
-
expectation_DoesNilTest: '%{binding} faz comparações contra <i>%{keyword_null}</i>'
|
98
|
-
expectation_DoesNullTest: '%{binding} faz comparações contra <i>%{keyword_null}</i>'
|
99
|
-
expectation_DoesTypeTest: '%{binding} faz comparações contra strings'
|
100
|
-
expectation_HasAssignmentReturn: '%{binding} retorna o resultado de uma tarefa'
|
101
|
-
expectation_HasCodeDuplication: '%{binding} tem código repetido'
|
102
|
-
expectation_HasEmptyIfBranches: '%{binding} tem vazio <i>%{keyword_if}</i> ramos'
|
103
|
-
expectation_HasMisspelledBindings: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
|
104
|
-
expectation_HasMisspelledIdentifiers: '%{binding} está incorreto. Verifique a ortografia e tente não usar abreviaturas'
|
105
|
-
expectation_HasRedundantBooleanComparison: '%{binding} faz comparações booleanas desnecessárias'
|
106
|
-
expectation_HasRedundantGuards: '%{binding} possui protetores desnecessários'
|
107
|
-
expectation_HasRedundantIf: '%{binding} tem desnecessário ifs'
|
108
|
-
expectation_HasRedundantLambda: '%{binding} possui lambdas desnecessários'
|
109
|
-
expectation_HasRedundantLocalVariableReturn: '%{binding} usa variáveis locais desnecessárias; você pode retornar a expressão diretamente'
|
110
|
-
expectation_HasRedundantParameter: '%{binding} possui parâmetros desnecessários (pode ser removido por ponto-livre)'
|
111
|
-
expectation_HasRedundantReduction: '%{binding} usa <i>%{keyword_is}</i>, mas não executa cálculos.'
|
112
|
-
expectation_HasTooShortBindings: '%{binding} é um identificador muito curto'
|
113
|
-
expectation_HasTooShortIdentifiers: '%{binding} é um identificador muito curto'
|
114
|
-
expectation_HasTooShortIdentifiers: '%{binding} é um identificador muito curto'
|
115
|
-
expectation_HasUnreachableCode: '%{binding} tem código inacessível.'
|
116
|
-
expectation_HasWrongCaseBindings: '%{binding} não respeita a convenção de nomenclatura'
|
117
|
-
expectation_HasWrongCaseIdentifiers: '%{binding} não respeita a convenção de nomenclatura'
|
118
|
-
expectation_Implements_except: '%{binding} %{must} implementar interfaces diferentes de %{target}'
|
119
|
-
expectation_Implements_like: '%{binding} %{must} implementar interfaces semelhantes a %{target}'
|
120
|
-
expectation_Implements_named: '%{binding} %{must} implementar %{target}'
|
121
|
-
expectation_Implements: '%{binding} %{must} implementar interfaces'
|
122
|
-
expectation_Inherits_except: '%{binding} %{must} declarar uma superclasse diferente de %{target}'
|
123
|
-
expectation_Inherits_like: '%{binding} %{must} declarar uma superclasse semelhante a %{target}'
|
124
|
-
expectation_Inherits_named: '%{binding} %{must} declarar uma superclasse %{target}'
|
125
|
-
expectation_Inherits: '%{binding} %{must} declarar uma superclasse'
|
126
|
-
expectation_Instantiates_except: '%{binding} %{must} instanciar classes diferentes de %{target}'
|
127
|
-
expectation_Instantiates_like: '%{binding} %{must} instanciar classes semelhantes a %{target}'
|
128
|
-
expectation_Instantiates_named: '%{binding} %{must} instantiate %{target}'
|
129
|
-
expectation_Instantiates: '%{binding} %{must} instanciar objetos'
|
130
|
-
expectation_IsLongCode: '%{binding} é muito longo. Tente delegar mais'
|
131
|
-
expectation_must_not: 'não deve'
|
132
|
-
expectation_must: 'deve'
|
133
|
-
expectation_Raises_except: '%{binding} %{must} lançar exceções diferentes de %{target}'
|
134
|
-
expectation_Raises_like: '%{binding} %{must} lançar exceções semelhantes a %{target}'
|
135
|
-
expectation_Raises_named: '%{binding} %{must} launch %{target}'
|
136
|
-
expectation_Raises: '%{binding} %{must} lançar exceções'
|
137
|
-
expectation_Rescues_except: '%{binding} %{must} capturar exceções que não sejam %{target}'
|
138
|
-
expectation_Rescues_like: '%{binding} %{must} capturar exceções semelhantes a %{target}'
|
139
|
-
expectation_Rescues_named: '%{binding} %{must} capture %{target}'
|
140
|
-
expectation_Rescues: '%{binding} %{must} capturar exceções'
|
141
|
-
expectation_ReturnsNil: '%{binding} retorna nulo, o que é uma prática ruim'
|
142
|
-
expectation_ReturnsNull: '%{binding} retorna nulo, o que é uma prática ruim'
|
143
|
-
expectation_solution: 'a solução'
|
144
|
-
expectation_SourceContains_named: 'a solução %{must} usar %{target}'
|
145
|
-
expectation_SourceEquals_named: 'a solução %{must} ser igual a %{target}'
|
146
|
-
expectation_SourceEqualsIgnoreSpaces_named: 'a solução %{must} ser igual a %{target}'
|
147
|
-
expectation_SourceRepeats_named: 'a solução %{must} usar %{target} mais de uma vez'
|
148
|
-
expectation_TypesAs_named: '%{binding} %{must} é do tipo %{target}'
|
149
|
-
expectation_TypesAs: '%{binding} %{must} tem tipo'
|
150
|
-
expectation_TypesReturnAs_named: '%{binding} %{must} tem tipo de valor de retorno %{target}'
|
151
|
-
expectation_TypesReturnAs: '%{binding} %{must} tem tipo de valor de retorno'
|
152
|
-
expectation_Uses_except: '%{binding} %{must} delegar algo diferente para %{target}'
|
153
|
-
expectation_Uses_like: '%{binding} %{must} delegar algo semelhante ao %{target}'
|
154
|
-
expectation_Uses_named: '%{binding} %{must} usar %{target}'
|
155
|
-
expectation_Uses: '%{binding} %{must} delegar'
|
156
|
-
expectation_UsesAnonymousVariable: '%{binding} %{must} usar uma variável anônima'
|
157
|
-
expectation_UsesComposition: '%{binding} %{must} usar a composição'
|
158
|
-
expectation_UsesComprehension: '%{binding} %{must} usar listas pelo entendimento'
|
159
|
-
expectation_UsesConditional: '%{binding} %{must} usar conditional'
|
160
|
-
expectation_UsesCut: '%{binding} usa o operador !, que é uma má prática'
|
161
|
-
expectation_UsesDyamicPolymorphism: '%{binding} %{must} usar polimorfismo'
|
162
|
-
expectation_UsesDynamicMethodOverload: '%{binding} %{must} usar sobrecarga'
|
163
|
-
expectation_UsesExceptionHandling: '%{binding} %{must} executar o tratamento de exceção'
|
164
|
-
expectation_UsesExceptions: '%{binding} %{must} usar exceções'
|
165
|
-
expectation_UsesFail: '%{binding} usa <i>%{keyword_fail}</li>, o que é uma prática ruim'
|
166
|
-
expectation_UsesFindall: '%{binding} %{must} usar <i>%{keyword_findall}</i>'
|
167
|
-
expectation_UsesForall: '%{binding} %{must} usar <i>%{keyword_forall}</i>'
|
168
|
-
expectation_UsesForeach: '%{binding} %{must} usar <i>%{keyword_foreach}</i>'
|
169
|
-
expectation_UsesGuards: '%{binding} %{must} usar guardas'
|
170
|
-
expectation_UsesIf: '%{binding} %{must} usar <i>%{keyword_if}</i>'
|
171
|
-
expectation_UsesInheritance: '%{binding} %{must} usar herança'
|
172
|
-
expectation_UsesLambda: '%{binding} %{must} usar expressões lambda'
|
173
|
-
expectation_UsesLoop: '%{binding} %{must} usar um loop'
|
174
|
-
expectation_UsesMixins: '%{binding} %{must} usar mixins'
|
175
|
-
expectation_UsesNot: '%{binding} %{must} usar <i>%{keyword_not}</i>'
|
176
|
-
expectation_UsesObjectComposition: '%{binding} %{must} usar composição'
|
177
|
-
expectation_UsesPatternMatching: '%{binding} %{must} usar o padrão de correspondência'
|
178
|
-
expectation_UsesRepeat: '%{binding} %{must} usar <i>%{keyword_repeat}</i>'
|
179
|
-
expectation_UsesRepeatOf: '%{binding} %{must} usar uma <i>%{keyword_repeat}</i> de %{target}'
|
180
|
-
expectation_UsesStaticMethodOverload: '%{binding} %{must} usar sobrecarga'
|
181
|
-
expectation_UsesStaticPolymorphism: '%{binding} %{must} usar polimorfismo'
|
182
|
-
expectation_UsesSwitch: '%{binding} %{must} usar um <i>%{keyword_switch}</i>'
|
183
|
-
expectation_UsesTemplateMethod: '%{binding} %{must} usar um _template method_'
|
184
|
-
expectation_UsesUnificationOperator: '%{binding} usa o operador de unificação (=)'
|
185
|
-
expectation_UsesWhile: '%{binding} %{must} usar um <i>%{keyword_while}</i>'
|
@@ -1,104 +0,0 @@
|
|
1
|
-
class Mumukit::Inspection::Expectation
|
2
|
-
|
3
|
-
SMELLS = %w(HasAssignmentReturn HasCodeDuplication HasEmptyIfBranches HasMisspelledIdentifiers
|
4
|
-
HasRedundantBooleanComparison HasRedundantGuards HasRedundantIf
|
5
|
-
HasRedundantLambda HasRedundantLocalVariableReturn HasRedundantParameter
|
6
|
-
HasRedundantReduction HasTooShortIdentifiers HasWrongCaseIdentifiers
|
7
|
-
HasUnreachableCode)
|
8
|
-
|
9
|
-
attr_accessor :binding, :inspection
|
10
|
-
|
11
|
-
def initialize(binding, inspection)
|
12
|
-
@binding = binding
|
13
|
-
@inspection = inspection
|
14
|
-
end
|
15
|
-
|
16
|
-
def check!
|
17
|
-
raise "Wrong binding in #{to_h}" unless binding?
|
18
|
-
raise "Wrong inspection #{to_h}" unless inspection?
|
19
|
-
end
|
20
|
-
|
21
|
-
def translate(keywords = nil)
|
22
|
-
Mumukit::Inspection::I18n.translate self, keywords
|
23
|
-
end
|
24
|
-
|
25
|
-
def to_h
|
26
|
-
{binding: binding, inspection: inspection.to_s}
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.guess_type(expectation)
|
30
|
-
if expectation[:inspection] =~ /(Not\:)?Has.*/ && !has_smell?(expectation[:inspection])
|
31
|
-
V0
|
32
|
-
else
|
33
|
-
V2
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
def self.has_smell?(smell)
|
38
|
-
SMELLS.include? smell
|
39
|
-
end
|
40
|
-
|
41
|
-
def self.parse(expectation)
|
42
|
-
guess_type(expectation).new(
|
43
|
-
expectation[:binding],
|
44
|
-
Mumukit::Inspection.parse(expectation[:inspection]))
|
45
|
-
end
|
46
|
-
|
47
|
-
class V0 < Mumukit::Inspection::Expectation
|
48
|
-
INSPECTIONS = %w(HasBinding HasTypeDeclaration HasTypeSignature HasVariable HasArity HasDirectRecursion
|
49
|
-
HasComposition HasComprehension HasForeach HasIf HasGuards HasConditional HasLambda HasRepeat HasWhile
|
50
|
-
HasUsage HasAnonymousVariable HasNot HasForall HasFindall)
|
51
|
-
|
52
|
-
|
53
|
-
def binding?
|
54
|
-
binding.present?
|
55
|
-
end
|
56
|
-
|
57
|
-
def inspection?
|
58
|
-
inspection.present? && INSPECTIONS.include?(inspection.type)
|
59
|
-
end
|
60
|
-
|
61
|
-
def as_v2
|
62
|
-
if has? 'Binding' then as_v2_declare ''
|
63
|
-
elsif has? 'TypeDeclaration' then as_v2_declare 'TypeAlias'
|
64
|
-
elsif has? 'TypeSignature' then as_v2_declare 'TypeSignature'
|
65
|
-
elsif has? 'Variable' then as_v2_declare 'Variable'
|
66
|
-
elsif has? 'Arity' then as_v2_declare "ComputationWithArity#{inspection.target.value}"
|
67
|
-
elsif has? 'DirectRecursion' then as_v2_declare "Recursively"
|
68
|
-
elsif has? 'Usage'
|
69
|
-
V2.new binding, new_inspection('Uses', Mumukit::Inspection::Target.named(inspection.target.value))
|
70
|
-
else as_v2_use
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
def has?(simple_type)
|
75
|
-
inspection.type == "Has#{simple_type}"
|
76
|
-
end
|
77
|
-
|
78
|
-
def as_v2_use
|
79
|
-
V2.new binding, new_inspection(inspection.type.gsub('Has', 'Uses'), nil)
|
80
|
-
end
|
81
|
-
|
82
|
-
def as_v2_declare(simple_type)
|
83
|
-
V2.new '*', new_inspection("Declares#{simple_type}", Mumukit::Inspection::Target.named(binding))
|
84
|
-
end
|
85
|
-
|
86
|
-
def new_inspection(type, target)
|
87
|
-
Mumukit::Inspection.new(type, target, inspection.negated?)
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
class V2 < Mumukit::Inspection::Expectation
|
92
|
-
def binding?
|
93
|
-
true
|
94
|
-
end
|
95
|
-
|
96
|
-
def inspection?
|
97
|
-
true
|
98
|
-
end
|
99
|
-
|
100
|
-
def as_v2
|
101
|
-
self
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
module Mumukit::Inspection::I18n
|
2
|
-
class << self
|
3
|
-
DEFAULT_KEYWORDS = {
|
4
|
-
keyword_null: :null,
|
5
|
-
keyword_if: :if,
|
6
|
-
keyword_is: :is,
|
7
|
-
keyword_fail: :fail,
|
8
|
-
keyword_findall: :findall,
|
9
|
-
keyword_forall: :forall,
|
10
|
-
keyword_foreach: :foreach,
|
11
|
-
keyword_not: :not,
|
12
|
-
keyword_repeat: :repeat,
|
13
|
-
keyword_switch: :switch,
|
14
|
-
keyword_while: :while,
|
15
|
-
}
|
16
|
-
|
17
|
-
def translate(e, keywords = nil)
|
18
|
-
e = e.as_v2
|
19
|
-
key = key_for e.binding, e.inspection
|
20
|
-
::I18n.t key, translation_params(e, keywords)
|
21
|
-
rescue
|
22
|
-
'<unknown expectation>'
|
23
|
-
end
|
24
|
-
|
25
|
-
alias t translate
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def translation_params(e, keywords)
|
30
|
-
{
|
31
|
-
binding: t_binding(e.binding),
|
32
|
-
target: t_target(e.inspection),
|
33
|
-
must: t_must(e.inspection)
|
34
|
-
}.merge(DEFAULT_KEYWORDS).merge(keywords || {})
|
35
|
-
end
|
36
|
-
|
37
|
-
def key_for(binding, inspection)
|
38
|
-
"expectation_#{inspection.type}#{inspection.target ? inspection.target.i18n_suffix : nil }"
|
39
|
-
end
|
40
|
-
|
41
|
-
def t_binding(binding)
|
42
|
-
binding == '*' ? ::I18n.t("expectation_solution") : "<strong>#{Mumukit::Inspection.parse_binding_name binding}</strong>"
|
43
|
-
end
|
44
|
-
|
45
|
-
def t_must(parsed)
|
46
|
-
::I18n.t("expectation_#{parsed.negated? ? 'must_not' : 'must' }")
|
47
|
-
end
|
48
|
-
|
49
|
-
def t_target(parsed)
|
50
|
-
"<strong>#{parsed.target.value}</strong>" if parsed.target
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
class Mumukit::Inspection::Target
|
2
|
-
attr_accessor :type, :value
|
3
|
-
|
4
|
-
def initialize(type, value=nil)
|
5
|
-
@type = type
|
6
|
-
@value = value
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.parse(target_s)
|
10
|
-
if target_s.blank?
|
11
|
-
nil
|
12
|
-
elsif target_s == '*'
|
13
|
-
anyone
|
14
|
-
elsif target_s.start_with? '^'
|
15
|
-
new :except, target_tail(target_s)
|
16
|
-
elsif target_s.start_with? '~'
|
17
|
-
new :like, target_tail(target_s)
|
18
|
-
elsif target_s.start_with? '='
|
19
|
-
named target_tail(target_s)
|
20
|
-
else
|
21
|
-
unknown target_s
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
def to_s
|
26
|
-
case type
|
27
|
-
when :anyone
|
28
|
-
'*'
|
29
|
-
when :except
|
30
|
-
"^#{value}"
|
31
|
-
when :like
|
32
|
-
"~#{value}"
|
33
|
-
when :named
|
34
|
-
"=#{value}"
|
35
|
-
else
|
36
|
-
value
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def i18n_suffix
|
41
|
-
case type
|
42
|
-
when :anyone
|
43
|
-
nil
|
44
|
-
when :except
|
45
|
-
"_except"
|
46
|
-
when :like
|
47
|
-
"_like"
|
48
|
-
else
|
49
|
-
"_named"
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def self.target_tail(target_s)
|
54
|
-
target_s[1..-1]
|
55
|
-
end
|
56
|
-
|
57
|
-
def self.unknown(value)
|
58
|
-
new(:unknown, value)
|
59
|
-
end
|
60
|
-
|
61
|
-
def self.named(value)
|
62
|
-
new(:named, value)
|
63
|
-
end
|
64
|
-
|
65
|
-
def self.anyone
|
66
|
-
new(:anyone)
|
67
|
-
end
|
68
|
-
end
|