kennethlarsen / lannister Goto Github PK
View Code? Open in Web Editor NEW๐ธ A Lannister always pays his technical debt
Home Page: https://kennethlarsen.github.io/lannister
License: MIT License
๐ธ A Lannister always pays his technical debt
Home Page: https://kennethlarsen.github.io/lannister
License: MIT License
Right now it starts at index 1 in the file array. This means it skips the first file in the directory.
Shit hits the fan when a line like below is found
function someFunc() { // TODO: Figure out what to do about the dragons }
So far there is nothing.
Noticed that you added the MIT license to source, but the license in package.json
is still set to "ISC".
Allow users to customize rules
Right now we look for everything
Lannister should be able to check all JS files of sub folders in the root folder provided in lannister dir/
Nothing says techical debt more than
// TODO: ...
Add a warning if this is found.
Add a warning if a line is more than 80, 100 or 120 characters longs.
Maybe also add the line number in there?
The "dummy-files" folder made good sense prior to having tests, but now that we have that, I think we should remove the folder.
If such a folder is needed, it should be kept outside the Lannister repo.
Linters such as eslint can already report for log's.
But would it be an idea to also do a check for this?
It would be neat to see which line number that Lannister is reporting issues on.
So
- [x] dummy-files/file.js has TODO comment. Consider refactor. (todo-comment)
Becomes
- [x] dummy-files/file.js has TODO comment on line 34. Consider refactor. (todo-comment)
Currently the function-validator only supports function name()
syntax.
With the flag -o
Inspired by reek we should add similar functionality to lannister: https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Name.md
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.