We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3194842 commit af636b5Copy full SHA for af636b5
lib/cc/engine/analyzers/go/main.rb
@@ -18,10 +18,12 @@ class Main < CC::Engine::Analyzers::Base
18
].freeze
19
POINTS_PER_OVERAGE = 40_000
20
REQUEST_PATH = "/go"
21
- COMMENT_MATCHER = Sexp::Matcher.parse("(CommentGroup ___)")
+ COMMENT_MATCHER = Sexp::Matcher.parse("(_ (comments ___) ___)")
22
23
def transform_sexp(sexp)
24
delete_comments!(sexp)
25
+ sexp.delete_if { |node| node[0] == :name }
26
+ sexp.delete_if { |node| node[0] == :unresolved }
27
end
28
29
def use_sexp_lines?
0 commit comments