@@ -189,6 +189,9 @@ export interface DiagnosticRuleSet {
189189 // Report use of abstract method or variable?
190190 reportAbstractUsage : DiagnosticLevel ;
191191
192+ // Report instantiation of abstract class with no abstract methods?
193+ reportExplicitAbstractUsage : DiagnosticLevel ;
194+
192195 // Report argument type incompatibilities?
193196 reportArgumentType : DiagnosticLevel ;
194197
@@ -481,6 +484,7 @@ export function getDiagLevelDiagnosticRules() {
481484 DiagnosticRule . reportDuplicateImport ,
482485 DiagnosticRule . reportWildcardImportFromLibrary ,
483486 DiagnosticRule . reportAbstractUsage ,
487+ DiagnosticRule . reportExplicitAbstractUsage ,
484488 DiagnosticRule . reportArgumentType ,
485489 DiagnosticRule . reportAssertTypeFailure ,
486490 DiagnosticRule . reportAssignmentType ,
@@ -617,6 +621,7 @@ export function getOffDiagnosticRuleSet(): DiagnosticRuleSet {
617621 reportDuplicateImport : 'none' ,
618622 reportWildcardImportFromLibrary : 'none' ,
619623 reportAbstractUsage : 'none' ,
624+ reportExplicitAbstractUsage : 'none' ,
620625 reportArgumentType : 'none' ,
621626 reportAssertTypeFailure : 'none' ,
622627 reportAssignmentType : 'none' ,
@@ -737,6 +742,7 @@ export function getBasicDiagnosticRuleSet(): DiagnosticRuleSet {
737742 reportDuplicateImport : 'none' ,
738743 reportWildcardImportFromLibrary : 'warning' ,
739744 reportAbstractUsage : 'error' ,
745+ reportExplicitAbstractUsage : 'error' ,
740746 reportArgumentType : 'error' ,
741747 reportAssertTypeFailure : 'error' ,
742748 reportAssignmentType : 'error' ,
@@ -857,6 +863,7 @@ export function getStandardDiagnosticRuleSet(): DiagnosticRuleSet {
857863 reportDuplicateImport : 'none' ,
858864 reportWildcardImportFromLibrary : 'warning' ,
859865 reportAbstractUsage : 'error' ,
866+ reportExplicitAbstractUsage : 'error' ,
860867 reportArgumentType : 'error' ,
861868 reportAssertTypeFailure : 'error' ,
862869 reportAssignmentType : 'error' ,
@@ -976,6 +983,7 @@ export const getRecommendedDiagnosticRuleSet = (): DiagnosticRuleSet => ({
976983 reportDuplicateImport : 'warning' ,
977984 reportWildcardImportFromLibrary : 'warning' ,
978985 reportAbstractUsage : 'error' ,
986+ reportExplicitAbstractUsage : 'error' ,
979987 reportArgumentType : 'error' ,
980988 reportAssertTypeFailure : 'error' ,
981989 reportAssignmentType : 'error' ,
@@ -1092,6 +1100,7 @@ export const getAllDiagnosticRuleSet = (): DiagnosticRuleSet => ({
10921100 reportDuplicateImport : 'error' ,
10931101 reportWildcardImportFromLibrary : 'error' ,
10941102 reportAbstractUsage : 'error' ,
1103+ reportExplicitAbstractUsage : 'error' ,
10951104 reportArgumentType : 'error' ,
10961105 reportAssertTypeFailure : 'error' ,
10971106 reportAssignmentType : 'error' ,
@@ -1209,6 +1218,7 @@ export function getStrictDiagnosticRuleSet(): DiagnosticRuleSet {
12091218 reportDuplicateImport : 'error' ,
12101219 reportWildcardImportFromLibrary : 'error' ,
12111220 reportAbstractUsage : 'error' ,
1221+ reportExplicitAbstractUsage : 'error' ,
12121222 reportArgumentType : 'error' ,
12131223 reportAssertTypeFailure : 'error' ,
12141224 reportAssignmentType : 'error' ,
0 commit comments