From d8c8643b52b4c1e993b127780dca849932e2aeed Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 15 May 2018 23:58:20 -0700 Subject: [PATCH] Format HTML and XML files (#944) Generated by wpilibsuite/styleguide#52. --- styleguide/checkstyle.xml | 478 +++++++++-------- styleguide/checkstyleExamples.xml | 486 ++++++++++-------- styleguide/pmd-ruleset.xml | 97 ++-- styleguide/suppressions.xml | 13 +- tidy-html.conf | 3 + tidy-xml.conf | 4 + .../java/edu/wpi/first/wpilibj/package.html | 55 +- 7 files changed, 633 insertions(+), 503 deletions(-) create mode 100644 tidy-html.conf create mode 100644 tidy-xml.conf diff --git a/styleguide/checkstyle.xml b/styleguide/checkstyle.xml index 830c3a5462..b92bd008a1 100644 --- a/styleguide/checkstyle.xml +++ b/styleguide/checkstyle.xml @@ -1,8 +1,7 @@ - - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/styleguide/checkstyleExamples.xml b/styleguide/checkstyleExamples.xml index e2d1e6814f..99aabc8ef2 100644 --- a/styleguide/checkstyleExamples.xml +++ b/styleguide/checkstyleExamples.xml @@ -1,8 +1,7 @@ - - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/styleguide/pmd-ruleset.xml b/styleguide/pmd-ruleset.xml index 950c133ac8..1b50aa778d 100644 --- a/styleguide/pmd-ruleset.xml +++ b/styleguide/pmd-ruleset.xml @@ -3,59 +3,58 @@ xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"> - - - - - - - - - - - - - - - - - - - - - - - - - - - Use Objects.requireNonNull() instead of throwing a NullPointerException yourself. - - - - - + + + + + + + + + + + + + + + + + + + + + + + + Use Objects.requireNonNull() instead of throwing a + NullPointerException yourself. + + + + - - - - 3 - - + + + 3 + + - - - + + diff --git a/styleguide/suppressions.xml b/styleguide/suppressions.xml index 9c98b44a35..80e5a1b0d0 100644 --- a/styleguide/suppressions.xml +++ b/styleguide/suppressions.xml @@ -1,9 +1,10 @@ - - + - - + + diff --git a/tidy-html.conf b/tidy-html.conf new file mode 100644 index 0000000000..23c4e739c2 --- /dev/null +++ b/tidy-html.conf @@ -0,0 +1,3 @@ +indent: yes +indent-spaces: 2 +wrap: 80 diff --git a/tidy-xml.conf b/tidy-xml.conf new file mode 100644 index 0000000000..0fb9bdaf8f --- /dev/null +++ b/tidy-xml.conf @@ -0,0 +1,4 @@ +indent: yes +indent-spaces: 2 +indent-attributes: yes +literal-attributes: yes diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/package.html b/wpilibj/src/main/java/edu/wpi/first/wpilibj/package.html index beaa189373..d11ae27cdb 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/package.html +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/package.html @@ -1,25 +1,30 @@ - - - - WPI Robotics library - - - -The WPI Robotics library (WPILibJ) is a set of Java classes that interfaces to the hardware in the -FRC control system and your robot. There are classes to handle sensors, motors, the driver -station, and a number of other utility functions like timing and field management. -The library is designed to: -
    -
  • Deal with all the low level interfacing to these components so you can concentrate on - solving this year's "robot problem". This is a philosophical decision to let you focus - on the higher-level design of your robot rather than deal with the details of the - processor and the operating system. -
  • -
  • Understand everything at all levels by making the full source code of the library - available. You can study (and modify) the algorithms used by the gyro class for - oversampling and integration of the input signal or just ask the class for the current - robot heading. You can work at any level. -
  • -
- - + + + + + WPI Robotics library + + + + + The WPI Robotics library (WPILibJ) is a set of Java classes that interfaces + to the hardware in the FRC control system and your robot. There are classes + to handle sensors, motors, the driver station, and a number of other + utility functions like timing and field management. The library is designed + to: +
    +
  • Deal with all the low level interfacing to these components so you + can concentrate on solving this year's "robot problem". This is a + philosophical decision to let you focus on the higher-level design of + your robot rather than deal with the details of the processor and the + operating system. +
  • +
  • Understand everything at all levels by making the full source code of + the library available. You can study (and modify) the algorithms used by + the gyro class for oversampling and integration of the input signal or + just ask the class for the current robot heading. You can work at any + level. +
  • +
+ +