Skip to content

Commit

Permalink
02
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 9, 2023
1 parent 80e0080 commit 0a5f759
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 02-cyclomatic-complexity/.latexmkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$pdflatex = 'pdflatex %O -interaction=errorstopmode -halt-on-error --shell-escape %S';
$latex = 'latex %O -interaction=errorstopmode -halt-on-error --shell-escape %S';
$clean_ext = 'crumbs';
$success_cmd = 'texqc && texsc';
3 changes: 3 additions & 0 deletions 02-cyclomatic-complexity/.texqc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--ignore=You have requested document class
--ignore=You have requested package
--verbose
8 changes: 8 additions & 0 deletions 02-cyclomatic-complexity/.texsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--pws=../aspell.en.pws
--ignore=href,ffcode
--ignore=ff,nospell,citet,citep
--ignore=pptPic:pp
--ignore=pptQuote:p
--ignore=pptQuote:p
--ignore=pptSnippet:p
--ignore=innoBook:p
39 changes: 39 additions & 0 deletions 02-cyclomatic-complexity/02-cyclomatic-complexity.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
% (The MIT License)
%
% Copyright (c) 2023 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% The above copyright notice and this permission notice shall be included in all
% copies or substantial portions of the Software.
%
% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
% SOFTWARE.

\documentclass{article}
\usepackage{../sqm}
\newcommand*\thetitle{Cyclomatic Complexity}
\newcommand*\thesubtitle{}
\begin{document}

\plush{\sqmTitlePage{2}}

\thought{Some programmers mistakenly feel proud of higher complexity of their code.}

\plush{
\pptBanner{Read this:}\par
\href{https://www.yegor256.com/2015/06/29/simple-diagrams.html}{The Better Architect You Are, The Simpler Your Diagrams} (2015)\par
\href{https://www.yegor256.com/2014/10/26/hacker-vs-programmer-mentality.html}{Are You a Hacker or a Designer?} (2014)\par
}

\end{document}

0 comments on commit 0a5f759

Please sign in to comment.