n0bra1n3r / relint Goto Github PK
View Code? Open in Web Editor NEWRegex-based linting for any language
Regex-based linting for any language
Currently the repository is published without a license.
This basically means that all rights are reserved, which is a shame because it would be nice to have some options to further build upon this.
Have a look at:
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository
I tried to implement a regular expression testing for correct naming which failed unexpectedly.
This is the regular expression I used:
^(?:public\s+)?(?:virtual\s+)?(?:\w+)\s+([a-z]+((\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?)\s*\(.*\)
The flags I used were gm in the online testing tool.
This were some tests:
public virtual void SystemClose()
virtual void SystemClose()
void SystemClose()
bool StartTest() {
public virtual void systemClose()
bool startTest() {
It should match only the last two lines, but it matched all of them. After some headscratching I found, that relint uses gim as flags for all patterns.
Maybe the best option would be to have the flags configurable.
Linting standard library files is causing slow-downs and issues with auto-fixes.
case:
import std/tables
import std/times
import std/strutils
rule:
{
"id": "order-import1",
"regex": "^import std(/\\w+)+",
"message": "order: unordered import",
"fixType": "reorder_asc",
}
This would show warnings for unordered imports, for example.
To do:
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.