Comments (4)
referencing method with "this" is very weird thing to my mind, Checkstyle could do it, but ...
- Can you please extend description why you need this?
- What is a problem you are try to resolve by means of this?
- a bit more evidence that somebody require this too, and do use such notation.
there is no room for this feature to be implemented by us in nearest future, we are tiny team and in progress of SF->Github transition, pull request are welcome.
It have to be done a an option for this Check and it will be switched OFF by default for sure.
If no good evidence will be provided for this feature, and All admins give approval, you can host it in our experimental pool of Checks https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues?state=open. in that pool we can host any Checks, to let you test Check before it prove it is in demand by wide community.
from checkstyle.
According to checkstyle documentation (at http://checkstyle.sourceforge.net/config_coding.html#RequireThis) it should already handle both fields and methods, I assume that at some point it did but later it just broke.
So no need to create a seperate check, just a fix to the current one (or a fix to documentation to remove the checkMethods whether we should check methods usage or not
text)
from checkstyle.
Thanks a lot for point to the documentation, now issue is classified as bug, will be fixed soon, you are welcome with pull request.
from checkstyle.
My fix is at #42
from checkstyle.
Related Issues (20)
- [JavadocType] add additional allowedTags feature HOT 1
- new Check: ConstructorsDeclarationGrouping to check the grouping of overloaded constructors HOT 5
- New Check: AnnotatedMethodNameCheck to check method names of annotated (test) methods HOT 9
- ParenPad incorretly flags unsupported token HOT 4
- Ending period detected in first sentence of Javadoc when it is not at the end of the sentence HOT 1
- First sentence of Javadoc is not checked past default period character when using custom period HOT 1
- New Check: Unnecessary Block Braces HOT 14
- Enhance Command Line documentation by organizing options in Tabular format HOT 9
- EmptyLineSeparator does not detect multiple blank lines HOT 6
- OverloadMethodDeclarationOrder check ignores anything besides methods HOT 2
- IT regression area Folder structure HOT 2
- How to exclude java-Files that contain @Generated-Annotation? HOT 4
- Improve documentation - how to add usage of `var` to check `IllegalType`? HOT 6
- Column number in `DetailNode` should start with 1 HOT 16
- LITERAL_DEFAULT token support in RightCurlyCheck
- False Negative of ClassFanOutCheck with "new" Keyword HOT 6
- MagicNumberCheck NPE when ignoring field declarations HOT 11
- Parse exception for RAW string template (Java 21+) HOT 3
- IllegalType Not Working For Annotation Using FQN HOT 3
- Remove Support for String Template Syntax
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkstyle.