Yonatan's dev blog
  • Home
Subscribe
Tagged

code analysis

A collection of 2 posts

code analysis

Slaying God-Classes with "AST Scout", a code structure visualization tool

A few months ago I worked on a legacy Typescript project where having Class files with more than 1,500 lines-of-code was quite common. A single source-file with this many lines-of-code is sometimes known as a "God Class" because it is capable of doing too many different things.

  • Yonatan
Yonatan Feb 7, 2019 • 6 min read
code analysis

Writing a custom ESLint rule to spot undeclared props hiding in plain sight

This post aims to give a walkthrough of how to design a custom ESLint rule without any prerequisites. However, some experience with Javascript Abstract Syntax Trees (ASTs) will be helpful. Consider watching my talk about getting started with ASTs. ESLint is a fantastic linting tool to help enforce your team's

  • Yonatan
Yonatan Nov 1, 2016 • 6 min read
Yonatan's dev blog © 2023
Powered by Ghost