Frederik Hudák

Results 51 issues of Frederik Hudák

`IF NOT line_exists( input-values[ value ] ).` but if value is of type `string`, this will dump and what you likely meant was `IF NOT line_exists( input-values[ table_line = value...

new rule

There is a very confusing blog about this https://blogs.sap.com/2021/10/19/new-kinds-of-abap-expressions/ ```abap REPORT zfh_test_syntax. CLASS lcl_test DEFINITION. PUBLIC SECTION. METHODS get IMPORTING ref TYPE REF TO data RETURNING VALUE(result) TYPE string. ENDCLASS....

bug

Abaplint does not catch this yet (I don't know the consequences of not respecting this warning)

new rule

Whenever converting from a decimal number type or a string type to a whole number type, implicit rounding can occur. ```abap DATA(float_in_string) = `9.54`. DATA: int type i. int =...

new rule

Report error when the operators `` are used on strings, as this does an alphabetical, not a numerical comparison which can lead to problems (e.g. `"11" < "9" == true`...

new rule

Here, iv_transport has the domain trkorr (char20), it is a syntax error to pass it to a string parameter https://github.com/abapGit/abapGit/pull/5022/commits/483dcff5c5800d2ebd334c33b52c1d3638bbc737 I feel like abap sometimes allows it and sometimes doesn't....

bug

(since 756) ![image](https://user-images.githubusercontent.com/5097067/132735481-bde34e41-286d-4f4b-858e-663a4ec50183.png)

if you have a domain with fixed values, specify a class which serves as constants of those values config ```json "constant_classes": { "mapping": [ {"blah": "cl_blah_constants"}, ... ] } ```...

new rule

Could potentially lead to performance improvements if the regex objects are cached, and the regexes will become better organized: https://github.com/abaplint/abaplint/blob/f5e326823eee124c5dddbf80b535e50d53086df7/packages/core/src/abap/2_statements/combi.ts#L935-L937

If you apply the fix here, abaplint will put the punctuation on the end of the commented line which causes a syntax error ![](https://user-images.githubusercontent.com/5097067/103577860-d3012400-4ed5-11eb-9b3e-0b8e318025df.png)

bug