Skip to content

Commit

Permalink
Merge pull request #24 from 422404/build/exclude-antlr-classes-coverage
Browse files Browse the repository at this point in the history
Exclude ANTLR generated classes from coverage
  • Loading branch information
422404 committed Jun 10, 2021
2 parents 0ea52b3 + 1c91c8a commit 5f2e93c
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 16 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ jacocoTestReport {
html.destination = file("${buildDir}/reports/jacoco/html")
csv.enabled = false
}

afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: [
"org/actorlang/antlr/gen/*"
])
}))
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
grammar ActorLang;

@header {
package org.actorlang.antlr;
package org.actorlang.antlr.gen;
}

WS: [ \r\t\n]+ -> channel(HIDDEN);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from org/actorlang/antlr/ActorLang.g4 by ANTLR 4.9
// Generated from org/actorlang/antlr/gen/ActorLang.g4 by ANTLR 4.9

package org.actorlang.antlr;
package org.actorlang.antlr.gen;


import org.antlr.v4.runtime.ParserRuleContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from org/actorlang/antlr/ActorLang.g4 by ANTLR 4.9
// Generated from org/actorlang/antlr/gen/ActorLang.g4 by ANTLR 4.9

package org.actorlang.antlr;
package org.actorlang.antlr.gen;

import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from org/actorlang/antlr/ActorLang.g4 by ANTLR 4.9
// Generated from org/actorlang/antlr/gen/ActorLang.g4 by ANTLR 4.9

package org.actorlang.antlr;
package org.actorlang.antlr.gen;

import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from org/actorlang/antlr/ActorLang.g4 by ANTLR 4.9
// Generated from org/actorlang/antlr/gen/ActorLang.g4 by ANTLR 4.9

package org.actorlang.antlr;
package org.actorlang.antlr.gen;

import org.antlr.v4.runtime.tree.ParseTreeListener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from org/actorlang/antlr/ActorLang.g4 by ANTLR 4.9
// Generated from org/actorlang/antlr/gen/ActorLang.g4 by ANTLR 4.9

package org.actorlang.antlr;
package org.actorlang.antlr.gen;

import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from org/actorlang/antlr/ActorLang.g4 by ANTLR 4.9
// Generated from org/actorlang/antlr/gen/ActorLang.g4 by ANTLR 4.9

package org.actorlang.antlr;
package org.actorlang.antlr.gen;

import org.antlr.v4.runtime.tree.ParseTreeVisitor;

Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/org/actorlang/parser/impl/AntlrParser.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.actorlang.parser.impl

import org.actorlang.antlr.ActorLangAntlrErrorListener
import org.actorlang.antlr.ActorLangBaseVisitor
import org.actorlang.antlr.ActorLangLexer
import org.actorlang.antlr.ActorLangParser
import org.actorlang.antlr.gen.ActorLangBaseVisitor
import org.actorlang.antlr.gen.ActorLangLexer
import org.actorlang.antlr.gen.ActorLangParser
import org.actorlang.ast.AssignNode
import org.actorlang.ast.BecomeNode
import org.actorlang.ast.BehaviorNode
Expand Down

0 comments on commit 5f2e93c

Please sign in to comment.