for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from bears.ruby.RubyLintBear import RubyLintBear
from bears.tests.LocalBearTestHelper import verify_local_bear
good_file = """
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
""".split("\n")
bad_file = """
x = 1 # unused variables invoke a warning
"""
RubyLintBearTest = verify_local_bear(RubyLintBear,
valid_files=(good_file,),
invalid_files=(bad_file,))