Skip to content

Commit

Permalink
Making isIgnored public #72
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Dec 6, 2020
1 parent e426fcf commit d203db8
Show file tree
Hide file tree
Showing 8 changed files with 191 additions and 99 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

Changelog of Violation Comments to Bitbucket Server Plugin.

## Unreleased
### No issue

**Spotbugs report**


[e426fcfd12a60cc](https://github.com/jenkinsci/violation-comments-to-stash-plugin/commit/e426fcfd12a60cc) Tomas Bjerre *2020-09-27 17:33:00*


## 1.125
### No issue

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ node {
{{violation.message}}
""",
ignorePaths: [
[path: 'node_modules'],
[path: '.yarn']
],
violationConfigs: [
// Many more formats available, check https://github.com/tomasbjerre/violations-lib
[parser: 'FINDBUGS', pattern: '.*/findbugs/.*\\.xml\$', reporter: 'Findbugs'],
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<jenkins.version>2.7.4</jenkins.version>
<findbugs.failOnError>false</findbugs.failOnError>
<maven.javadoc.skip>true</maven.javadoc.skip>
<violation-comments-lib>1.99</violation-comments-lib>
<violations-lib>1.132</violations-lib>
<violations-maven>1.40</violations-maven>
<changelog>1.62</changelog>
<violation-comments-lib>1.100</violation-comments-lib>
<violations-lib>1.139</violations-lib>
<violations-maven>1.42</violations-maven>
<changelog>1.63</changelog>
</properties>

<artifactId>violation-comments-to-stash</artifactId>
Expand Down
33 changes: 33 additions & 0 deletions src/main/java/org/jenkinsci/plugins/jvctb/config/IgnorePath.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package org.jenkinsci.plugins.jvctb.config;

import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.Extension;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor;
import java.io.Serializable;
import org.kohsuke.stapler.DataBoundConstructor;

public class IgnorePath extends AbstractDescribableImpl<IgnorePath> implements Serializable {
private static final long serialVersionUID = -6308067752266925L;
private String path;

public IgnorePath() {}

@DataBoundConstructor
public IgnorePath(final String path) {
this.path = path;
}

public String getPath() {
return this.path;
}

@Extension
public static class DescriptorImpl extends Descriptor<IgnorePath> {
@NonNull
@Override
public String getDisplayName() {
return "Ignore path";
}
}
}
Loading

0 comments on commit d203db8

Please sign in to comment.