diff --git a/02-cyclomatic-complexity/.latexmkrc b/02-cyclomatic-complexity/.latexmkrc new file mode 100644 index 0000000..5136fe3 --- /dev/null +++ b/02-cyclomatic-complexity/.latexmkrc @@ -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'; \ No newline at end of file diff --git a/02-cyclomatic-complexity/.texqc b/02-cyclomatic-complexity/.texqc new file mode 100644 index 0000000..ef39bd7 --- /dev/null +++ b/02-cyclomatic-complexity/.texqc @@ -0,0 +1,3 @@ +--ignore=You have requested document class +--ignore=You have requested package +--verbose diff --git a/02-cyclomatic-complexity/.texsc b/02-cyclomatic-complexity/.texsc new file mode 100644 index 0000000..7b627dd --- /dev/null +++ b/02-cyclomatic-complexity/.texsc @@ -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 diff --git a/02-cyclomatic-complexity/02-cyclomatic-complexity.tex b/02-cyclomatic-complexity/02-cyclomatic-complexity.tex new file mode 100644 index 0000000..2f9d237 --- /dev/null +++ b/02-cyclomatic-complexity/02-cyclomatic-complexity.tex @@ -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}