mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-27 13:50:02 +03:00
Disable naming convention check on anonymous unions and structs
This commit is contained in:
parent
d610dc221d
commit
2ff3b02aa7
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class StyleChecker : BaseAnalyzer
|
||||||
|
|
||||||
void checkAggregateName(string aggregateType, ref const Token name)
|
void checkAggregateName(string aggregateType, ref const Token name)
|
||||||
{
|
{
|
||||||
if (name.text.matchFirst(aggregateNameRegex).length == 0)
|
if (name.text.length > 0 && name.text.matchFirst(aggregateNameRegex).length == 0)
|
||||||
addErrorMessage(name.line, name.column, KEY, aggregateType
|
addErrorMessage(name.line, name.column, KEY, aggregateType
|
||||||
~ " name '" ~ name.text ~ "' does not match style guidelines.");
|
~ " name '" ~ name.text ~ "' does not match style guidelines.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue