Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Yetus is added to Hive in release 3.0.0 to run checks on the new patches. See: See HIVE-15051.

There are several rules already defined by the community, but most of them are not enforced.

Yetus helps us by checking these rules only for newly introduced errors, so no full refactoring is required for change, but errors. Note that Yetus checks only the changed part of the code. If any unchanged code contains errors, then Yetus will not report them, but all of the new code should conform to the rules.

The following Yetus plugins are used in the Hive personality:

  • asflicense - Rat asflicense  Rat check to validate ASF headers.

  • author  Checks author - Check that there is not @author tag in the files.

  • checkstyle - checkstyle  Runs checkstyle.

  • findbugs - findbugs  Runs findbugs.

  • compile - compile  Shows compile warnings.

  • javadoc - javadoc  Shows javadoc problems.

  • whitespace - whitespace  Checks for extra whitespaces.

  • xml - xml  Checks xml validity.

Findbugs

To run findbugs checks, the findbugs binary should be installed on the computer , and the FINDBUGS_HOME environment variable should be set. This The binary can be downloaded here.

Code Block
export FINDBUGS_HOME=~/dev/upstream/findbugs-3.0.1/

Running Yetus

First checkout a copy of the branch you are targeting without your commits.

Then run the checks The checks could be run with the following command:

...