From d22825463f79da5fd518dde609bafd500614a84e Mon Sep 17 00:00:00 2001 From: Felipe Zorzo Date: Fri, 4 Oct 2024 23:49:41 -0300 Subject: [PATCH] chore: Update config example --- zpa-config-example.json | 91 +++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 49 deletions(-) diff --git a/zpa-config-example.json b/zpa-config-example.json index e133b4e..d4e5154 100644 --- a/zpa-config-example.json +++ b/zpa-config-example.json @@ -1,85 +1,78 @@ { "$schema": "schema.json", "rules": { - "EmptyBlock": "minor", - "ParsingError": "info", + "AddParenthesesInNestedExpression": "major", + "CharacterDatatypeUsage": "minor", "CollapsibleIfStatements": "major", - "InequalityUsage": "major", + "ColumnsShouldHaveTableName": "major", + "CommitRollback": "major", + "ComparisonWithBoolean": "minor", "ComparisonWithNull": "blocker", - "TooManyRowsHandler": "critical", - "InsertWithoutColumns": "critical", + "ConcatenationWithNull": "minor", + "CursorBodyInPackageSpec": "major", + "DbmsOutputPut": "minor", + "DeadCode": "major", "DeclareSectionWithoutDeclarations": "info", - "NvlWithNullParameter": "blocker", - "ComparisonWithBoolean": "minor", - "CharacterDatatypeUsage": "minor", - "SelectAllColumns": "major", - "ColumnsShouldHaveTableName": "major", - "SelectWithRownumAndOrderBy": "blocker", - "ToDateWithoutFormat": "major", + "DisabledTest": "major", + "DuplicateConditionIfElsif": "blocker", + "DuplicatedValueInIn": "blocker", + "EmptyBlock": "minor", + "EmptyStringAssignment": "minor", "ExplicitInParameter": "minor", - "VariableInitializationWithNull": "minor", - "UselessParenthesis": "minor", + "FunctionWithOutParameter": "major", "IdenticalExpression": "blocker", - "EmptyStringAssignment": "minor", - "DuplicatedValueInIn": "blocker", - "VariableInitializationWithFunctionCall": "major", "IfWithExit": "minor", - "FunctionWithOutParameter": "major", - "SameCondition": "blocker", - "AddParenthesesInNestedExpression": "major", - "RaiseStandardException": "major", + "InequalityUsage": "major", + "InsertWithoutColumns": "critical", + "InvalidReferenceToObject": "major", + "NotASelectedExpression": "critical", "NotFound": "minor", + "NvlWithNullParameter": "blocker", + "ParsingError": "info", "QueryWithoutExceptionHandling": { "level": "critical", "parameters": { "strict": "true" } }, - "UnusedVariable": "major", - "VariableHiding": "major", - "DbmsOutputPut": "minor", + "RaiseStandardException": "major", + "RedundantExpectation": "major", "ReturnOfBooleanExpression": "minor", - "UnnecessaryElse": "minor", - "DeadCode": "major", - "ConcatenationWithNull": "minor", "SameBranch": "major", - "UnusedParameter": { - "level": "major", - "parameters": { - "ignoreMethods": "" - } - }, - "CommitRollback": "major", - "UnnecessaryNullStatement": "minor", - "DuplicateConditionIfElsif": "blocker", + "SameCondition": "blocker", + "SelectAllColumns": "major", + "SelectWithRownumAndOrderBy": "blocker", + "ToCharInOrderBy": "major", + "ToDateWithoutFormat": "major", + "TooManyRowsHandler": "critical", + "UnhandledUserDefinedException": "critical", "UnnecessaryAliasInQuery": { "level": "minor", "parameters": { "acceptedLength": "3" } }, - "VariableInCount": "blocker", - "UnhandledUserDefinedException": "critical", + "UnnecessaryElse": "minor", + "UnnecessaryLike": "minor", + "UnnecessaryNullStatement": "minor", "UnusedCursor": "major", - "NotASelectedExpression": "critical", - "InvalidReferenceToObject": "major", - "CursorBodyInPackageSpec": "major", - "XPath": { + "UnusedParameter": { "level": "major", "parameters": { - "xpathQuery": "", - "message": "The XPath expression matches this piece of code" + "ignoreMethods": "" } }, + "UnusedVariable": "major", + "UselessParenthesis": "minor", + "VariableHiding": "major", + "VariableInCount": "blocker", + "VariableInitializationWithFunctionCall": "major", + "VariableInitializationWithNull": "minor", "VariableName": { "level": "minor", "parameters": { "regexp": "[a-zA-Z]([a-zA-Z0-9_]*[a-zA-Z0-9])?" } - }, - "ToCharInOrderBy": "major", - "DisabledTest": "major", - "RedundantExpectation": "major", - "UnnecessaryLike": "minor" + } } }