dukaev / rubocop-changed Goto Github PK
View Code? Open in Web Editor NEWRuboCop extensions for lint only changed files in CI.
Home Page: https://rubygems.org/gems/rubocop-changed/
License: MIT License
RuboCop extensions for lint only changed files in CI.
Home Page: https://rubygems.org/gems/rubocop-changed/
License: MIT License
doesn't work with ruby 3 rails 7
I find this rubocop extension very helpful: https://github.com/rubocop/rubocop-md, but it seems that it cannot be used together with rubocop-changed
, because it only selects *.rb
files from the diff.
I have this error when RUBOCOP_CHANGED_BRANCH_NAME is not set, but it seems like it should not be required (https://github.com/dukaev/rubocop-changed?tab=readme-ov-file#additionally). It looks like the default base branch checking command is not working. I have the same issue on my Mac and on Ubuntu in Github Action. I googled for an answer and found some idea to run git gc
, but I run this on a very "young" repo, so it looks like some nonsense. Perhaps, it's related to git
version. Maybe it would be a good time to update the default command to something like: git remote show origin | sed -n '/HEAD branch/s/.*: //p'
- I know, not perfect. Optimally, readme could be updated: https://github.com/dukaev/rubocop-changed/blob/51b5b8850be41ec505e109733f3d5d85d7e754c6/README.md#additionally.
$ bundle exec rubocop --require rubocop-changed
Unknown error. Please, create issue on https://github.com/dukaev/rubocop-changed/issues.
Command:
git symbolic-ref refs/remotes/origin/HEAD
Output:
fatal: ref refs/remotes/origin/HEAD is not a symbolic ref
$ cat .git/refs/remotes/origin/HEAD
cat: .git/refs/remotes/origin/HEAD: No such file or directory
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.