Code Monkey home page Code Monkey logo

sabaka / checkstyle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from checkstyle/checkstyle

0.0 0.0 1.0 52 MB

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

Home Page: http://checkstyle.sourceforge.net/

License: GNU Lesser General Public License v2.1

Java 99.18% Shell 0.18% GAP 0.63% CSS 0.01% JavaScript 0.01%

checkstyle's People

Contributors

alexkravin avatar baratali avatar bhavik3 avatar djydewang avatar isopov avatar ivanov-alex avatar izishared avatar jochenvdv avatar kazachka avatar kietzmann avatar leoherbie avatar liscju avatar lkuehne avatar luolc avatar maxvetrenko avatar mezk avatar mkordas avatar nimfadora avatar oburn avatar os97673 avatar rdiachenko avatar rnveach avatar romani avatar sabaka avatar soon avatar subkrish avatar timurt avatar vladlis avatar voidfist avatar ychulovskyy avatar

Watchers

 avatar  avatar  avatar

Forkers

cbanack

checkstyle's Issues

Extract dims token in correct way

I've tried to extract it like

dims!
    :   (options{greedy=true; }:
            ({LA(1) == AT}? annotations
            | )
                lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK
        )+
    ;

screen shot 2016-02-08 at 23 15 43

and

dims
    :   (options{greedy=true; }:
            ({LA(1) == AT}? annotations
            | )
                lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK
        )+
    ;

screen shot 2016-02-08 at 23 18 23

but I face problem with tree structure: array declaration is not included into typespec or missed completely. I suppose it should be fixed with custom parsing structure like we use for TYPE and for lots of rules

Expected:
screen shot 2016-02-08 at 23 11 28

ClassInstanceCreationExpression and ArrayCreationExpression should be extracted into java code

MethodInvocation and MethodReference should be extracted into input for method reference

Extract FieldAccess and ArrayAccess into input for method reference

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.