diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/HeaderCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/HeaderCheck.java new file mode 100644 index 000000000..ae1fcafbf --- /dev/null +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/HeaderCheck.java @@ -0,0 +1,29 @@ +package com.puppycrawl.tools.checkstyle.checks; + +import com.puppycrawl.tools.checkstyle.api.Check; + +/** + * Checks that the header of the source file is correct. + * + *
+ * Rationale: In most projects each file must have a fixed header, + * usually the header contains copyright information. + *
+ * + * @author Lars Kühne + */ +public class HeaderCheck extends Check +{ + /** @see Check */ + public int[] getDefaultTokens() + { + return new int[0]; + } + + /** @see Check */ + public void beginTree() + { + String[] lines = getLines(); + log(0,"file has " + lines.length + " lines"); + } +}