Hi,
I found a quite interesting tool called Overcommit [1].
It provides an easy way for setting up Git commit hooks and provides
some basic checking plugins.
The nice feature of the Git commit hooks is that you can run some checks
automatically and early in the development. For example with the commit hooks you can
run Rubocop check automatically whenever a commit is created. And if the check fails
the commit is not created.
I can see "make Rubocop happy" commits quite often (happens to me as well),
with Overcommit you can easily avoid that.
I have tried several Overcommit checks:
- Rubocop - runs Rubocop at "commit"
- Rspec - runs the tests before "push"
- Branch blacklist - can forbid direct commits to configured branches,
e.g. "master" (forces using pull requests, avoids commits to master my mistake)
- Commit message spellcheck - warns when there is a possible typo
Check my blog post [2] for the details, esp. watch the recorded screencast where
I wanted to show some mistakes which it can catch.
The tool looks promising, I'll try using it for some time. If you want to try it
as well check the blog post for the installation steps.
Enjoy!
[1] https://github.com/brigade/overcommit
[2] http://blog.ladslezak.cz/2016/06/06/overcommit/
--
Ladislav Slezák
Appliance department / YaST Developer
Lihovarská 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak(a)suse.com
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
Hi all,
some time ago we discussed where and how we should share
"Tips&Tricks" for YaST users and developers.
IIRC there was no clear conclusion so I decided to start
a wiki [1] to collect all our tricks we know or use.
For now it's just a place for dumping your ideas, links, short
howtos, etc... When we collect enough data we can probably
split it to several categories or move it somewhere else.
We just need the data first.
I have added there some my tricks from my personal "knowledgebase"
file. If you have better tricks or find something wrong simply
change it, it's a wiki ;-)
Ladislav
[1] https://github.com/yast/yast.github.io/wiki/YaST-Tips-and-Tricks
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
In the yast-storage-ng repository we noticed that Codeclimate became
more picky than it used to be and turns that, indeed, they have done a
big update to the service introducing many new checks and even a new
format for the configuration file codeclimate.yml. The old format still
works, so we don't have to change anything unless we want to configure
some of the new checks.
And that's the case of yast-storage-ng. Codeclimate was complaining
because a method was 26 lines long, but we have configured Rubocop to
accept up to 30. So I created this pull request to convert the
configuration file to the new format and to sync the settings there with
our Rubocop settings:
https://github.com/yast/yast-storage-ng/pull/441/commits/1ffd50908f5b8289d8…
The point is that there is another new check that is yelling to us and,
since there is no 1:1 Rubocop equivalent we need to take a decision.
Codeclimate thinks that each class should not have more than 20 methods.
With my pull request, Y2Storage::Md has grown to 23 methods.
What should we do? Try to honor this new check (which means rethinking
some of our classes, MD is simply today's example)? Disable it
completely? Raise the threshold to any value you guys find reasonable?
Input required to continue with that PR.
Cheers.
--
Ancor González Sosa
YaST Team at SUSE Linux GmbH
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org
This email is automatic generated from yast CI node. It lists of pull requests that have no activity more then three working days. If your module is listed, please check all pull request, why they are not merged yet.
Pending requests in repository yast-add-on:
- [WIP] Ask when the added repository is unsigned (bsc#1009127) (295 days)
https://github.com/yast/yast-add-on/pull/37
Pending requests in repository yast-bootloader:
- don't create grub_installdevice and let perl-Bootloader run grub2-install (239 days)
https://github.com/yast/yast-bootloader/pull/413
Pending requests in repository yast-country:
- Keyboard rewrite: Load keyboard layouts (21 days)
https://github.com/yast/yast-country/pull/144
Pending requests in repository yast-firstboot:
- Replace references to /var/adm/fillup-templates with new %_fillupdir … (6 days)
https://github.com/yast/yast-firstboot/pull/41
Pending requests in repository yast-installation:
- Replace references to /var/adm/fillup-templates with new %_fillupdir … (6 days)
https://github.com/yast/yast-installation/pull/626
- Update file_from_url.rb (22 days)
https://github.com/yast/yast-installation/pull/624
- Disable plymouth by a no affend method, it will not block tty device activation at first time user login(bsc#1042554). (100 days)
https://github.com/yast/yast-installation/pull/584
Pending requests in repository yast-ldap:
- Manipulate system LDAP configuration rather than application LDAP configuration (239 days)
https://github.com/yast/yast-ldap/pull/26
Pending requests in repository yast-live-installer:
- - Use /etc/products.d/openSUSE.prod as /etc/products.d/baseproduct (168 days)
https://github.com/yast/yast-live-installer/pull/14
Pending requests in repository yast-mail:
- [WIP] return back MailTable to yast2-mail module from yast2 module (238 days)
https://github.com/yast/yast-mail/pull/25
Pending requests in repository yast-multipath:
- fix ycp killing bug with changing \r with space (156 days)
https://github.com/yast/yast-multipath/pull/19
Pending requests in repository yast-network:
- Drop replace direct access to LanItems::Items whenever it is possible. (7 days)
https://github.com/yast/yast-network/pull/588
- [WIP] Improved device name collision recognition in autoinstallation (21 days)
https://github.com/yast/yast-network/pull/583
Pending requests in repository yast-nis-client:
- Link aginast libtirpc, sunrpc is deprecated and has no IPv6 support (6 days)
https://github.com/yast/yast-nis-client/pull/31
Pending requests in repository yast-packager:
- [WIP] Ask when the added repository is unsigned (bsc#1009127) (294 days)
https://github.com/yast/yast-packager/pull/230
Pending requests in repository yast-security:
- [WIP] refactoring autoconverted ruby code into ruby code (231 days)
https://github.com/yast/yast-security/pull/40
ERROR: API query limit exceeded
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: yast-devel+owner(a)opensuse.org