los-opinionated-git-tools
SwiftLint
los-opinionated-git-tools | SwiftLint | |
---|---|---|
2 | 23 | |
5 | 18,322 | |
- | 0.4% | |
0.0 | 9.4 | |
over 1 year ago | 4 days ago | |
Shell | Swift | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
los-opinionated-git-tools
-
Ask HN: Tools you have made for yourself?
A bunch of shell scripts I've written over the years are available from https://git.marcofontani.it/mfontani/scripts
Very useful ones:
- evenodd, to colorize the background of lines of text so it's easier to see which start of text corresponds to which end of text
- time-rollup, to time the time it takes to run a given command and provide percentage-based statistics on the execution
- a wrapper around "jq" to make it DWIM w/regards to gzipped, bzipped, and zstd-compressed files
I've also put some full-fledged binaries on github:
- https://github.com/mfontani/prettycrontab which is a crontab pretty-printer which parses a possibly specially commented crontab to give you an overview of what's coming up next
- https://github.com/mfontani/tstdin to timestamp your stdin, and provide when the line was received, how long it was since the start of the command, and how long it was since the last line was received. Useful to add at the end of a pipe to both log and perform analysis on the output and time it took to do stuff
- https://github.com/mfontani/rofixec to "sorta template" a rofi (a X11 runner) runner so it picks commands from a given list (provided as yaml or json configuration) and executes the picked item in a background job
- https://github.com/mfontani/git-recent which helps you pick the most recent branches you've worked on, very useful when paired with fzf for picking
- https://github.com/mfontani/los-opinionated-git-tools instead contains a ton of useful little git-related scripts, from one which DWIMs the master/main/blead branch name to one which helps you reauthor the last commit, to one (git-rr) which helps you perform a git rebase with context info about the commits you're rebasing: which files they touched, etc - to make it easier to fixup together commits which touched the same file... which is an operation I do so often I've created a "git-fixup" script, which automates fixing up the currently committed file to the last commit which touched that file in the branch
-
GitHub, f ck your name change
I've had to deal with projects where the "main" branch was named: master, main, blead.
I almost never "name" that "main" branch, thanks to commands and aliases.
When I want to pull (and rebase) to the "main" branch, I run "git prom". When I want to check out the "main" branch, I "git com". What actually happens depends on what the project's "main" branch is. If a project later moves to a "live" branch, I'll just update the "git-main" script to detect it ahead of the rest, and off I go.
https://github.com/mfontani/los-opinionated-git-tools/blob/m... is less than ten lines of bash.
git-com is really just: git checkout "$(git main)"
git-prom is really just: git pull --rebase origin "$(git main)"
I'm not particularly sold on "main" vs "master" being an important thing, but if it's important to some I at least want to ensure I don't get frustrated when interacting with a project which uses it. With the above aliases and functions and programs, I don't care anymore.
main, master, blead... call it whatever.
SwiftLint
- A problem when adding Swiftlint as a dependency on my won package?
- I need some answers on something very beginner unfriendly
-
Your favourite Xcode programming tools.
SwiftLint is a big one.
-
Just looking for advice on formatting code for clarity - [SwiftUI Shape]
I actually don't see anything worth changing. It looks good to me. I think the most important thing is just to maintain the constructive attitude you already have about future-you dealing with the code, because only future-you will really know where you could have done better. One personal-preference thing I carried over from working on Go code is to look for a tool like gofmt [1,2] for Swift. I've been using swift-format [3] for about 2 years and haven't been dissatisfied enough to reach for something more fully featured like SwiftLint [4]. I didn't like the idea at first of delegating most formatting control over to a tool designed with someone else's subjective idea of formatting. But my feeling afterward was that it was freeing: it was no longer (completely) my job/burden/responsibility. An "assistant" would clean up the formatting of my code every time I saved the file. That's a nightmare if you can't configure the tool as much as you need, but if you're lucky and find a configuration you can live with, it lets you focus more on naming and other conventions that aren't so easily automated (yet). [1] https://go.dev/blog/gofmt [2] https://twitter.com/bitfield/status/953395343353315329 [3] https://github.com/apple/swift-format [4] https://github.com/realm/SwiftLint
-
A Practical Approach to Automated Accessibility
iOS SwiftLint
-
Ask HN: Xcode users – how do you make it more usable?
1) Here are some tips & tricks for refactoring: https://developer.apple.com/documentation/xcode/finding-and-...
The “rename in project” or “rename in scope” functions are quite neat.
2) Check out SwiftLint: https://github.com/realm/SwiftLint
I have not used it in a while, but it comes with good defaults and is highly customizable to your own preferred Swift style.
-
How do you enforce that everyone in your team and your CI pipeline all use the same SwiftLint version?
Check this as well https://github.com/realm/SwiftLint
-
I am applying for jobs. Feedback and suggestions welcome.
Try SwiftLint. https://realm.github.io/SwiftLint/
-
Enforce Swift style and conventions with SwiftLint
if which swiftlint >/dev/null; then swiftlint else echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" fi
-
Awesome macOS Libraries List
SwiftLint - A tool to enforce Swift style and conventions. Language: Swift.
What are some alternatives?
pdftilecut - pdftilecut lets you sub-divide a PDF page(s) into smaller pages so you can print them on small form printers.
SwiftFormat - A command-line tool and Xcode Extension for formatting Swift code
moviematch - find movie on yts from IMDB's watchlist
Tailor - Cross-platform static analyzer and linter for Swift.
shpotify - A command-line interface to Spotify.
OCLint - A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C
espanso - Cross-platform Text Expander written in Rust
Swimat - An Xcode formatter plug-in to format your swift code.
habits-for-todoist - A habit app for Todoist
Flex - An in-app debugging and exploration tool for iOS
wireguird - wireguard gtk gui for linux
FBMemoryProfiler - iOS tool that helps with profiling iOS Memory usage.