Skip to content

How to override an existing check #8

@PhilippSalvisberg

Description

@PhilippSalvisberg

This questions was asked by @S-Koell in another forum. Here's the relevant part:

As descussed here:

Trivadis/plsql-and-sql-coding-guidelines#78

I want to write my own validator based on the TrivadisGuidelines3Plus.xtend.

In my case I want to override the G-1050 but I'm really struggling because first of all I don't know what >the method is called to override. I was guessing "checkGuideline1050" because some with other >numbers exist. But 1050 doesnt.

Basically I want something like:

override checkGuideline1050(FunctionHeading f){ if(NOT f.function.startsWith('logger')){ super.checkGuideline1050(f); } }``` Could you please give me guidance on how to approach this? 

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions