From 7da0053a0cbe323af6f7bf49e60b574691b458a9 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 25 Mar 2019 20:23:42 +0100 Subject: [PATCH] scripts: gitlint: Fix broken module docstring Needs to be at the beginning of the file. Fixes a pylint warning: scripts/process_gperf.py:26:-1: W0105: String statement has no effect (pointless-string-statement) Signed-off-by: Ulf Magnusson --- scripts/gitlint/zephyr_commit_rules.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gitlint/zephyr_commit_rules.py b/scripts/gitlint/zephyr_commit_rules.py index 14858afdbf1..67cd30ed529 100644 --- a/scripts/gitlint/zephyr_commit_rules.py +++ b/scripts/gitlint/zephyr_commit_rules.py @@ -1,7 +1,3 @@ -from gitlint.rules import CommitRule, RuleViolation, TitleRegexMatches, CommitMessageTitle, LineRule, CommitMessageBody -from gitlint.options import IntOption, BoolOption, StrOption, ListOption -import re - """ The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that act on the entire commit at once. Once the rules are discovered, gitlint will automatically take care of applying them @@ -15,6 +11,10 @@ While every LineRule can be implemented as a CommitRule, it's usually easier and that fits your needs. """ +from gitlint.rules import CommitRule, RuleViolation, TitleRegexMatches, CommitMessageTitle, LineRule, CommitMessageBody +from gitlint.options import IntOption, BoolOption, StrOption, ListOption +import re + class BodyMinLineCount(CommitRule): # A rule MUST have a human friendly name name = "body-min-line-count"