Skip to content

Commit

Permalink
Removed extra Rule name prefix in rule 88
Browse files Browse the repository at this point in the history
  • Loading branch information
campbellpryde committed Oct 2, 2023
1 parent 8708bcd commit ef8c6c2
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dqc_us_rules/source/us/2020/DQC_0088.xule
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Taxonomy: US GAAP 2023
**/

RULE-NAME-PREFIX DQC
RULE-NAME-PREFIX DQC

/** UPDATE RULE TO INCLUDE CHECK FOR VariableLeaseCost **/

ASSERT US.0088.9372 satisfied
Expand Down
37 changes: 37 additions & 0 deletions dqc_us_rules/source/us/2020/DQC_0152.xule
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
DQC Rules
(c) Copyright 2017 - 2023, XBRL US Inc. All rights reserved.
See https://xbrl.us/dqc-license for license information.
See https://xbrl.us/dqc-patent for patent infringement notice.
Taxonomy: US GAAP 2022
**/

rule-name-prefix DQC

/**DQC 0153.9879 **/
/** Check that the statement presentation has a table at the top and all line items as children. The rule checks if any monetary line items are siblings of the table element in the financial statements.
**/

assert US.0152.10116 satisfied
$ruleId = (rule-name().split('.'))[rule-name().split('.').length];


$GYearListElements = filter ($us-gaap.concepts) where $item.data-type == us-types:gYearListItemType

$factsWithGYearList = {@concept in $GYearListElements @TaxPeriodAxis = *};

exists($factsWithGYearList)

message
"The concept {$factsWithGYearList.name} has been reported with a value of {$factsWithGYearList.join(',')} and has used the Tax Period [AXIS]. This fact should not be used with this axis. If there are mulitoiple tax years to be reprted they should all be included in the concept {$factsWithGYearList}.

Concept Name : {$factsWithGYearList.name}
Period : {$factsWithGYearList.period}
Dimensions : {$factsWithGYearList.dimensions.join(', ','=')}

Rule Element Id:{$ruleId}
Rule version: {$ruleVersion}
"

SEVERITY error
effectiveDate $effective_dates[$ruleId]
37 changes: 37 additions & 0 deletions dqc_us_rules/source/us/2021/DQC_0152.xule
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
DQC Rules
(c) Copyright 2017 - 2023, XBRL US Inc. All rights reserved.
See https://xbrl.us/dqc-license for license information.
See https://xbrl.us/dqc-patent for patent infringement notice.
Taxonomy: US GAAP 2022
**/

rule-name-prefix DQC

/**DQC 0153.9879 **/
/** Check that the statement presentation has a table at the top and all line items as children. The rule checks if any monetary line items are siblings of the table element in the financial statements.
**/

assert US.0152.10116 satisfied
$ruleId = (rule-name().split('.'))[rule-name().split('.').length];


$GYearListElements = filter ($US-GAAP.concepts) where $item.data-type == dtr-types:gYearListItemType

$factsWithGYearList = {@concept in $GYearListElements @TaxPeriodAxis = *};

exists($factsWithGYearList)

message
"The concept {$factsWithGYearList.name} has been reported with a value of {$factsWithGYearList.join(',')} and has used the Tax Period [AXIS]. This fact should not be used with this axis. If there are mulitoiple tax years to be reprted they should all be included in the concept {$factsWithGYearList}.

Concept Name : {$factsWithGYearList.name}
Period : {$factsWithGYearList.period}
Dimensions : {$factsWithGYearList.dimensions.join(', ','=')}

Rule Element Id:{$ruleId}
Rule version: {$ruleVersion}
"

SEVERITY error
effectiveDate $effective_dates[$ruleId]
37 changes: 37 additions & 0 deletions dqc_us_rules/source/us/2022/DQC_0152.xule
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
DQC Rules
(c) Copyright 2017 - 2023, XBRL US Inc. All rights reserved.
See https://xbrl.us/dqc-license for license information.
See https://xbrl.us/dqc-patent for patent infringement notice.
Taxonomy: US GAAP 2022
**/

rule-name-prefix DQC

/**DQC 0153.9879 **/
/** Check that the statement presentation has a table at the top and all line items as children. The rule checks if any monetary line items are siblings of the table element in the financial statements.
**/

assert US.0152.10116 satisfied
$ruleId = (rule-name().split('.'))[rule-name().split('.').length];


$GYearListElements = filter ($US-GAAP.concepts) where $item.data-type == dtr-types:gYearListItemType

$factsWithGYearList = {@concept in $GYearListElements @TaxPeriodAxis = *};

exists($factsWithGYearList)

message
"The concept {$factsWithGYearList.name} has been reported with a value of {$factsWithGYearList.join(',')} and has used the Tax Period [AXIS]. This fact should not be used with this axis. If there are mulitoiple tax years to be reprted they should all be included in the concept {$factsWithGYearList}.

Concept Name : {$factsWithGYearList.name}
Period : {$factsWithGYearList.period}
Dimensions : {$factsWithGYearList.dimensions.join(', ','=')}

Rule Element Id:{$ruleId}
Rule version: {$ruleVersion}
"

SEVERITY error
effectiveDate $effective_dates[$ruleId]
37 changes: 37 additions & 0 deletions dqc_us_rules/source/us/2023/DQC_0152.xule
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
DQC Rules
(c) Copyright 2017 - 2023, XBRL US Inc. All rights reserved.
See https://xbrl.us/dqc-license for license information.
See https://xbrl.us/dqc-patent for patent infringement notice.
Taxonomy: US GAAP 2022
**/

rule-name-prefix DQC

/**DQC 0153.9879 **/
/** Check that the statement presentation has a table at the top and all line items as children. The rule checks if any monetary line items are siblings of the table element in the financial statements.
**/

assert US.0152.10115 satisfied
$ruleId = (rule-name().split('.'))[rule-name().split('.').length];


$GYearListElements = filter ($US-GAAP.concepts) where $item.data-type == dtr-types:gYearListItemType

$factsWithGYearList = {@concept in $GYearListElements @TaxPeriodAxis = *};

exists($factsWithGYearList)

message
"The concept {$factsWithGYearList.name} has been reported with a value of {$factsWithGYearList.join(',')} and has used the Tax Period [AXIS]. This fact should not be used with this axis. If there are mulitoiple tax years to be reprted they should all be included in the concept {$factsWithGYearList}.

Concept Name : {$factsWithGYearList.name}
Period : {$factsWithGYearList.period}
Dimensions : {$factsWithGYearList.dimensions.join(', ','=')}

Rule Element Id:{$ruleId}
Rule version: {$ruleVersion}
"

SEVERITY error
effectiveDate $effective_dates[$ruleId]

0 comments on commit ef8c6c2

Please sign in to comment.