Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate formatting #183

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

MarkEWaite
Copy link
Contributor

Automate formatting

Simplify maintenance by automating code formatting and and pom formatting.

Format with mvn spotless:apply.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@MarkEWaite MarkEWaite added the chore Reduces maintenance effort by changes not directly visible to users label Jan 6, 2023
@github-actions github-actions bot removed the chore Reduces maintenance effort by changes not directly visible to users label Jan 6, 2023
}

@POST
public FormValidation doCheckFailedFails(@QueryParameter String value) {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check

Potential missing permission check in DescriptorImpl#doCheckFailedFails
}

@POST
public FormValidation doCheckFailedSkips(@QueryParameter String value) {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check

Potential missing permission check in DescriptorImpl#doCheckFailedSkips
}

@POST
public FormValidation doCheckUnstableFails(@QueryParameter String value) {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check

Potential missing permission check in DescriptorImpl#doCheckUnstableFails
}

@POST
public FormValidation doCheckUnstableSkips(@QueryParameter String value) {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check

Potential missing permission check in DescriptorImpl#doCheckUnstableSkips
if (newGraphNotNeeded(req, rsp)) {
return;
}
public void doGraphMap(final StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check

Potential missing permission check in TestNGProjectAction#doGraphMap
* @throws IOException -
*/
// @org.kohsuke.stapler.verb.POST // POST blocks graph rendering in groovy web page
public void doGraph(final StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing permission check

Potential missing permission check in TestNGProjectAction#doGraph
if (newGraphNotNeeded(req, rsp)) {
return;
}
public void doGraphMap(final StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation

Potential CSRF vulnerability: If TestNGProjectAction#doGraphMap connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
* @throws IOException -
*/
// @org.kohsuke.stapler.verb.POST // POST blocks graph rendering in groovy web page
public void doGraph(final StaplerRequest req, StaplerResponse rsp) throws IOException {

Check warning

Code scanning / Jenkins Security Scan

Stapler: Missing POST/RequirePOST annotation

Potential CSRF vulnerability: If TestNGProjectAction#doGraph connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST
@MarkEWaite MarkEWaite merged commit 9e84ff6 into jenkinsci:master Jan 6, 2023
@MarkEWaite MarkEWaite deleted the automate-code-formatting branch January 6, 2023 23:39
@MarkEWaite MarkEWaite added the chore Reduces maintenance effort by changes not directly visible to users label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Reduces maintenance effort by changes not directly visible to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant