Nitsmell : Adding new code smells and print console updated
[nit.git] / tests / TestNitsmells / LargeClass / largeclass.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # A test program with a fake model to check model tools.
16 module largeclass
17
18 import platform
19
20 class LargeClass
21 var attribute = 0
22 var attribute1 = 0
23 var attribute2 = 0
24 var attribute3 = 0
25 var attribute4 = 0
26 var attribute5 = 0
27 var attribut6 = 0
28 var attribute7 = 0
29 var attribute8 = 0
30 var attribute9 = 0
31 var attribute10 = 0
32 var attribute11 = 0
33 var attribute12 = 0
34 var attribute13 = 0
35 var attribute14 = 0
36 var attribute15 = 0
37 var attribute16 = 0
38 var attribute17 = 0
39
40 fun start do
41 self.attribute16 = 10
42 end
43
44 fun ended do end
45 fun replay do end
46 fun restart do end
47 fun start1 do end
48 fun ended1 do end
49 fun replay1 do end
50 fun restart1 do end
51 fun start2 do end
52 fun ended2 do end
53 fun replay2 do end
54 fun restart2 do end
55 end
56
57 class NoLargeclass
58 var testVariable = 0
59
60 fun test do end
61 end