This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.bubblemix.cardcheck; | |
/** | |
* Validator for credit card numbers | |
* Checks validity and returns card type | |
* | |
* @author ian.chen | |
*/ | |
public class RegexCardValidator { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<profile><name>Default</name><language>java</language><rules><rule><repositoryKey>squid</repositoryKey><key>S1223</key><priority>MAJOR</priority></rule><rule><repositoryKey>squid</repositoryKey><key>S1318</key><priority>CRITICAL</priority></rule><rule><repositoryKey>squid</repositoryKey><key>S1312</key><priority>MAJOR</priority><parameters><parameter><key>format</key><value>LOG(?:GER)?</value></parameter></parameters></rule><rule><repositoryKey>squid</repositoryKey><key>S1319</key><priority>MAJOR</priority></rule><rule><repositoryKey>squid</repositoryKey><key>S1231</key><priority>MINOR</priority></rule><rule><repositoryKey>pmd</repositoryKey><key>CompareObjectsWithEquals</key><priority>MAJOR</priority></rule><rule><repositoryKey>squid</repositoryKey><key>S1217</key><priority>CRITICAL</priority></rule><rule><repositoryKey>squid</repositoryKey><key>S1219</key><priority>CRITICAL</priority></rule><rule><repositoryKey>squid</repositoryKey><key>S1210</key><priority>CRITICAL</p |