Skip to content

Commit

Permalink
Suppress false positive warnings (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Mar 24, 2023
1 parent 960cbb5 commit 9483365
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void setTemplateJobMap(Multimap<String, SeedReference> templateJobMap) {
this.templateJobMap = templateJobMap;
}

@SuppressWarnings({"lgtm[jenkins/csrf]", "lgtm[jenkins/no-permission-check]"})
public ListBoxModel doFillRemovedJobActionItems() {
ListBoxModel items = new ListBoxModel();
for (RemovedJobAction action : RemovedJobAction.values()) {
Expand All @@ -68,6 +69,7 @@ public ListBoxModel doFillRemovedJobActionItems() {
return items;
}

@SuppressWarnings({"lgtm[jenkins/csrf]", "lgtm[jenkins/no-permission-check]"})
public ListBoxModel doFillRemovedViewActionItems() {
ListBoxModel items = new ListBoxModel();
for (RemovedViewAction action : RemovedViewAction.values()) {
Expand All @@ -79,6 +81,7 @@ public ListBoxModel doFillRemovedViewActionItems() {
/**
* @since 1.62
*/
@SuppressWarnings({"lgtm[jenkins/csrf]", "lgtm[jenkins/no-permission-check]"})
public ListBoxModel doFillRemovedConfigFilesActionItems() {
ListBoxModel items = new ListBoxModel();
for (RemovedConfigFilesAction action : RemovedConfigFilesAction.values()) {
Expand All @@ -87,6 +90,7 @@ public ListBoxModel doFillRemovedConfigFilesActionItems() {
return items;
}

@SuppressWarnings({"lgtm[jenkins/csrf]", "lgtm[jenkins/no-permission-check]"})
public ListBoxModel doFillLookupStrategyItems() {
ListBoxModel items = new ListBoxModel();
for (LookupStrategy item : LookupStrategy.values()) {
Expand Down

0 comments on commit 9483365

Please sign in to comment.