CatapultServer  v0.5.0.1 (Elephant)
ValidationResult.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "FacilityCode.h"
23 #include "catapult/utils/Casting.h"
24 #include "catapult/utils/Logging.h"
25 #include <iosfwd>
26 
27 namespace catapult { namespace validators {
28 
30  enum class ResultSeverity : uint8_t {
32  Success = 0,
33 
35  Neutral = 1,
36 
38  Failure = 2
39  };
40 
42  enum class ResultFlags : uint8_t {
44  None,
45 
47  Verbose = 1
48  };
49 
51  enum class ValidationResult : uint32_t {
53  Success = 0x00000000,
54 
56  Neutral = 0x40000000,
57 
59  Failure = 0x80000000
60  };
61 
63  constexpr ValidationResult MakeValidationResult(ResultSeverity severity, FacilityCode facility, uint16_t code, ResultFlags flags) {
64  return static_cast<ValidationResult>(
65  (static_cast<uint32_t>(severity) & 0x03) << 30 | // 01..02: severity
66  (static_cast<uint32_t>(flags) & 0x3F) << 24 | // 03..08: flags
67  static_cast<uint32_t>(facility) << 16 | // 09..16: facility
68  code); // 16..32: code
69  }
70 
72 #define DEFINE_VALIDATION_RESULT(SEVERITY, FACILITY, DESCRIPTION, CODE, FLAGS) \
73  constexpr auto SEVERITY##_##FACILITY##_##DESCRIPTION = validators::MakeValidationResult( \
74  (validators::ResultSeverity::SEVERITY), \
75  (validators::FacilityCode::FACILITY), \
76  CODE, \
77  (validators::ResultFlags::FLAGS))
78 
81  return static_cast<ResultSeverity>(utils::to_underlying_type(result) >> 30);
82  }
83 
85  constexpr bool IsSet(ValidationResult result, ResultFlags flags) {
86  return utils::to_underlying_type(flags) == (utils::to_underlying_type(flags) & (utils::to_underlying_type(result) >> 24 & 0x3F));
87  }
88 
91  return ResultSeverity::Success == GetSeverity(result);
92  }
93 
96  return ResultSeverity::Failure == GetSeverity(result);
97  }
98 
102  }
103 
105  std::ostream& operator<<(std::ostream& out, ValidationResult result);
106 }}
validation.TypoChecker.errors
errors
Definition: validation.py:310
validation.InsertionOperatorFormattingValidator
Definition: validation.py:1193
validation.CatchWithoutClosingTryBrace.__init__
def __init__(self, errorReporter)
Definition: validation.py:168
ConsumerResults.h
validation.MultiConditionChecker.patternSingleLineFunction
patternSingleLineFunction
Definition: validation.py:595
validation.WhitespaceLineValidator.patternTabInside
patternTabInside
Definition: validation.py:32
validation.MultiConditionChecker.checkEnumClass
def checkEnumClass(self, line)
Definition: validation.py:678
validation.CopyrightCommentValidator
Definition: validation.py:1063
validation.stripCommentsAndStrings
def stripCommentsAndStrings(line)
Definition: validation.py:10
validation.EnumValueBlankLineValidator.formatError
def formatError(err)
Definition: validation.py:971
validation.MultiConditionChecker.checkCoerce
def checkCoerce(self, line)
Definition: validation.py:681
validation.WhitespaceLineValidator
Definition: validation.py:20
validation.RegionValidator
Definition: validation.py:848
validation.MultiConditionChecker.patternTest
patternTest
Definition: validation.py:570
validation.MultiConditionChecker.checkTestAsserts
def checkTestAsserts(self, line)
Definition: validation.py:708
validation.BasicFunctionAliasValidator.check
def check(self, lineNumber, line)
Definition: validation.py:429
validation.EmptyStatementValidator.previousStrippedLine
previousStrippedLine
Definition: validation.py:1118
SimpleValidator.Line
Definition: SimpleValidator.py:1
validation.WhitespaceLineValidator.patternSpaceOperator
patternSpaceOperator
Definition: validation.py:30
validation.WhitespaceLineValidator.patternSpacesMiddle
patternSpacesMiddle
Definition: validation.py:29
validation.CatchWithoutClosingTryBrace.check
def check(self, lineNumber, line)
Definition: validation.py:172
validation.TypoChecker.check
def check(self, lineNumber, line)
Definition: validation.py:403
validation.MultiConditionChecker.patternOperatorBoolWithExplicit
patternOperatorBoolWithExplicit
Definition: validation.py:569
validation.WhitespaceLineValidator.NAME
string NAME
Definition: validation.py:22
validation.WhitespaceLineValidator.patternTabsStart
patternTabsStart
Definition: validation.py:28
validation.MultiConditionChecker.patternDefineTests
patternDefineTests
Definition: validation.py:578
validation.SingleLineValidator.reset
def reset(self, path)
Definition: validation.py:188
validation.MultiConditionChecker.patternDefineTestTraits
patternDefineTestTraits
Definition: validation.py:579
validation.TypoChecker
Definition: validation.py:304
validation.PragmaOnceValidator.NAME
string NAME
Definition: validation.py:244
validation.SpaceBraceValidator.check
def check(self, lineNumber, line)
Definition: validation.py:488
validation.TemplateSpaceValidator.patternTemplate
patternTemplate
Definition: validation.py:152
validation.ReturnOnNewLineValidator.patternReturn
patternReturn
Definition: validation.py:524
validation.MultiConditionChecker.patternMissingExplicitCtor
patternMissingExplicitCtor
Definition: validation.py:574
catapult::utils::HexFormat
constexpr void HexFormat(const ByteArray< N, TTag > &)
validation.NamespaceOpeningBraceVerticalSpacingValidator.check
def check(self, lineNumber, line)
Definition: validation.py:1030
catapult::validators::IsValidationResultSuccess
constexpr bool IsValidationResultSuccess(ValidationResult result)
Returns a value indicating whether the validation result is a success.
Definition: ValidationResult.h:90
validation.SpaceBraceValidator.NAME
string NAME
Definition: validation.py:447
validation.Cpp17TraitsValidator
Definition: validation.py:745
validation.EnumValueBlankLineValidator.previousLine
previousLine
Definition: validation.py:960
validation.MacroSemicolonValidator
Definition: validation.py:910
validation.MultiConditionChecker.errors
errors
Definition: validation.py:601
validation.CopyrightCommentValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:1069
validation.CatchWithoutClosingTryBrace
Definition: validation.py:164
validation.NamespaceOpeningBraceVerticalSpacingValidator.formatError
def formatError(err)
Definition: validation.py:1058
validation.SpaceBraceValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:449
validation.CopyrightCommentValidator.formatError
def formatError(err)
Definition: validation.py:1093
validation.DocumentationVerticalSpacingValidator.reportError
def reportError(self, lineNumber, line, message)
Definition: validation.py:1184
validation.RegionValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:854
validation.CatchWithoutClosingTryBrace.NAME
string NAME
Definition: validation.py:166
validation.EnumValueBlankLineValidator.patternEnumValue
patternEnumValue
Definition: validation.py:958
validation.TestClassMacroValidator.hasMismatchedTestClass
hasMismatchedTestClass
Definition: validation.py:92
Results.h
validation.MultiConditionChecker.checkTestNameIf
def checkTestNameIf(self, line)
Definition: validation.py:730
validation.SpaceBraceValidator
Definition: validation.py:443
validation.InsertionOperatorFormattingValidator.previousStrippedLine
previousStrippedLine
Definition: validation.py:1200
validation.TemplateSpaceValidator
Definition: validation.py:146
validation.PragmaOnceValidator.emptyLineNumber
emptyLineNumber
Definition: validation.py:252
validation.MacroSemicolonValidator.check
def check(self, lineNumber, line)
Definition: validation.py:932
validation.RegionValidator.counter
counter
Definition: validation.py:861
validation.Cpp17TraitsValidator.valuePattern
valuePattern
Definition: validation.py:755
validation.UtilsSubdirValidator.check
def check(self, lineNumber, line)
Definition: validation.py:802
catapult::validators::ValidationResult
ValidationResult
Enumeration of all possible validation results.
Definition: ValidationResult.h:51
validation.CopyrightCommentValidator.reset
def reset(self, path)
Definition: validation.py:1074
validation.MultiConditionChecker.patternOperatorBool
patternOperatorBool
Definition: validation.py:568
validation.TestClassMacroValidator.reset
def reset(self, path)
Definition: validation.py:88
CASE_WELL_KNOWN_RESULT
#define CASE_WELL_KNOWN_RESULT(CODE)
Definition: ValidationResult.cpp:29
validation.ClosingBraceVerticalSpacingValidator.formatError
def formatError(err)
Definition: validation.py:1012
catapult::validators::ResultFlags::Verbose
Result is verbose and should be suppressed from most logs.
SimpleValidator.SimpleValidator
Definition: SimpleValidator.py:9
validation.MacroSemicolonValidator.formatError
def formatError(err)
Definition: validation.py:945
validation.UtilsSubdirValidator.reset
def reset(self, path)
Definition: validation.py:792
validation.MultiConditionChecker.patternOperator
patternOperator
Definition: validation.py:581
validation.UtilsSubdirValidator.formatError
def formatError(err)
Definition: validation.py:810
validation.TestClassMacroValidator.check
def check(self, lineNumber, line)
Definition: validation.py:109
catapult::validators::ResultSeverity::Success
Validation result is success.
validation.ReturnOnNewLineValidator.NAME
string NAME
Definition: validation.py:520
validation.WhitespaceLineValidator.patternCarriageReturn
patternCarriageReturn
Definition: validation.py:33
validation.EnumValueBlankLineValidator.NAME
string NAME
Definition: validation.py:954
validation.MultiConditionChecker.patternTestNameIfExclusions
patternTestNameIfExclusions
Definition: validation.py:599
validation.MultiConditionChecker.check
def check(self, lineNumber, line)
Definition: validation.py:733
catapult::validators::IsSet
constexpr bool IsSet(ValidationResult result, ResultFlags flags)
Checks if result has all flags set.
Definition: ValidationResult.h:85
validation.InsertionOperatorFormattingValidator.formatError
def formatError(err)
Definition: validation.py:1218
validation.MultiConditionChecker.isTestValidator
isTestValidator
Definition: validation.py:573
validation.MultiConditionChecker.checkTestExpectedSize
def checkTestExpectedSize(self, line)
Definition: validation.py:705
validation.MacroSemicolonValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:916
validation.TestClassMacroValidator.lineTestClass
lineTestClass
Definition: validation.py:90
validation.ClosingBraceVerticalSpacingValidator.recentLines
recentLines
Definition: validation.py:987
catapult::validators::ResultSeverity
ResultSeverity
Possible result severities (only two bits are used).
Definition: ValidationResult.h:30
validation.UtilsSubdirValidator.finalize
def finalize(self)
Definition: validation.py:805
Results.h
validation.UtilsSubdirValidator.hasUtils
hasUtils
Definition: validation.py:794
Results.h
validation.MultiConditionChecker.patternFileSizeCast
patternFileSizeCast
Definition: validation.py:583
validation.CatchWithoutClosingTryBrace.formatError
def formatError(err)
Definition: validation.py:178
validation.DocumentationVerticalSpacingValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:1169
validation.MultiConditionChecker
Definition: validation.py:553
catapult::utils::to_underlying_type
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
validation.SingleLineValidator.numOpen
numOpen
Definition: validation.py:190
validation.WhitespaceLineValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:24
catapult::validators::operator<<
std::ostream & operator<<(std::ostream &out, ValidationResult result)
Insertion operator for outputting result to out.
Definition: ValidationResult.cpp:69
validation.PragmaOnceValidator.check
def check(self, lineNumber, line)
Definition: validation.py:256
validation.NamespaceOpeningBraceVerticalSpacingValidator.patternNamespaceOpening
patternNamespaceOpening
Definition: validation.py:1025
validation.MultiConditionChecker.patternTryParseValue
patternTryParseValue
Definition: validation.py:582
validation.WhitespaceLineValidator.patternSpacesStart
patternSpacesStart
Definition: validation.py:27
validation.PragmaOnceValidator
Definition: validation.py:242
validation.MultiConditionChecker.checkExplicitCtor
def checkExplicitCtor(self, line)
Definition: validation.py:649
ChainResults.h
validation.SingleLineValidator.formatError
def formatError(err)
Definition: validation.py:237
validation.EmptyStatementValidator
Definition: validation.py:1098
validation.ReturnOnNewLineValidator.formatError
def formatError(err)
Definition: validation.py:548
validation.ReturnOnNewLineValidator
Definition: validation.py:516
validation.PragmaOnceValidator.finalize
def finalize(self)
Definition: validation.py:293
validation.RegionValidator.previousRegionLineNumber
previousRegionLineNumber
Definition: validation.py:863
validation.MultiConditionChecker.patternTestBoolAssert
patternTestBoolAssert
Definition: validation.py:590
validation.NamespaceOpeningBraceVerticalSpacingValidator.patternForwardDeclaration
patternForwardDeclaration
Definition: validation.py:1027
validation.TypoChecker.formatError
def formatError(err)
Definition: validation.py:409
validation.TestClassMacroValidator.NAME
string NAME
Definition: validation.py:81
validation.Cpp17TraitsValidator.check
def check(self, lineNumber, line)
Definition: validation.py:757
validation.TemplateSpaceValidator.check
def check(self, lineNumber, line)
Definition: validation.py:154
SimpleValidator.SimpleValidator.errorReporter
errorReporter
Definition: SimpleValidator.py:11
validation.TestClassMacroValidator.match
def match(self, line, lineNumber)
Definition: validation.py:97
validation.DocumentationVerticalSpacingValidator.formatError
def formatError(err)
Definition: validation.py:1188
validation.TestClassMacroValidator.filename
filename
Definition: validation.py:95
catapult::validators::ResultSeverity::Neutral
Validation result is neither success nor failure.
validation.TypoChecker.NAME
string NAME
Definition: validation.py:306
validation.WhitespaceLineValidator.patternComma
patternComma
Definition: validation.py:34
validation.ReturnOnNewLineValidator.skip
skip
Definition: validation.py:525
validation.CopyrightCommentValidator.hasher
hasher
Definition: validation.py:1076
catapult::utils::LogLevel::Trace
Level for logging trace events.
validation.MultiConditionChecker.patternTestClass
patternTestClass
Definition: validation.py:571
validation.StressTestNameValidator.formatError
def formatError(err)
Definition: validation.py:843
validation.EmptyStatementValidator.formatError
def formatError(err)
Definition: validation.py:1159
validation.MultiConditionChecker.checkSingleLineFunction
def checkSingleLineFunction(self, line)
Definition: validation.py:727
validation.SpaceBraceValidator.patternNameSpaceBrace
patternNameSpaceBrace
Definition: validation.py:451
validation.NamespaceOpeningBraceVerticalSpacingValidator.NAME
string NAME
Definition: validation.py:1021
validation.TestClassMacroValidator.formatError
def formatError(err)
Definition: validation.py:121
validation.MultiConditionChecker.patternTestNameIf
patternTestNameIf
Definition: validation.py:598
validation.WhitespaceLineValidator.carriageReturnCount
carriageReturnCount
Definition: validation.py:39
HexFormatter.h
validation.RegionValidator.firstBeforeNestedLine
firstBeforeNestedLine
Definition: validation.py:864
validation.DocumentationVerticalSpacingValidator.NAME
string NAME
Definition: validation.py:1167
validation.TestClassMacroValidator.finalize
def finalize(self)
Definition: validation.py:116
validation.RegionValidator.finalize
def finalize(self)
Definition: validation.py:894
validation.WhitespaceLineValidator.patternCommentSingle
patternCommentSingle
Definition: validation.py:31
validation.ReturnOnNewLineValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:522
validation.DocumentationVerticalSpacingValidator.previousStrippedLine
previousStrippedLine
Definition: validation.py:1171
validation.WhitespaceLineValidator.reset
def reset(self, path)
Definition: validation.py:37
validation.Cpp17TraitsValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:752
validation.LineLengthValidator.check
def check(self, lineNumber, line)
Definition: validation.py:135
validation.MultiConditionChecker.checkValidationResult
def checkValidationResult(self, line)
Definition: validation.py:668
validation.EnumValueBlankLineValidator
Definition: validation.py:950
validation.BasicFunctionAliasValidator.formatError
def formatError(err)
Definition: validation.py:438
Results.h
validation.MultiConditionChecker.patternEnum
patternEnum
Definition: validation.py:575
validation.WhitespaceLineValidator.patternWhitespaces
patternWhitespaces
Definition: validation.py:26
validation.StressTestNameValidator.reset
def reset(self, path)
Definition: validation.py:822
catapult::utils::LogLevel
LogLevel
Catapult log levels.
Definition: Logging.h:36
validation.TemplateSpaceValidator.NAME
string NAME
Definition: validation.py:148
validation.WhitespaceLineValidator.formatError
def formatError(err)
Definition: validation.py:69
validation.EmptyStatementValidator.NAME
string NAME
Definition: validation.py:1113
validation.TestClassMacroValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:83
validation.MultiConditionChecker.patternTestExpectedSize
patternTestExpectedSize
Definition: validation.py:584
validation.MultiConditionChecker.checkDefineTests
def checkDefineTests(self, line)
Definition: validation.py:688
validation.NamespaceOpeningBraceVerticalSpacingValidator.reportError
def reportError(self, lineNumber, message)
Definition: validation.py:1054
validation.MultiConditionChecker.checkFileSize
def checkFileSize(self, line)
Definition: validation.py:691
validation.ReturnOnNewLineValidator.check
def check(self, lineNumber, line)
Definition: validation.py:536
validation.SpaceBraceValidator.formatError
def formatError(err)
Definition: validation.py:511
catapult::validators::ResultFlags
ResultFlags
Possible result flags (only six bits are used).
Definition: ValidationResult.h:42
validation.StressTestNameValidator.hasImproperName
hasImproperName
Definition: validation.py:824
validation.TemplateSpaceValidator.formatError
def formatError(err)
Definition: validation.py:159
validation.EmptyStatementValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:1115
validation.UtilsSubdirValidator
Definition: validation.py:785
validation.RegionValidator.patternRegion
patternRegion
Definition: validation.py:856
validation.WhitespaceLineValidator.check
def check(self, lineNumber, line)
Definition: validation.py:41
catapult::validators::FacilityCode
FacilityCode
Possible validation facility codes.
Definition: validators/FacilityCode.h:30
validation.Cpp17TraitsValidator.NAME
string NAME
Definition: validation.py:749
validation.NamespaceOpeningBraceVerticalSpacingValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:1023
validation.PragmaOnceValidator.gotPragmaOnce
gotPragmaOnce
Definition: validation.py:250
validation.BasicFunctionAliasValidator.errors
errors
Definition: validation.py:422
validation.LineLengthValidator.formatError
def formatError(err)
Definition: validation.py:141
validation.MultiConditionChecker.patternDeclareMacroNoParams
patternDeclareMacroNoParams
Definition: validation.py:593
validation.SingleLineValidator.NAME
string NAME
Definition: validation.py:185
validation.EmptyStatementValidator.isOpeningBraceUnclosed
isOpeningBraceUnclosed
Definition: validation.py:1117
validation.MultiConditionChecker.patternTestBoolAssertAllowed
patternTestBoolAssertAllowed
Definition: validation.py:591
validation.rindex
def rindex(lst, searched)
Definition: validation.py:781
validation.TemplateSpaceValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:150
validation.RegionValidator.reset
def reset(self, path)
Definition: validation.py:859
validation.MultiConditionChecker.formatError
def formatError(err)
Definition: validation.py:740
validation.BasicFunctionAliasValidator
Definition: validation.py:414
validation.PragmaOnceValidator.reportEmptyLineError
reportEmptyLineError
Definition: validation.py:253
validation.MultiConditionChecker.patternEnumClass
patternEnumClass
Definition: validation.py:576
validation.CatchWithoutClosingTryBrace.patternTemplate
patternTemplate
Definition: validation.py:170
validation.ClosingBraceVerticalSpacingValidator.patternClosingBrace
patternClosingBrace
Definition: validation.py:984
validation.Cpp17TraitsValidator.typePattern
typePattern
Definition: validation.py:754
SimpleValidator.SimpleValidator.path
path
Definition: SimpleValidator.py:22
validation.SingleLineValidator.long
long
Definition: validation.py:192
ValidationResult.h
validation.RegionValidator.errors
errors
Definition: validation.py:866
validation.MultiConditionChecker.NAME
string NAME
Definition: validation.py:564
validation.NamespaceOpeningBraceVerticalSpacingValidator.recentLines
recentLines
Definition: validation.py:1028
validation.DocumentationVerticalSpacingValidator
Definition: validation.py:1164
validation.MultiConditionChecker.checkExplicitOperatorBool
def checkExplicitOperatorBool(self, line)
Definition: validation.py:622
validation.MultiConditionChecker.reset
def reset(self, path)
Definition: validation.py:617
validation.NamespaceOpeningBraceVerticalSpacingValidator.patternAnonNamespaceOpening
patternAnonNamespaceOpening
Definition: validation.py:1026
validation.PragmaOnceValidator.insideComment
insideComment
Definition: validation.py:254
validation.RegionValidator.formatError
def formatError(err)
Definition: validation.py:905
validation.StressTestNameValidator.finalize
def finalize(self)
Definition: validation.py:838
validation.RegionValidator.check
def check(self, lineNumber, line)
Definition: validation.py:868
validation.WhitespaceLineValidator.finalize
def finalize(self)
Definition: validation.py:73
catapult::validators::ResultSeverity::Failure
Validation result is failure.
validation.ClosingBraceVerticalSpacingValidator.check
def check(self, lineNumber, line)
Definition: validation.py:989
validation.MultiConditionChecker.checkTestLine
def checkTestLine(self, line)
Definition: validation.py:625
validation.EnumValueBlankLineValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:956
catapult::validators::ValidationResult::Success
Validation succeeded.
Results.h
validation.EnumValueBlankLineValidator.check
def check(self, lineNumber, line)
Definition: validation.py:962
validation.MacroSemicolonValidator.skip
skip
Definition: validation.py:921
validation.LineLengthValidator.NAME
string NAME
Definition: validation.py:129
validation.ClosingBraceVerticalSpacingValidator
Definition: validation.py:976
validation.ClosingBraceVerticalSpacingValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:982
validation.InsertionOperatorFormattingValidator.reportError
def reportError(self, lineNumber, line, message)
Definition: validation.py:1214
catapult::validators::MakeValidationResult
constexpr ValidationResult MakeValidationResult(ResultSeverity severity, FacilityCode facility, uint16_t code, ResultFlags flags)
Makes a validation result given severity, facility, code and flags.
Definition: ValidationResult.h:63
validation.LineLengthValidator.__init__
def __init__(self, errorReporter, lineLengthLimit=140)
Definition: validation.py:131
validation.MultiConditionChecker.checkDeclareMacroNoParams
def checkDeclareMacroNoParams(self, line)
Definition: validation.py:720
validation.SingleLineValidator.firstLine
firstLine
Definition: validation.py:191
Results.h
Casting.h
validation.MacroSemicolonValidator.NAME
string NAME
Definition: validation.py:914
catapult::validators::GetSeverity
constexpr ResultSeverity GetSeverity(ValidationResult result)
Extracts the encoded result severity from result.
Definition: ValidationResult.h:80
validation.TestClassMacroValidator
Definition: validation.py:79
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::validators::IsValidationResultFailure
constexpr bool IsValidationResultFailure(ValidationResult result)
Returns a value indicating whether the validation result is a failure.
Definition: ValidationResult.h:95
validation.InsertionOperatorFormattingValidator.check
def check(self, lineNumber, line)
Definition: validation.py:1202
validation.MultiConditionChecker.patternFileSize
patternFileSize
Definition: validation.py:580
validation.StressTestNameValidator.check
def check(self, lineNumber, line)
Definition: validation.py:835
validation.CopyrightCommentValidator.finalize
def finalize(self)
Definition: validation.py:1088
validation.BasicFunctionAliasValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:420
validation.RegionValidator.NAME
string NAME
Definition: validation.py:852
validation.Cpp17TraitsValidator.formatError
def formatError(err)
Definition: validation.py:776
catapult::validators::ResultFlags::None
No special result flags are set.
validation.LineLengthValidator.lineLengthLimit
lineLengthLimit
Definition: validation.py:133
Results.h
validation.ClosingBraceVerticalSpacingValidator.patternInbetweenClosingBrace
patternInbetweenClosingBrace
Definition: validation.py:985
validation.PragmaOnceValidator.gotLicense
gotLicense
Definition: validation.py:251
validation.TypoChecker.__init__
def __init__(self, errorReporter)
Definition: validation.py:308
validation.ClosingBraceVerticalSpacingValidator.NAME
string NAME
Definition: validation.py:980
validation.RegionValidator.previousRegionLine
previousRegionLine
Definition: validation.py:862
validation.CopyrightCommentValidator.lastLineNumber
lastLineNumber
Definition: validation.py:1077
validation.MacroSemicolonValidator.macroCall
macroCall
Definition: validation.py:918
catapult::validators::MapToLogLevel
constexpr utils::LogLevel MapToLogLevel(ValidationResult result)
Maps validation result to an appropriate logging level.
Definition: ValidationResult.h:100
validation.EmptyStatementValidator.check
def check(self, lineNumber, line)
Definition: validation.py:1120
Logging.h
validation.EmptyStatementValidator.reportError
def reportError(self, lineNumber, line, message)
Definition: validation.py:1155
validation.LineLengthValidator
Definition: validation.py:127
validation.ClosingBraceVerticalSpacingValidator.patternLineAfterClosingBrace
patternLineAfterClosingBrace
Definition: validation.py:986
validation.InsertionOperatorFormattingValidator.NAME
string NAME
Definition: validation.py:1196
Results.h
validation.DocumentationVerticalSpacingValidator.check
def check(self, lineNumber, line)
Definition: validation.py:1173
validation.BasicFunctionAliasValidator.NAME
string NAME
Definition: validation.py:418
validation.createValidators
def createValidators(errorReporter)
Definition: validation.py:1223
validation.InsertionOperatorFormattingValidator.__init__
def __init__(self, errorReporter)
Definition: validation.py:1198
validation.PragmaOnceValidator.reset
def reset(self, path)
Definition: validation.py:247
validation.MultiConditionChecker.__init__
def __init__(self, errorReporter)
Definition: validation.py:566
Results.h
validation.MultiConditionChecker.patternValidationResult
patternValidationResult
Definition: validation.py:572
validation.RegionValidator.firstBeforeNestedLineNumber
firstBeforeNestedLineNumber
Definition: validation.py:865
validation.SingleLineValidator.check
def check(self, lineNumber, line)
Definition: validation.py:194
validation.TestClassMacroValidator.patternTestClass
patternTestClass
Definition: validation.py:85
validation.MultiConditionChecker.patternTestSingleLineFunction
patternTestSingleLineFunction
Definition: validation.py:596
validation.CopyrightCommentValidator.check
def check(self, lineNumber, line)
Definition: validation.py:1079
FacilityCode.h
Results.h
validation.MultiConditionChecker.patternCoerce
patternCoerce
Definition: validation.py:577
validation.CopyrightCommentValidator.expectedHash
expectedHash
Definition: validation.py:1071
validation.StressTestNameValidator
Definition: validation.py:815
validation.TestClassMacroValidator.matchLineNumber
matchLineNumber
Definition: validation.py:91
catapult::utils::LogLevel::Warning
Level for logging warning events.
validation.EnumValueBlankLineValidator.patternBlankLine
patternBlankLine
Definition: validation.py:959
Results.h
validation.SingleLineValidator
Definition: validation.py:183
Results.h
validation.CopyrightCommentValidator.NAME
string NAME
Definition: validation.py:1067
validation.MultiConditionChecker.patternTestMemcmpAssert
patternTestMemcmpAssert
Definition: validation.py:587
validation.SpaceBraceValidator.skip
skip
Definition: validation.py:452
validation.PragmaOnceValidator.formatError
def formatError(err)
Definition: validation.py:289
validation.NamespaceOpeningBraceVerticalSpacingValidator
Definition: validation.py:1017