Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: f6af48a1bf3c553751a40a98fa126fd56fd3993f
  • Loading branch information
Default email authored and pjreiniger committed Nov 5, 2023
1 parent 5bd2718 commit 67d83cd
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 8 deletions.
10 changes: 8 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# Auto detect text files and perform LF normalization
* text=auto
*.gradle text eol=lf
*.java text eol=lf
*.md text eol=lf
*.xml text eol=lf
*.fxml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
4 changes: 2 additions & 2 deletions .wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"enableCppIntellisense": false,
"currentLanguage": "java",
"projectYear": "2023",
"teamNumber": 9999
}
"teamNumber": 3504
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "java"
id "com.diffplug.spotless" version "6.12.0" apply false
id "edu.wpi.first.GradleRIO" version "2023.4.3"
id 'com.diffplug.spotless' version '6.12.0' apply false
}

sourceCompatibility = JavaVersion.VERSION_11
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions styleguide/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@
<property name="charset" value="UTF-8" />
<property name="severity" value="error" />
<property name="fileExtensions" value="java, properties, xml" />
<module name="SuppressionFilter">
<property name="file"
value="${config_loc}/checkstyle_suppressions.xml" />
</module>
<module name="FileTabCharacter">
<property name="eachLine" value="true" />
</module>
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf_cr_crlf" />
</module>
<!-- <module name="LineLength"> -->
<!-- <property name="fileExtensions" value="java"/> -->
<!-- <property name="max" value="200"/> -->
<!-- <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> -->
<!-- </module> -->
<module name="TreeWalker">
<module name="SuppressWarningsHolder" />
<module name="OuterTypeFilename" />
Expand Down
14 changes: 14 additions & 0 deletions styleguide/checkstyle_suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>

<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<suppress files="Pipeline.java" checks="[a-zA-Z0-9]*" />
<suppress files="PipelineListener.java" checks="[a-zA-Z0-9]*" />
<suppress files="GripPipeline.java" checks="[a-zA-Z0-9]*" />
<suppress files="GripPipelineListener.java"
checks="[a-zA-Z0-9]*" />
<suppress files="[\\/]edu[\\/]wpi[\\/]" checks="." />
<suppress files="[\\/]com[\\/]gos[\\/]chargedup[\\/]temp[\\/]" checks="." />
</suppressions>
9 changes: 7 additions & 2 deletions styleguide/pmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@

<rule ref="category/java/codestyle.xml/ClassNamingConventions">
<properties>
<!-- <property name="classPattern" value="[A-Z][a-zA-Z0-9]*" /> -->
<!-- <property name="abstractClassPattern" value="[A-Z][a-zA-Z0-9]*" /> -->
<!-- <property name="interfacePattern" value="[A-Z][a-zA-Z0-9]*" /> -->
<!-- <property name="enumPattern" value="[A-Z][a-zA-Z0-9]*" /> -->
<!-- <property name="annotationPattern" value="[A-Z][a-zA-Z0-9]*" /> -->
<property name="utilityClassPattern"
value="[A-Z][a-zA-Z0-9]*" />
</properties>
Expand Down Expand Up @@ -73,8 +78,8 @@
<!-- <exclude name="NcssMethodCount" /> -->
<!-- <exclude name="NPathComplexity" /> -->
<!-- <exclude name="SignatureDeclareThrowsException" /> -->
<!-- <exclude name="TooManyFields" /> -->
<!-- <exclude name="TooManyMethods" /> -->
<exclude name="TooManyFields" />
<exclude name="TooManyMethods" />
</rule>

<!-- <rule ref="category/java/documentation.xml"> -->
Expand Down
19 changes: 18 additions & 1 deletion styleguide/styleguide.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@

apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'pmd'

jacoco {
toolVersion = "0.8.8"
}
//jacocoTestReport {
// dependsOn test
// reports {
// xml.enabled true
// html.enabled true
// }
//}
//
//test {
// finalizedBy jacocoTestReport
//}


checkstyle {
toolVersion = "10.0"
toolVersion = "10.1"
configDirectory.set(file("${project.rootDir}/styleguide"))
}

Expand Down

0 comments on commit 67d83cd

Please sign in to comment.