diff --git a/src/analysis/auto_ref_assignment.d b/src/analysis/auto_ref_assignment.d index 7ff6e8b..42076ee 100644 --- a/src/analysis/auto_ref_assignment.d +++ b/src/analysis/auto_ref_assignment.d @@ -76,7 +76,7 @@ class AutoRefAssignmentCheck : BaseAnalyzer private: - enum string MESSAGE = "Assignment to auto-ref function parameter"; + enum string MESSAGE = "Assignment to auto-ref function parameter."; enum string KEY = "dscanner.suspicious.auto_ref_assignment"; invariant diff --git a/src/analysis/redundant_parens.d b/src/analysis/redundant_parens.d index 1a177ae..dffc01c 100644 --- a/src/analysis/redundant_parens.d +++ b/src/analysis/redundant_parens.d @@ -10,10 +10,14 @@ import dparse.lexer; import analysis.base; import dsymbol.scope_ : Scope; +/** + * Checks for redundant parenthesis + */ class RedundantParenCheck : BaseAnalyzer { alias visit = BaseAnalyzer.visit; + /// this(string fileName, const(Scope)* sc) { super(fileName, sc); @@ -32,7 +36,7 @@ class RedundantParenCheck : BaseAnalyzer if (unary.primaryExpression.expression is null) goto end; addErrorMessage(unary.primaryExpression.expression.line, - unary.primaryExpression.expression.column, KEY, "Redundant parenthesis"); + unary.primaryExpression.expression.column, KEY, "Redundant parenthesis."); end: statement.accept(this); } @@ -50,7 +54,7 @@ class RedundantParenCheck : BaseAnalyzer if (unary.primaryExpression.expression is null) goto end; addErrorMessage(primaryExpression.expression.line, - primaryExpression.expression.column, KEY, "Redundant parenthesis"); + primaryExpression.expression.column, KEY, "Redundant parenthesis."); end: primaryExpression.accept(this); }