| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| 1 | from bears.ruby.RubyLintBear import RubyLintBear |
||
| 11 | puts "Hello #{@name}!" |
||
| 12 | end |
||
| 13 | end |
||
| 14 | """.split("\n") |
||
| 15 | |||
| 16 | |||
| 17 | bad_file = """ |
||
| 18 | class HelloWorld |
||
| 19 | def initialize(name) |
||
| 20 | @name = name.capitalize |
||
| 21 | end |
||
| 22 | def sayHi |
||
| 23 | x = 1 # unused variables invoke a warning |
||
| 24 | puts "Hello #{@name}!" |
||
| 25 | end |
||
| 26 | """ |
||
| 27 | |||
| 28 | |||
| 29 | RubyLintBearTest = verify_local_bear(RubyLintBear, |
||
| 30 | valid_files=(good_file,), |
||
| 32 |