5 ms·
Feature requests: 1. Convert leading indentation to tabs or spaces at random. 2. Insert trailing spaces. 3. Use varying indentation styles - pick at random f
by merelysounds 3y ago
Feature requests:
1. Convert leading indentation to tabs or spaces at random.
2. Insert trailing spaces.
3. Use varying indentation styles - pick at random from: https://en.wikipedia.org/wiki/Indentation_style#Overview https://en.wikipedia.org/wiki/Indentation_style#Overview
- henriquecm8 3y agoWhenever there is a chain of method calls put all in a single line.
- ljm 3y agoThis is rookie-level shittifying. What it needs to do is insert `with` blocks at random, with various levels of nesting, so you completely lose track of the scope of any object property.
- WorldMaker 3y agoToo "bad" that `with` blocks are forbidden in strict mode and most JS is strict mode by default now. You could somewhat approximate it with lots of unadorned blocks and complex object destructuring. { const { prop1: a, prop2: A, prop3: xTy } = obj // … { const { prop1: A, prop2: xTy, prop3: a } = obj // … } } Something like that.
- specialist 3y agoHeh. And randomly add "-Decorator" suffix to class names. Ages ago, I tried to diplomatically explain to our Senior Architect Grand Poobah (and my team lead) that one set of Decorators are actually Chain of Commands. And that they shouldn't be silently swallowing exceptions. After a few minutes, he says "u/specialist, I'm surprised someone with your experience doesn't understand architecture." Then gets up and walks away.
- finger 3y agoThat’s exactly what my company’s legacy code base looks like.. No one wants to reformat the files because then it will mess up with git history. It was horrendous to look at at first, but I’ve gotten used to it by now and just apply the same random style to whatever snippets I modify. :)
- Yiin 3y agohttps://moxio.com/blog/ignoring-bulk-change-commits-with-git-blame https://moxio.com/blog/ignoring-bulk-change-commits-with-git...
- michaelmior 3y ago> No one wants to reformat the files because then it will mess up with git history. GitHub will use a file `.git-blame-ignore-revs` to allow blame to ignore commits that make those kind of changes. (This is the format used for the `--ignore-revs-file` option to `git blame`.)
- loa_in_ 3y agoGit has something for every occasion I ever encountered with a need for something I knew was technically possible but didn't know if git would let me do it. It let me do it every time, truly the hacker's utility.
- deleted 3y ago[deleted]
- twic 3y agoRather than putting identifiers into MOckiNG sPongeBob CasE, it should apply a standard case convention (including initialism, Systems Hungarian with incorrect types, etc) at random for each identifier. function Make_List(firstString, second_string, chThirdString) { var a = [firstString, second_string, chThirdString]; return a; }
- nailer 3y agoSwap randomly between direct style (async/await) and pre ES2017 .then() chaining. Minify every third variable randomly.
- sweetgiorni 3y ago> Minify every third variable randomly. So, Go?