Skip to content

Instantly share code, notes, and snippets.

@leeym
Last active November 8, 2016 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leeym/d7d7b8099a530d6c0c518c80bd4994c5 to your computer and use it in GitHub Desktop.
Save leeym/d7d7b8099a530d6c0c518c80bd4994c5 to your computer and use it in GitHub Desktop.
package com.wealthfront.test.filesetcheck;
import com.wealthfront.test.filesetcheck.BadSnippetsFileSetCheck.CodeSnippets;
import com.wealthfront.test.filesetcheck.BadSnippetsFileSetCheck.Snippet;
@CodeSnippets(fileExtension = "java", snippets = {
@Snippet(value = "\\n(?!@Transactional.*)\\n.*(?!abstract\\b).*extends Task\\b[^>]",
rationale = "Tasks must be transactional."),
})
public class JavaBadCodeSnippetsTest {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment