undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
This commit is contained in:
commit
0a580b313d
70422 changed files with 17213626 additions and 0 deletions
24
make/langtools/conf/checkstyle-emacs.xsl
Normal file
24
make/langtools/conf/checkstyle-emacs.xsl
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="text" omit-xml-declaration="yes"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
Coding Style Check Results
|
||||
--------------------------
|
||||
Total files checked: <xsl:number level="any" value="count(descendant::file)"/>
|
||||
Files with errors: <xsl:number level="any" value="count(descendant::file[error])"/>
|
||||
Total errors: <xsl:number level="any" value="count(descendant::error)"/>
|
||||
Errors per file: <xsl:number level="any" value="count(descendant::error) div count(descendant::file)"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="file[error]">
|
||||
<xsl:apply-templates select="error"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error">
|
||||
<xsl:value-of select="../@name"/>:<xsl:value-of select="@line"/><xsl:text>: </xsl:text><xsl:value-of select="@message"/><xsl:text>
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
47
make/langtools/conf/checkstyle-langtools.xml
Normal file
47
make/langtools/conf/checkstyle-langtools.xml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
|
||||
<!--
|
||||
Checks for initial langtools code conventions, we are starting with
|
||||
imports and import orders and this will grow to encompass other
|
||||
violations over time.
|
||||
-->
|
||||
|
||||
<module name="Checker">
|
||||
|
||||
<!-- Checks for whitespace. -->
|
||||
<module name="FileTabCharacter">
|
||||
<property name="fileExtensions" value=".java"/>
|
||||
</module>
|
||||
|
||||
<!-- Miscellaneous other checks. -->
|
||||
<module name="RegexpSingleline">
|
||||
<property name="format" value="\s+$"/>
|
||||
<property name="minimum" value="0"/>
|
||||
<property name="maximum" value="0"/>
|
||||
<property name="message" value="Line has trailing spaces."/>
|
||||
<property name="fileExtensions" value=".java .html"/>
|
||||
</module>
|
||||
|
||||
<module name="TreeWalker">
|
||||
<!-- Checks for imports -->
|
||||
<!--
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="IllegalImport"/>
|
||||
-->
|
||||
<module name="GenericWhitespace"/>
|
||||
<module name="RedundantImport"/>
|
||||
<module name="UnusedImports"/>
|
||||
<module name="ImportOrder">
|
||||
<property name="groups" value="java, javax, org, com"/>
|
||||
<property name="ordered" value="true"/>
|
||||
<property name="separated" value="true"/>
|
||||
</module>
|
||||
<module name="EmptyForInitializerPad">
|
||||
<property name="option" value="space"/>
|
||||
</module>
|
||||
<module name="WhitespaceAfter"/>
|
||||
</module>
|
||||
</module>
|
||||
Loading…
Add table
Add a link
Reference in a new issue