GithubHelp home page GithubHelp logo

sci-long-doc-check's Introduction

[ABAP] Code Inspector custom check - presence of long documentation

This custom check checks whether the checked object or interface has long documentation created for itself and for public or protected members (properties, methods, events). example

Long documentation is the one created/accessed via F9, Ctrl+Shift+F9 in SAP GUI ABAP editor. The code is intentionally written without NW 7.4 (and higher) ABAP syntax.

Installation

First, get the code:

  • Install via abapGit
  • or manually: create and paste the code for classes: zcl_sci_longdoc_check.clas.abap, zcl_sci_longdoc_check_category.clas.abap. In ZCL_SCI_LONGDOC_CHECK paste zcl_sci_longdoc_check.clas.locals_def in the Class-relevant Local Types; it's implementation zcl_sci_longdoc_check.clas.locals_imp paste to "Local Types" include. Next, update the constants in your ZCL_SCI_LONGDOC_CHECK to match your class names:
 CONSTANTS:
      c_class_name  TYPE seoclsname VALUE 'ZCL_SCI_LONGDOC_CHECK' ##NO_TEXT,
      c_category    TYPE string VALUE 'ZCL_SCI_LONGDOC_CHECK_CATEGORY' ##NO_TEXT,

Secondly, install the check:

  • in SCI transaction, menu Code Inspector -> Management of -> Tests
  • find the installed classes and check them, save
  • from now on the new check should be available to select in Check Variant configuration

Configuration

Error types for inspection

After selecting the check in Check Variant, maintain the error types when long documentation is missing for the main object/interface and when docs are not present for public members: attributes
Possible values: error, warning, info, no message.

Excluding names

To exclude given names during inspection, place a comment prefixed with SCI_LDE (anywhere in the source code)

"SCI_LDE: member_name

License

This extension is licensed under the MIT license.

Author

Feel free to contact me:

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.