File tree Expand file tree Collapse file tree
ql/test/query-tests/metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ | FLines.rb:0:0:0:0 | FLines.rb | 25 |
Original file line number Diff line number Diff line change 1+ queries/metrics/FLines.ql
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class FLinesTest
4+
5+ def foo
6+ # This is a comment
7+ # and another
8+
9+ some_string = <<-ESCAPE
10+ hello world
11+ multiple
12+ lines
13+
14+ how many lines of code in this heredoc?
15+ # 9 lines total
16+
17+ ESCAPE
18+
19+ p some_string
20+
21+ 7
22+ end
23+
24+
25+ end
Original file line number Diff line number Diff line change 1+ | FLinesOfCode.rb:0:0:0:0 | FLinesOfCode.rb | 15 |
Original file line number Diff line number Diff line change 1+ queries/metrics/FLinesOfCode.ql
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class FLinesTest
4+
5+ def foo
6+ # This is a comment
7+ # and another
8+
9+ some_string = <<-ESCAPE
10+ hello world
11+ multiple
12+ lines
13+
14+ how many lines of code in this heredoc?
15+ # 9 lines total
16+
17+ ESCAPE
18+
19+ p some_string
20+
21+ 7
22+ end
23+
24+
25+ end
Original file line number Diff line number Diff line change 1+ | FLinesOfComments.rb:0:0:0:0 | FLinesOfComments.rb | 3 |
Original file line number Diff line number Diff line change 1+ queries/metrics/FLinesOfComments.ql
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class FLinesTest
4+
5+ def foo
6+ # This is a comment
7+ # and another
8+
9+ some_string = <<-ESCAPE
10+ hello world
11+ multiple
12+ lines
13+
14+ how many lines of code in this heredoc?
15+ # 9 lines total
16+
17+ ESCAPE
18+
19+ p some_string
20+
21+ 7
22+ end
23+
24+
25+ end
You can’t perform that action at this time.
0 commit comments