Giter Site home page Giter Site logo

updownci's Introduction

upDOWNci

Upload and download SAP Code Inspector variants in XML format

  • Version requirement: 702
  • MIT License

Installation

Install via abapGit.

Use

Download and upload single variants

You can utilize program ZUPDOWNCI to download and upload single check variants.

Leave username blank for global variants.

selection

Upload will create or add checks to the specified variant.

upload

Mass-download of variants

You can utilize program ZUPDOWNCI_MASS_DOWNLOAD to download multiple variants as a single ZIP file. User-specific variants are stored in a folder named after the user.

If an error occurs for a specific check variant, then it is excluded from the ZIP file and an error is displayed.

updownci's People

Contributors

buettnerjulian avatar conjuringcoffee avatar larshp avatar larsip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

updownci's Issues

Short Dump Downloading Variant

Hi,
I get short dump when downloading a test variant in test mode. (Note quite sure if it is because of the fact that I changed some of the check's priority from Warning to Error).
This is the first time that I'm trying to download a check variant.
image
image

SAP_BASIS 750 0006 SAPK-75006INSAPBASIS SAP Basis Component

Dump with CL_CI_TEST_METRIC_PROC

Exporting configuration from CL_CI_TEST_METRIC_PROC causes a dump.

The problem is because it is trying to determine an incorrect type for an attribute in create_structure for the types with_hdi, with_hvo and with_hef:
image

In the method find_types is getting the type of DO_HALSTEAD instead of specific field:
image
image

Dump with CL_CI_TEST_PRETTY_PRINT

Short text from dump: Length error in the IMPORT statement.

Code:
METHOD download_attributes.

DATA: lt_import TYPE ty_parameter_tt,
      lr_data   TYPE REF TO data.

FIELD-SYMBOLS: <lg_data> TYPE data.


IF iv_attributes IS INITIAL.
  go_xml->write_variant( iv_testname = iv_class
                         iv_version  = iv_version ).
ELSE.
  build_memory(
    EXPORTING
      iv_class  = iv_class
    IMPORTING
      er_data   = lr_data
      et_memory = lt_import ).
  ASSIGN lr_data->* TO <lg_data>.

  IMPORT (lt_import) FROM DATA BUFFER iv_attributes.
  IF sy-subrc <> 0.
    RAISE EXCEPTION TYPE zcx_updownci_exception EXPORTING iv_text = 'IMPORT error'.
  ENDIF.

  go_xml->write_variant( iv_testname = iv_class
                         iv_version  = iv_version
                         ig_data     = <lg_data> ).
ENDIF.

ENDMETHOD.
IMPORT_WRONG_END_POS_20231027_130025.zip

fix for CL_WDY_CI_TEST_CONVENTIONS

the settings type is defined directly in the class, and kind set directly in QUERY_ATTRIBUTES.

perhaps hardcode a fix for this class, it seems to be the only check with this approach?

Is not supporting checks from "code pal for ABAP"

Have exported a ATC variant containing "code pal for ABAP (open source plugin)" - "CALL METHOD Usage". Program ZUPDOWNCI is dumping because the tool is not supporting that the test class is not implementing method PUT_ATTRIBUTES directly in the class. Class Y_CHECK_CALL_METHOD_USAGE method PUT_ATTRIBUTES is inherit from superclass Y_CHECK_BASE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.