S
S
sergeimvc2019-08-21 10:59:34
git
sergeimvc, 2019-08-21 10:59:34

How to push only error-free code?

Are there any tools to prevent pouring code into git? Some kind of lint.
Interested in all possible options.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2019-08-21
@saboteur_kiev

Use code review systems.
Github, bitbucket, gerrit, gitolite, etc.
Install, configure access to the git through this system, prohibit direct commit to master or release branch, so that all developers make their own feature branches and develop in them, and then create a pull request for merge to master .
And the testing of the work was checked before the merge on their branch. Merzhit - only after verification.

A
Anton, 2019-08-21
@karminski

Use WebStorm. When sending to the repository, by default, WebStorm will check the code.

N
nvdfxx, 2019-08-21
@nvdfxx

Or maybe just write tests? Probably even there is some kind of lib that does not allow you to commit if the coverage is insufficient

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question