Comments (2)
According to Arrays, this exception occurs if from > to
in the call to copyOfRange()
which is likely the call occurring here. From what I would guess without seeing your code, your custom rule is not printing any/enough output, so when the test tries to strip the boilerplate output (file path and summary), there are less lines than expected.
from tailor.
Hi @alykhank ,
Thanks for your response! I got to know that but i was unable to sort it out as there is no proper documentation regarding adding a new rule. So if possible can you please list down steps to introduce new rule that would be very helpful for other people as well. I am listing down the steps which i have figured out for my requirement so if any correction is required please let me know:
**Steps-1:**Added logic file in this directory tailor/src/main/java/com/sleekbyte/tailor/listeners/NoHardcoded.java
Steps-2:Added unit test file in this directory tailor/src/test/java/com/sleekbyte/tailor/functional/NoHardcodedTest.java
Steps-3:Added test swift file in this directory tailor/src/test/swift/com/sleekbyte/tailor/functional/NoHardcodedTest.swift
Steps-4:Added rule message in tailor/src/main/java/com/sleekbyte/tailor/common/Messages.java
Steps-5:Registered rule in tailor/src/main/java/com/sleekbyte/tailor/common/Rules.java
This i have followed and my requirement is that if there is any stringliteral inside the code i have to find and raise the issue.
from tailor.
Related Issues (20)
- Release v0.12.0
- [upper-camel-case] issue HOT 1
- Is there a way to completely disable tailor for Xcode project? HOT 1
- NVM HOT 2
- Skips file because of a typealias
- Multiselect support
- Increase memory heap HOT 1
- How to add Length Rule? HOT 3
- Unable to check files with escaping
- Swift4 KeyPath Support HOT 1
- Add support for checkstyle xml format
- Swift4 multiline support
- Not able to Configure tailor for Xcode HOT 2
- How to configure tailor in project which has .workspace and .xcodeproject. it gives error when i try with .xcodeproject, it works fine without pods projects.
- How to analyse all files in once ?
- Windows: Only checking for the registry entry might not be a valid way to check if Java is installed.
- Migrate LGTM.com installation from OAuth to GitHub App
- Official domain down? HOT 1
- java.lang.OutOfMemoryError
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 tailor.