youshallnotpass-dev / service Goto Github PK
View Code? Open in Web Editor NEWNot elegant code shall not pass! ⚔️🧙♂️
Home Page: https://iwillfailyou.com
License: MIT License
Not elegant code shall not pass! ⚔️🧙♂️
Home Page: https://iwillfailyou.com
License: MIT License
There is no way to disable a specific rule. The best you can do is put an insanely high threshold.
Taking the following case:
final List<String> strings = new Arraylist<String>();
strings.stream().forEach(string -> processString(string));
allfinal will throw a warning of string
.
I can't open https://iwillfailyou.com It seems like a domain has been changed to https://youshallnotpass.dev
@Deprecated
public static void someMethod() {
... do something
}
The above code will print: filepath > @Deprecated
, instead of the method definition public static void someMethod() {
/**
* some javadoc
*/
public static void someMethod() {
... do something
}
The above code will print: filepath > /**
, instead of the method definition public static void someMethod() {
With version 0.4.0 and the addition of the new inspections for setterfree
and numultiplereturns
, it seems that maven plugin might not have been correctly updated.
With running with the example config in readme: https://github.com/iwillfailyou/service#maven
mvn clean iwillfailyou:iwillfailyou
The following error is printed:
[ERROR] Failed to execute goal com.iwillfailyou:iwillfailyou-maven-plugin:0.4.0:iwillfailyou (default-cli) on project finapi-java-client: Unable to parse configuration of mojo com.iwillfailyou:iwillfailyou-maven-plugin:0.4.0:iwillfailyou for parameter setterfree: Cannot find 'setterfree' in class com.iwillfailyou.IwillfailyouMojo -> [Help 1]
If setterfree
config is removed, then the same error appears for nomultiplereturn
[ERROR] Failed to execute goal com.iwillfailyou:iwillfailyou-maven-plugin:0.4.0:iwillfailyou (default-cli) on project finapi-java-client: Unable to parse configuration of mojo com.iwillfailyou:iwillfailyou-maven-plugin:0.4.0:iwillfailyou for parameter nomultiplereturn: Cannot find 'nomultiplereturn' in class com.iwillfailyou.IwillfailyouMojo -> [Help 1]
Have you considered the option to skip test code from the iwfy validation?
PMD also offers this feature: https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#includeTests
By default, test code should be included.
This feature won't really help with new projects, but it will make the "migration-phase" for older ones a little easier, as the devs can see just the issues in the prod code and not be blinded by issues in their test code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.