Skip to content

Commit 090e6b2

Browse files
committed
corrected the lint errors
1 parent 7328997 commit 090e6b2

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

file.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
h1 {
2-
align-items: center;
3-
justify-content: center;
4-
text-emphasis: none;
5-
}
1+
.h2,
2+
h2{
3+
font-weight: 700;
4+
font-size: 38px;
5+
padding: 10px 0 10px 0
6+
font-style: normal;
7+
font-stretch: normal;
8+
line-height: normal;
9+
letter-spacing: normal;
10+
color #6f23ff;
11+
text-align: center;
12+
}

lib/module.rb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@
22

33
module Bot
44
def self.chek1(str)
5-
if str.match(/.+\s{1}+{/)
6-
puts "There should be a new line after '{' on line #{$i}" unless str.match(/.+\s{1}+$/)
5+
if str.match(/.+{/)
6+
puts "there should be a new line after '{' on line #{$i}" unless str.match(/.+{$/)
7+
puts "there should be a white space before '{' on line #{$i}" unless str.match(/.+\s{1}+{/)
78
end
89
end
910

1011
def self.chek2(str)
11-
if str.match(/\s+[a-z]+.+\s+[a-z]+./)
12-
puts "There should not be any capital letter on line #{$i}" if str.match(/[A-Z]/)
13-
puts "the value should be asigned with ':' on line #{$i}" unless str.match(/[a-z]+.+:+\s+[a-z]+.$/)
14-
puts "the line shoud end with a ';' on line #{$i}" unless str.match(/[a-z]+.+.+\s+[a-z]+;$/)
15-
puts "there hould not be any thing after ';' on line #{$i}" unless str.match(/[a-z]+.+:+\s+[a-z]+;\R/)
12+
if str.match(/.+[a-z]+.+.+./)
13+
puts "there should not be any capital letter on line #{$i}" if str.match(/[A-Z]/)
14+
puts "the line should start with a white space on line #{$i}" unless str.match(/\s{2}+[a-z]+.+.+./)
15+
puts "the value should be asigned with ':' on line #{$i}" unless str.match(/.+[a-z]+.+:+.+.+./)
16+
puts "the line shoud end with a ';' on line #{$i}" unless str.match(/[a-z]+.+.+\s+.+;$/)
17+
puts "there should be a new line after ';' on line #{$i}" unless str.match(/[a-z]+.+:+\s+.+;\R/)
1618
end
1719
end
1820

1921
def self.chek3(str)
2022
if str.match(/}/)
21-
puts "There should not be anything before '}' on line #{$i}" unless str.match(/^}/)
22-
puts "There should be a new line after '}' on line #{$i}" unless str.match(/^}\R$/)
23+
puts "there should not be anything before '}' on line #{$i}" unless str.match(/^}/)
24+
puts "there should be a new line after '}' on line #{$i}" unless str.match(/^}\R$/)
2325
end
2426
end
2527

0 commit comments

Comments
 (0)