Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linting? #80

Closed
larshp opened this issue Jul 1, 2021 · 7 comments
Closed

linting? #80

larshp opened this issue Jul 1, 2021 · 7 comments

Comments

@larshp
Copy link
Contributor

larshp commented Jul 1, 2021

Hi Nuno,
If you are interested, consider enabling https://github.com/marketplace/abaplint for this repository

I can open a PR with an initial abaplint.json configuration?

@nununo
Copy link
Collaborator

nununo commented Jul 1, 2021

Hi Lars! I'm definitely interested. I'd love to implement as many checks and automations as possible but I haven't had time lately to learn how to do it.

The PR with the initial configuration is more than welcome! Cheers!

@larshp
Copy link
Contributor Author

larshp commented Jul 1, 2021

I've set the language version to v750 in #82, the code is not v740 compatible as stated in the readme

few findings you can consider if should be fixed,

./src/zcl_timem_dynpro.clas.abap[12, 9]                - Variable "i_dynnr" not used (unused_variables) [E]
./src/zcl_timem_gui_viewer.clas.abap[48, 9]            - Variable "io_handler" not used (unused_variables) [E]
./src/zcl_timem_gui_viewer.clas.abap[78, 26]           - Variable "size" not used (unused_variables) [E]
./src/zcl_timem_object_prog_includes.clas.abap[56, 35] - Variable "name" not used (unused_variables) [E]
./src/zcl_timem_object_prog.clas.abap[34, 35]          - Variable "name" not used (unused_variables) [E]
./src/zcl_timem_vrsd.clas.abap[158, 5]                 - Add ORDER BY (select_add_order_by) [E]
./src/ztimemachine.prog.abap[5, 7]                     - Variable "vrsd" not used (unused_variables) [E]

@nununo
Copy link
Collaborator

nununo commented Jul 2, 2021

Implemented in #82

@nununo nununo closed this as completed Jul 2, 2021
@nununo
Copy link
Collaborator

nununo commented Jul 2, 2021

@larshp I no longer remember why I chose v750 instead of v740. What would be the simplest way to use Abaplint to check abapTimeMachine against v740? Create a new temp branch and update abaplint.json? Or is there a simpler way?

@nununo nununo reopened this Jul 2, 2021
@nununo
Copy link
Collaborator

nununo commented Jul 2, 2021

@larshp, I believe Abaplint is wrongly flagging io_handler as an unused variable in method zcl_timem_gui_viewer->register_events():
https://github.com/abapinho/abapTimeMachine/runs/2974937627

But if you look at the code, it is actually being used:

SET HANDLER io_handler->on_sapevent FOR html_viewer.

Can you look into this? It's the last Abaplint error I'm getting ;-)

btw, I wanted to open this issue in the abaplint repository but tbh I'm not sure in which one this should go.

@larshp
Copy link
Contributor Author

larshp commented Jul 4, 2021

thanks, yea, it was a bug

try again, just push another commit

@nununo
Copy link
Collaborator

nununo commented Jul 5, 2021

Linting is now working. I believe this can be closed. Now it can be used to help make the code compatible with v740sp02. Issue #87 will take care of it.

@nununo nununo closed this as completed Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants