{"id":417796,"date":"2024-06-30T01:46:24","date_gmt":"2024-06-30T01:46:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=417796"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-30T01:46:24","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=417796","title":{"rendered":"<span>\u0420\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 C# \u043a\u043e\u0434\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 CMS DotNetNuke: 40 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0443<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/e12\/351\/790\/e12351790900ad3143e2529b47446743.png\" alt=\"0890_DNN_ru\/image1.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e12\/351\/790\/e12351790900ad3143e2529b47446743.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0432\u043d\u043e\u0432\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 C# \u043a\u043e\u0434\u0430 \u0438 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u041d\u0430 \u043d\u0430\u0448\u0435\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0441\u0442\u043e\u043b\u0435 \u2013 CMS DotNetNuke, \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0438 \u0437\u0430\u043b\u0435\u0437\u0435\u043c. \u0418 \u043b\u0443\u0447\u0448\u0435 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0432\u0430\u0440\u0438\u0442\u0435 \u0441\u0435\u0431\u0435 \u043a\u043e\u0444\u0435&#8230;<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"dotnetnuke\">DotNetNuke<\/h2>\n<p>  <\/p>\n<p>DotNetNuke \u2013 \u044d\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c (CMS) \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 C#. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/dnnsoftware\/Dnn.Platform\">GitHub<\/a>. \u0422\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e <a href=\"https:\/\/dotnetfoundation.org\/\">.NET Foundation<\/a>.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/594\/8e3\/043\/5948e3043798c5cc16173b439be6fb94.png\" alt=\"0890_DNN_ru\/image2.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/594\/8e3\/043\/5948e3043798c5cc16173b439be6fb94.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0423 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439 <a href=\"https:\/\/www.dnnsoftware.com\/\">\u0441\u0430\u0439\u0442<\/a>, <a href=\"https:\/\/twitter.com\/dnn\">Twitter<\/a>, <a href=\"https:\/\/www.youtube.com\/c\/dotnetnuke\/videos\">YouTube-\u043a\u0430\u043d\u0430\u043b<\/a>. <\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0432\u043e\u043f\u0440\u043e\u0441, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0436\u0438\u0432\u043e\u0439? \u0415\u0441\u043b\u0438 \u0441\u0443\u0434\u0438\u0442\u044c \u043f\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e GitHub \u2013 \u0432 \u043a\u043e\u0434\u0435 \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0440\u0435\u043b\u0438\u0437\u044b. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 Twitter \u0438\u043b\u0438 YouTube \u043a\u0430\u043d\u0430\u043b \u2013 \u043e\u043d\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438\u0441\u044c.<\/p>\n<p>  <\/p>\n<p>\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u2013 \u0435\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <a href=\"https:\/\/dnncommunity.org\/\">\u0441\u0430\u0439\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430<\/a>, \u0442\u0430\u043c \u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043f\u0440\u043e \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0432\u0435\u043d\u0442\u044b.<\/p>\n<p>  <\/p>\n<p>\u041d\u043e, \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435, \u043d\u0430\u0441 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u043a\u043e\u0434. \u041a\u043e\u0434 \u0438 \u0435\u0433\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e.<\/p>\n<p>  <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u043d\u0430 <a href=\"https:\/\/github.com\/dnnsoftware\/Dnn.Platform\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a> (\u043d\u0438\u0436\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0441 \u043d\u0435\u0451) \u0443\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <a href=\"https:\/\/www.ndepend.com\/\">NDepend<\/a>. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/e27\/d30\/b57\/e27d30b5756e596cd71dc5b80fb397c6.png\" alt=\"0890_DNN_ru\/image3.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e27\/d30\/b57\/e27d30b5756e596cd71dc5b80fb397c6.png\"\/><\/p>\n<p>  <\/p>\n<p>\u042f \u043d\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u044d\u0442\u043e\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043b\u0438 \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043d\u043e \u0445\u043e\u0447\u0443 \u043d\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e. \u041f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0435\u0441\u043d\u043e \u0432\u043f\u043b\u0435\u0442\u0451\u043d \u0432 \u0432\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u041f\u0440\u043e \u044d\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0430\u0442\u0435\u0439, \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u0432 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/\">\u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435<\/a>.<\/p>\n<p>  <\/p>\n<h2 id=\"o-proverke\">\u041e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0441 <a href=\"https:\/\/github.com\/dnnsoftware\/Dnn.Platform\">GitHub<\/a> \u043e\u0442 22.10.2021. \u041f\u0440\u043e\u0448\u0443 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \/ \u0447\u0442\u0435\u043d\u0438\u0439 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e\u0439\u0434\u0451\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/\">PVS-Studio<\/a> \u0432\u0435\u0440\u0441\u0438\u0438 7.15. \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2013 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/pvs-studio.com\/ru\/pvs-studio\/try-free\/\">\u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0451\u0442 \u0432\u0430\u0441 \u043f\u043e \u0432\u0441\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0448\u0430\u0433\u0430\u043c. \u041f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e? \u0421\u043c\u0435\u043b\u043e <a href=\"https:\/\/pvs-studio.com\/ru\/about-feedback\/?is_question_form_open=true\">\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u043c<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0410 \u043d\u0430\u0447\u0430\u0442\u044c \u043c\u043d\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0440\u0435\u043b\u0438\u0437\u0430 PVS-Studio 7.15 \u2013 \u0441\u043f\u0438\u0441\u043a\u0430 \u043b\u0443\u0447\u0448\u0438\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439. \u0424\u0438\u0447\u0430 \u043d\u043e\u0432\u0430\u044f, \u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0435\u0449\u0451 \u0431\u0443\u0434\u0435\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c\u0441\u044f, \u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0436\u043d\u043e (\u0438 \u043d\u0443\u0436\u043d\u043e!) \u0443\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441.<\/p>\n<p>  <\/p>\n<h2 id=\"best-warnings\">Best warnings<\/h2>\n<p>  <\/p>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0432\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u0438 \u0435\u0433\u043e, \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u2026 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043a\u0443\u0447\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439. \u0414\u0435\u0441\u044f\u0442\u043a\u0438, \u0441\u043e\u0442\u043d\u0438, \u0442\u044b\u0441\u044f\u0447\u0438, \u043c\u043e\u0436\u0435\u0442, \u0434\u0430\u0436\u0435 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0442\u044b\u0441\u044f\u0447. \u041e\u0433\u043e, \u0432\u043e\u0442 \u044d\u0442\u043e \u043d\u043e\u043c\u0435\u0440\u2026 \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043a\u0430\u043a\u0438\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u043d\u0438\u0445, \u0441\u043a\u0430\u0436\u0435\u043c, \u0422\u043e\u043f-10 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445. \u0422\u0430\u043a\u0438\u0445, \u0447\u0442\u043e\u0431\u044b \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c: &#171;\u0414\u0430, \u044d\u0442\u043e \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0435\u0440\u0443\u043d\u0434\u0430 \u0432 \u043a\u043e\u0434\u0435, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e!&#187;. \u0427\u0442\u043e \u0436, \u0442\u0435\u043f\u0435\u0440\u044c \u0432 PVS-Studio \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u0438 \u0438\u043c\u044f \u0435\u043c\u0443 \u2013 <a href=\"https:\/\/pvs-studio.com\/ru\/docs\/manual\/6532\/\">best warnings<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043a\u0430 \u043e\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u0434\u043b\u044f Visual Studio, \u043d\u043e \u043f\u043e\u0437\u0436\u0435 \u043c\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 IDE. \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0430 \u2013 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0442\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u043b\u043e\u0433\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0438 \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u0447\u0442\u043e, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043f\u0430\u043b\u043e \u0432 \u0441\u043f\u0438\u0441\u043e\u043a best warnings \u043d\u0430 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435?<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 1<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public string NavigateURL(int tabID,                            bool isSuperTab,                            IPortalSettings settings,                            ....) {   ....   if (isSuperTab)   {     url += \"&amp;portalid=\" + settings.PortalId;   }    TabInfo tab = null;   if (settings != null)   {     tab = TabController.Instance.GetTab(tabID,              isSuperTab ? Null.NullInteger : settings.PortalId, false);   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a> The &#8216;settings&#8217; object was used before it was verified against null. Check lines: 190, 195. DotNetNuke.Library NavigationManager.cs 190<\/p>\n<p>  <\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0434\u0435\u0441\u044c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0451\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 <em>settings.PortalId<\/em>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0438\u0434\u0451\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <em>settings<\/em> \u043d\u0430 \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <em>null<\/em>. \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u0435\u0441\u043b\u0438 <em>settings<\/em> \u2013 <em>null<\/em> \u0438 <em>isSuperTab<\/em> \u2013 <em>true<\/em>, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <em>NullReferenceException<\/em>.<\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442, \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <em>isSuperTab<\/em> \u0438 <em>settings<\/em> \u2013 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440: <em>isSuperTab? Null.NullInteger: settings.PortalId<\/em>. \u041d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 <em>if<\/em>, <em>settings.PortalId<\/em> \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 <em>isSuperTab<\/em> \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>false<\/em>. <\/p>\n<p>  <\/p>\n<p>\u0418 \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 <em>isSuperTab<\/em> \u2013 <em>true<\/em>, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>settings.PortalId<\/em> \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043d\u0435\u044f\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0437\u0430\u043b\u043e\u0436\u0435\u043d, \u0438 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u0441\u0451 \u041e\u041a. <\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043b\u0435\u0433\u043a\u043e\u0447\u0438\u0442\u0430\u0435\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0428\u0435\u0440\u043b\u043e\u043a\u0430. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u2013 \u043f\u0440\u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0435\u0433\u043e \u044f\u0432\u043d\u043e \u0432 \u043a\u043e\u0434\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435 \u0441\u0431\u0438\u0432\u0430\u0442\u044c \u0441 \u0442\u043e\u043b\u043a\u0443: \u043d\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043d\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043d\u0438 \u0441\u0435\u0431\u044f \u0441\u043f\u0443\u0441\u0442\u044f \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f. \ud83d\ude09<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 2<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static string GetTableName(Type objType) {   string tableName = string.Empty;    \/\/ If no attrubute then use Type Name   if (string.IsNullOrEmpty(tableName))   {     tableName = objType.Name;     if (tableName.EndsWith(\"Info\"))     {       \/\/ Remove Info ending       tableName.Replace(\"Info\", string.Empty);     }   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3010\/\">V3010<\/a> The return value of function &#8216;Replace&#8217; is required to be utilized. DotNetNuke.Library CBO.cs 1038<\/p>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0445\u043e\u0442\u0435\u043b \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 <em>&#171;Info&#187;<\/em> \u0438\u0437 <em>tableName<\/em>, \u043d\u043e \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a \u0432 C#. \u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b \u0432 <em>tableName<\/em> \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442, \u0430 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u043d\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 <em>Replace<\/em> \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f;<\/li>\n<li>\u0432 \u043a\u043e\u0434\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <em>tableName<\/em>, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439. \u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0451\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 <em>tableName<\/em> \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0435\u0439\u0441 \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u0412\u0442\u043e\u0440\u043e\u0439 \u043a\u0435\u0439\u0441, \u043a\u0441\u0442\u0430\u0442\u0438, \u0442\u0430\u043a\u0436\u0435 \u0431\u044b\u043b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c, \u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u043e \u0432 \u0441\u043f\u0438\u0441\u043e\u043a best warnings. \u0412\u043e\u0442 \u043e\u043d\u043e: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;string.IsNullOrEmpty(tableName)&#8217; is always true. DotNetNuke.Library CBO.cs 1032<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 3<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static ArrayList GetFileList(...., string strExtensions, ....) {   ....   if (   strExtensions.IndexOf(            strExtension,             StringComparison.InvariantCultureIgnoreCase) != -1       || string.IsNullOrEmpty(strExtensions))   {     arrFileList.Add(new FileItem(fileName, fileName));   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3027\/\">V3027<\/a> The variable &#8216;strExtensions&#8217; was utilized in the logical expression before it was verified against null in the same logical expression. DotNetNuke.Library Globals.cs 3783<\/p>\n<p>  <\/p>\n<p>\u0412 \u0441\u0442\u0440\u043e\u043a\u0435 <em>strExtensions<\/em> \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 <em>strExtension<\/em>. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430\u0439\u0442\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442, \u0430 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 <em>strExtensions<\/em> \u043f\u0443\u0441\u0442\u043e\u0439 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e\u0439 <em>null<\/em>. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 <em>strExtensions<\/em> \u2013 <em>null<\/em>, \u0443\u0436\u0435 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 <em>IndexOf<\/em> \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0440\u043e\u0448\u0435\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <em>NullReferenceException<\/em>.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e <em>strExtension<\/em> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u043d\u043e \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <em>null<\/em>, \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u044f\u0432\u043d\u043e \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u044f: <em>strExtensions.Length == 0<\/em>.<\/p>\n<p>  <\/p>\n<p>\u041d\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u2013 \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 <strong>Issue 1<\/strong>, \u043a \u043d\u0435\u043c\u0443 \u0441\u0440\u0430\u0437\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 4<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static void KeepAlive(Page page) {   ....   var scriptBlock = string.Format(     \"(function($){{setInterval(       function(){{$.get(location.href)}}, {1});}}(jQuery));\",     Globals.ApplicationPath,      seconds);   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3025\/\">V3025<\/a> Incorrect format. A different number of format items is expected while calling &#8216;Format&#8217; function. Arguments not used: Globals.ApplicationPath. DotNetNuke.Library jQuery.cs 402<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u2013 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>seconds<\/em> \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0431\u0443\u0434\u0435\u0442, \u0430 \u0432\u043e\u0442 \u0434\u043b\u044f <em>Globals.ApplicationPath<\/em> \u0432 \u043d\u0435\u0439 \u043c\u0435\u0441\u0442\u0430 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0438\u0437-\u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f <em>{0}<\/em> \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 5<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void ProcessRequest(....) {   ....   if (!result.RewritePath.ToLowerInvariant().Contains(\"tabId=\"))   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3122\/\">V3122<\/a> The &#8216;result.RewritePath.ToLowerInvariant()&#8217; lowercase string is compared with the &#8216;&#187;tabId=&#187;&#8216; mixed case string. DotNetNuke.Library AdvancedUrlRewriter.cs 2252<\/p>\n<p>  <\/p>\n<p>\u041f\u043e-\u043c\u043e\u0435\u043c\u0443, \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u044d\u0442\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u043b\u0438\u0447\u043d\u043e \u044f \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0435\u0449\u0451 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b. \u0427\u0442\u043e \u0436, \u0432\u0441\u0451 \u0431\u044b\u0432\u0430\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437. \ud83d\ude42<\/p>\n<p>  <\/p>\n<p>\u0418\u0437 <em>RewritePath<\/em> \u0431\u0435\u0440\u0443\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442 \u0435\u0451 \u043a \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442, \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u043e\u043d\u0430 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 <em>&#171;tabId=&#187;<\/em>. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0443 \u043d\u0430\u0441 \u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435, \u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c.<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 6<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">protected override void RenderEditMode(HtmlTextWriter writer) {   ....   \/\/ Add the Not Specified Option   if (this.ValueField == ListBoundField.Text)   {     writer.AddAttribute(HtmlTextWriterAttribute.Value, Null.NullString);   }   else   {     writer.AddAttribute(HtmlTextWriterAttribute.Value, Null.NullString);   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3004\/\">V3004<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. DotNetNuke.Library DNNListEditControl.cs 380<\/p>\n<p>  <\/p>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u043a\u0430 copy-paste: \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0442\u0435\u043b\u0430 <em>then<\/em> \u0438 <em>else<\/em>-\u0432\u0435\u0442\u043e\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <em>if<\/em>.<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 7<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static string LocalResourceDirectory {   get   {     return \"App_LocalResources\";   } } private static bool HasLocalResources(string path) {   var folderInfo = new DirectoryInfo(path);    if (path.ToLowerInvariant().EndsWith(Localization.LocalResourceDirectory))   {     return true;   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3122\/\">V3122<\/a> The &#8216;path.ToLowerInvariant()&#8217; lowercase string is compared with the &#8216;Localization.LocalResourceDirectory&#8217; mixed case string. Dnn.PersonaBar.Extensions LanguagesController.cs 644<\/p>\n<p>  <\/p>\n<p>\u0412\u043d\u043e\u0432\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u0433\u0440\u0430\u0431\u043b\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0447\u0443\u0442\u044c \u043c\u0435\u043d\u0435\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>path<\/em> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u043e \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443, \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0443\u044e \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u2013 <em>&#171;App_LocalResources&#187;<\/em> (\u043b\u0438\u0442\u0435\u0440\u0430\u043b, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 \u0438\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <em>LocalResourceDirectory<\/em>).<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 8<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">internal static IEnumerable&lt;PropertyInfo> GetEditorConfigProperties() {   return     typeof(EditorConfig).GetProperties()       .Where(         info => !info.Name.Equals(\"Magicline_KeystrokeNext\")               &amp;&amp; !info.Name.Equals(\"Magicline_KeystrokePrevious\")              &amp;&amp; !info.Name.Equals(\"Plugins\")               &amp;&amp; !info.Name.Equals(\"Codemirror_Theme\")              &amp;&amp; !info.Name.Equals(\"Width\")               &amp;&amp; !info.Name.Equals(\"Height\")               &amp;&amp; !info.Name.Equals(\"ContentsCss\")              &amp;&amp; !info.Name.Equals(\"Templates_Files\")               &amp;&amp; !info.Name.Equals(\"CustomConfig\")              &amp;&amp; !info.Name.Equals(\"Skin\")               &amp;&amp; !info.Name.Equals(\"Templates_Files\")              &amp;&amp; !info.Name.Equals(\"Toolbar\")               &amp;&amp; !info.Name.Equals(\"Language\")              &amp;&amp; !info.Name.Equals(\"FileBrowserWindowWidth\")               &amp;&amp; !info.Name.Equals(\"FileBrowserWindowHeight\")              &amp;&amp; !info.Name.Equals(\"FileBrowserWindowWidth\")               &amp;&amp; !info.Name.Equals(\"FileBrowserWindowHeight\")              &amp;&amp; !info.Name.Equals(\"FileBrowserUploadUrl\")               &amp;&amp; !info.Name.Equals(\"FileBrowserImageUploadUrl\")              &amp;&amp; !info.Name.Equals(\"FilebrowserImageBrowseLinkUrl\")              &amp;&amp; !info.Name.Equals(\"FileBrowserImageBrowseUrl\")              &amp;&amp; !info.Name.Equals(\"FileBrowserFlashUploadUrl\")              &amp;&amp; !info.Name.Equals(\"FileBrowserFlashBrowseUrl\")              &amp;&amp; !info.Name.Equals(\"FileBrowserBrowseUrl\")              &amp;&amp; !info.Name.Equals(\"DefaultLinkProtocol\")); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3001\/\">V3001<\/a> There are identical sub-expressions &#8216;!info.Name.Equals(&#171;Templates_Files&#187;)&#8217; to the left and to the right of the &#8216;&amp;&amp;&#8217; operator. DNNConnect.CKEditorProvider SettingsUtil.cs 1451<\/p>\n<p>  <\/p>\n<p>\u042f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u044f. \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0443\u0431\u043b\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a: <em>!info.Name.Equals(&#171;Templates_Files&#187;)<\/em>. \u0418\u043b\u0438 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u0435\u043d, \u0438\u043b\u0438 \u0437\u0434\u0435\u0441\u044c \u0437\u0430\u0442\u0435\u0440\u044f\u043b\u0430\u0441\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043d\u0443\u0436\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0437\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0443\u0431\u043b\u0438, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0438\u043b (\u0432\u0437\u044f\u043b\u0438 \u043d\u0430 \u043a\u0430\u0440\u0430\u043d\u0434\u0430\u0448). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u0436\u0435 \u043f\u043e \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<ul>\n<li><em>!info.Name.Equals(&#171;FileBrowserWindowWidth&#187;)<\/em><\/li>\n<li><em>!info.Name.Equals(&#171;FileBrowserWindowHeight&#187;)<\/em><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0422\u0440\u0438 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u2013 \u043d\u0435\u043f\u043b\u043e\u0445\u043e. \u041d\u0430 \u043c\u043e\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u044d\u0442\u043e, \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a, \u0440\u0435\u043a\u043e\u0440\u0434.<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 9<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void ProcessContentPane() {   ....   string moduleEditRoles      = this.ModuleConfiguration.ModulePermissions.ToString(\"EDIT\");   ....   moduleEditRoles      = moduleEditRoles.Replace(\";\", string.Empty).Trim().ToLowerInvariant();   ....   if (    viewRoles.Equals(this.PortalSettings.AdministratorRoleName,                             StringComparison.InvariantCultureIgnoreCase)       &amp;&amp; (moduleEditRoles.Equals(this.PortalSettings.AdministratorRoleName,                                   StringComparison.InvariantCultureIgnoreCase)           || string.IsNullOrEmpty(moduleEditRoles))       &amp;&amp; pageEditRoles.Equals(this.PortalSettings.AdministratorRoleName,                                StringComparison.InvariantCultureIgnoreCase))   {     adminMessage = Localization.GetString(\"ModuleVisibleAdministrator.Text\");     showMessage =    !this.ModuleConfiguration.HideAdminBorder                    &amp;&amp; !Globals.IsAdminControl();   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3027\/\">V3027<\/a> The variable &#8216;moduleEditRoles&#8217; was utilized in the logical expression before it was verified against null in the same logical expression. DotNetNuke.Library Container.cs 273<\/p>\n<p>  <\/p>\n<p>\u041c\u0434\u0430, \u043c\u043d\u043e\u0433\u043e\u0432\u0430\u0442\u043e \u043a\u043e\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c\u2026 \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043c.<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">   moduleEditRoles.Equals(this.PortalSettings.AdministratorRoleName,                            StringComparison.InvariantCultureIgnoreCase) || string.IsNullOrEmpty(moduleEditRoles)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u043e\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e! \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u043c\u044b \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438\u2026 \u041e\u043f\u044f\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 <em>moduleEditRoles<\/em> \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u0438 \u043b\u0438\u0448\u044c \u0437\u0430\u0442\u0435\u043c \u0438\u0434\u0451\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0430 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 <em>moduleEditRoles<\/em> \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438\u043b\u0438 <em>null<\/em>-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0430\u0432\u0434\u0430, \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0432 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 <em>null<\/em>-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 <em>ToLowerInvariant<\/em>. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u2013 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439. \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0438 \u043f\u043e\u043d\u0438\u0437\u0438\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u044f \u0431\u044b \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043b \u043a\u043e\u0434, \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 <em>IsNullOrEmpty<\/em> \u0432\u043f\u0435\u0440\u0451\u0434.<\/p>\n<p>  <\/p>\n<p><strong>Best warnings. Issue 10<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static void Handle404OrException(....) {   ....   string errRV;   ....   if (result != null &amp;&amp; result.Action != ActionType.Output404)   {     ....     \/\/ line 552     errRV = \"500 Rewritten to {0} : {1}\";   }   else \/\/ output 404 error   {     ....     \/\/ line 593     errRV = \"404 Rewritten to {0} : {1} : Reason {2}\";     ....   }   ....   \/\/ line 623   response.AppendHeader(errRH,                          string.Format(                           errRV,                            \"DNN Tab\",                           errTab.TabName                              + \"(Tabid:\" + errTabId.ToString() + \")\",                           reason));   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3025\/\">V3025<\/a> Incorrect format. A different number of format items is expected while calling &#8216;Format&#8217; function. Arguments not used: reason. DotNetNuke.Library AdvancedUrlRewriter.cs 623<\/p>\n<p>  <\/p>\n<p>False positive. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u2013 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Summary<\/strong><\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0448\u0435\u043b, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434! \u0414\u0430, \u0438\u043c\u0435\u0435\u043c 1 \u044f\u0432\u043d\u044b\u0439 false positive, \u043d\u043e \u0432\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043a \u043a\u043e\u0434\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u0443\u0447\u0448\u0438\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u2013 \u043d\u0438\u0436\u0435 \u044f \u0434\u0430\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e. \ud83d\ude42<\/p>\n<p>  <\/p>\n<h2 id=\"drugie-preduprezhdeniya\">\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0441 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u044b \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438. \u041d\u0435\u0442-\u043d\u0435\u0442-\u043d\u0435\u0442, \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0435\u0449\u0451 \u043d\u0435\u043c\u0430\u043b\u043e \u043c\u0435\u0441\u0442, \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Issue 11<\/strong><\/p>\n<p>  <\/p>\n<p>\u0412 best warnings \u043c\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442 then\/else-\u0432\u0435\u0442\u043e\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <em>if<\/em>. \u0422\u043e \u043c\u0435\u0441\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">protected void ExecuteSearch(string searchText, string searchType) {   ....   if (Host.UseFriendlyUrls)   {     this.Response.Redirect(this._navigationManager.NavigateURL(searchTabId));   }   else   {     this.Response.Redirect(this._navigationManager.NavigateURL(searchTabId));   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3004\/\">V3004<\/a> The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. DotNetNuke.Website Search.ascx.cs 432<\/p>\n<p>  <\/p>\n<p><strong>Issues 12, 13<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static void LoadProviders() {   ....   foreach (KeyValuePair&lt;string, SitemapProvider> comp in              ComponentFactory.GetComponents&lt;SitemapProvider>())   {     comp.Value.Name = comp.Key;     comp.Value.Description = comp.Value.Description;     _providers.Add(comp.Value);   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3005\/\">V3005<\/a> The &#8216;comp.Value.Description&#8217; variable is assigned to itself. DotNetNuke.Library SitemapBuilder.cs 231<\/p>\n<p>  <\/p>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u0431\u044f \u0436\u0435. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u0434, \u0442\u0430\u043a \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043b\u0438. \u0427\u0442\u043e-\u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u0435\u043d&#8230;<\/p>\n<p>  <\/p>\n<p><em>Description<\/em> \u2013 \u0430\u0432\u0442\u043e\u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public string Description { get; set; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0441 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0432 \u0441\u0435\u0431\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public SendTokenizedBulkEmail(List&lt;string> addressedRoles,                                List&lt;UserInfo> addressedUsers,                                bool removeDuplicates,                                string subject,                                string body) {   this.ReportRecipients = true;   this.AddressMethod = AddressMethods.Send_TO;   this.BodyFormat = MailFormat.Text;   this.Priority = MailPriority.Normal;   this._addressedRoles = addressedRoles;   this._addressedUsers = addressedUsers;   this.RemoveDuplicates = removeDuplicates;   this.Subject = subject;   this.Body = body;   this.SuppressTokenReplace = this.SuppressTokenReplace;   this.Initialize(); }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3005\/\">V3005<\/a> The &#8216;this.SuppressTokenReplace&#8217; variable is assigned to itself. DotNetNuke.Library SendTokenizedBulkEmail.cs 109<\/p>\n<p>  <\/p>\n<p>\u041d\u0435 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u0430\u043a \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u2013 \u043e\u043f\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u0441\u0430\u043c\u043e \u0432 \u0441\u0435\u0431\u044f. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043d\u0435\u0442, \u0438 \u043a\u0430\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u2013 \u0432\u043e\u043f\u0440\u043e\u0441. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0443, \u0447\u0442\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0435, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 (<em>false<\/em>, \u0442\u043e \u0431\u0438\u0448\u044c):<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">\/\/\/ &lt;summary>Gets or sets a value indicating whether               shall automatic TokenReplace be prohibited?.&lt;\/summary> \/\/\/ &lt;remarks>default value: false.&lt;\/remarks> public bool SuppressTokenReplace { get; set; }<\/code><\/pre>\n<p>  <\/p>\n<p><strong>Issues 14, 15<\/strong><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u043c\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0432 best warnings, \u043a\u0430\u043a \u043a\u0442\u043e-\u0442\u043e \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a? \u0412 \u043e\u0431\u0449\u0435\u043c, \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u0440\u043e \u043d\u0435\u0451 \u043d\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \ud83d\ude42<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static string BuildPermissions(IList Permissions, string PermissionKey) {   ....   \/\/ get string   string permissionsString = permissionsBuilder.ToString();    \/\/ ensure leading delimiter   if (!permissionsString.StartsWith(\";\"))   {     permissionsString.Insert(0, \";\");   }    .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3010\/\">V3010<\/a> The return value of function &#8216;Insert&#8217; is required to be utilized. DotNetNuke.Library PermissionController.cs 64<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 <em>permissionsString<\/em> \u043d\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u0441 &#8216;;&#8217;, \u0442\u043e \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u2013 <em>Insert<\/em> \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u0443\u044e. \u0421 \u0443\u0447\u0451\u0442\u043e\u043c \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439. \ud83d\ude42<\/p>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043e\u0434\u043d\u043e \u043c\u0435\u0441\u0442\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public override void Install() {   ....   skinFile.Replace(Globals.HostMapPath + \"\\\\\", \"[G]\");   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3010\/\">V3010<\/a> The return value of function &#8216;Replace&#8217; is required to be utilized. DotNetNuke.Library SkinInstaller.cs 230<\/p>\n<p>  <\/p>\n<p><strong>Issue 16<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public int Page { get; set; } = 1; public override IConsoleResultModel Run() {   ....   var pageIndex = (this.Page > 0 ? this.Page - 1 : 0);   pageIndex = pageIndex &lt; 0 ? 0 : pageIndex;   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;pageIndex &lt; 0&#8217; is always false. DotNetNuke.Library ListModules.cs 61<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f <em>pageIndex &lt; 0<\/em> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>pageIndex<\/em> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c, \u0442\u0430\u043a \u043a\u0430\u043a:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0435\u0441\u043b\u0438 <em>this.Page<\/em> \u043b\u0435\u0436\u0438\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 [1; <em>int.MaxValue<\/em>], <em>pageIndex<\/em> \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 [0; <em>int.MaxValue \u2014 1<\/em>]<\/li>\n<li>\u0435\u0441\u043b\u0438 <em>this.Page<\/em> \u043b\u0435\u0436\u0438\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 [<em>int.MinValue<\/em>; 0], <em>pageIndex<\/em> \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <em>pageIndex &lt; 0<\/em> \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0430\u0432\u0430\u0442\u044c <em>false<\/em>.<\/p>\n<p>  <\/p>\n<p><strong>Issue 17<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private CacheDependency GetTabsCacheDependency(IEnumerable&lt;int> portalIds) {   ....   \/\/ get the portals list dependency   var portalKeys = new List&lt;string>();   if (portalKeys.Count > 0)   {     keys.AddRange(portalKeys);   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;portalKeys.Count > 0&#8217; is always false. DotNetNuke.Library CacheController.cs 968<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442, \u0447\u0442\u043e \u043e\u043d \u043d\u0435\u043f\u0443\u0441\u0442\u043e\u0439. \u041d\u0435\u0442, \u043d\u0443 \u0430 \u0432\u0434\u0440\u0443\u0433? \ud83d\ude42<\/p>\n<p>  <\/p>\n<p><strong>Issue 18<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public JournalEntity(string entityXML) {   ....   XmlDocument xDoc = new XmlDocument { XmlResolver = null };   xDoc.LoadXml(entityXML);   if (xDoc != null)   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;xDoc != null&#8217; is always true. DotNetNuke.Library JournalEntity.cs 30<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0437\u0432\u0430\u043b\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 <em>LoadXml<\/em>. \u0414\u0430\u043b\u0435\u0435 \u0432\u0441\u0451 \u0442\u0443 \u0436\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u043d\u0430 \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <em>null<\/em>. \u041d\u0435\u0442, \u043d\u0443 \u0430 \u0432\u0434\u0440\u0443\u0433? (2)<\/p>\n<p>  <\/p>\n<p><strong>Issue 19<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public enum ActionType {   ....   Redirect302Now = 2,   ....   Redirect302 = 5,   .... } public ActionType Action { get; set; } private static bool CheckForRedirects(....) {   ....   if (   result.Action != ActionType.Redirect302Now        || result.Action != ActionType.Redirect302)   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression is always true. Probably the &#8216;&amp;&amp;&#8217; operator should be used here. DotNetNuke.Library AdvancedUrlRewriter.cs 1695<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0436\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u043e\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 <em>false<\/em>. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043e\u0431\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n<p>  <\/p>\n<ul>\n<li><em>result.Action == ActionType.Redirect302Now<\/em><\/li>\n<li><em>result.Action == ActionType.Redirect302<\/em><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a <em>result.Action<\/em> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u0432\u0443\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043d\u0435\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c\u043e, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u0442\u0438\u043d\u043d\u043e.<\/p>\n<p>  <\/p>\n<p><strong>Issue 20<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public Route MapRoute(string moduleFolderName,                        string routeName,                        string url,                        object defaults,                        object constraints,                        string[] namespaces) {   if (   namespaces == null        || namespaces.Length == 0        || string.IsNullOrEmpty(namespaces[0]))   {     throw new ArgumentException(Localization.GetExceptionMessage(       \"ArgumentCannotBeNullOrEmpty\",       \"The argument '{0}' cannot be null or empty.\",       \"namespaces\"));   }    Requires.NotNullOrEmpty(\"moduleFolderName\", moduleFolderName);    url = url.Trim('\/', '\\\\');    var prefixCounts = this.portalAliasMvcRouteManager.GetRoutePrefixCounts();   Route route = null;    if (url == null)   {     throw new ArgumentNullException(nameof(url));   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;url == null&#8217; is always false. DotNetNuke.Web.Mvc MvcRoutingManager.cs 66<\/p>\n<p>  <\/p>\n<p>\u0421 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <em>url<\/em> \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f. \u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 <em>url<\/em> \u2013 <em>null<\/em>, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0445\u043e\u0442\u044f\u0442 \u0432\u044b\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <em>ArgumentNullException<\/em>, \u043d\u0435\u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e \u043d\u0430\u043c\u0435\u043a\u0430\u044e\u0449\u0435\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u0443 <em>url<\/em> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 <em>Trim<\/em>\u2026 \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u0435\u0441\u043b\u0438 <em>url<\/em> \u2013 <em>null<\/em>, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0440\u043e\u0448\u0435\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <em>NullReferenceException<\/em>. \u041f\u043e\u0437\u0434\u043d\u043e\u0432\u0430\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0441\u0434\u0435\u043b\u0430\u043b\u0438, \u0432\u044b\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>  <\/p>\n<p><strong>Issue 21<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public Hashtable Settings {   get   {     return this.ModuleContext.Settings;   } } public string UploadRoles {   get   {     ....     if (Convert.ToString(this.Settings[\"uploadroles\"]) != null)     {       this._UploadRoles = Convert.ToString(this.Settings[\"uploadroles\"]);     }     ....   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;Convert.ToString(this.Settings[&#171;uploadroles&#187;]) != null&#8217; is always true. DotNetNuke.Website.Deprecated WebUpload.ascx.cs 151<\/p>\n<p>  <\/p>\n<p><em>Convert.ToString<\/em> \u043b\u0438\u0431\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043b\u0438\u0431\u043e <em>String.Empty<\/em>, \u043d\u043e \u043d\u0435 <em>null<\/em>. \u041a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0442\u043e\u043b\u043a\u0443 \u043e\u0442 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0432\u0435\u0440\u0438\u043b\u0438? \u042d\u0442\u043e <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/terms\/6461\/\">false positive<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <em>Convert.ToString<\/em>. \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430: <em>Convert.ToString(String value)<\/em>. \u041e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <em>value<\/em> as is. \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u0435\u0441\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043f\u0440\u0438\u0448\u0451\u043b <em>null<\/em>, \u0442\u043e \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 <em>null<\/em>.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 \u2013 <em>Convert.ToString(Object value)<\/em>. \u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u043c \u0432\u044b\u0448\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043d\u0430. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">\/\/ Returns: \/\/     The string representation of value,  \/\/     or System.String.Empty if value is null.<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0443, \u043d\u043e! \u0421\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>null<\/em>, \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043c\u0435\u0442\u043e\u0434 \u0432\u0441\u0451 \u0436\u0435 \u0432\u0435\u0440\u043d\u0451\u0442 <em>null<\/em>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u043e:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/6f9\/24d\/b4c\/6f924db4c4bc2e02ccf4985b2b6d7ce4.png\" alt=\"0890_DNN_ru\/image4.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6f9\/24d\/b4c\/6f924db4c4bc2e02ccf4985b2b6d7ce4.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0435\u0441\u043b\u0438 <em>obj == null<\/em>, <em>stringRepresentation != null<\/em> (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430);<\/li>\n<li>\u0435\u0441\u043b\u0438 <em>obj != null<\/em>, <em>stringRepresentation == null<\/em>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041e\u0443, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u0442&#8230;<\/p>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u043e\u0437\u0440\u0430\u0437\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0438\u043d\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440, \u0438 \u043a\u0442\u043e \u0436\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u0430 <em>ToString<\/em> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>null<\/em>? \u041d\u0443, Microsoft \u043f\u043e\u0440\u043e\u0439 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/csharp\/0656\/\">\u044d\u0442\u0438\u043c \u0433\u0440\u0435\u0448\u0438\u043b<\/a> (\u0441\u043c. Issue 14 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435).<\/p>\n<p>  <\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0432\u043e\u043f\u0440\u043e\u0441! \u0417\u043d\u0430\u043b\u0438 \u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u044b \u043a\u043e\u0434\u0430 \u043f\u0440\u043e \u044d\u0442\u0443 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u0447\u043b\u0438 \u0435\u0451 \u0438\u043b\u0438 \u043d\u0435\u0442? \u0417\u043d\u0430\u043b\u0438 \u043b\u0438 \u043f\u0440\u043e \u044d\u0442\u043e \u0432\u044b \u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0435 \u043b\u0438, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 <em>ToString<\/em> \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c <em>null<\/em>?<\/p>\n<p>  <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0445\u043e\u0447\u0443 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0445\u0432\u0430\u043b\u0438\u0442\u044c nullable reference types \u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 .NET, \u0433\u0434\u0435 \u0438\u0437 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b \u043c\u0435\u0442\u043e\u0434\u0430 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>null<\/em>:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static string? ToString(object? value)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0435\u0440\u0435\u0440\u044b\u0432, \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u0444\u0435\u0451\u043a \u0438 \u0437\u0430\u043f\u0430\u0441\u0442\u0438\u0441\u044c \u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u0440\u0446\u0438\u0435\u0439 \u043f\u0435\u0447\u0435\u043d\u0435\u043a, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c. \u041a\u043e\u0444\u0435-\u0431\u0440\u0435\u0439\u043a!<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/d29\/2ab\/daa\/d292abdaa1dc75ca2b1df941f6eed2ba.png\" alt=\"0890_DNN_ru\/image5.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d29\/2ab\/daa\/d292abdaa1dc75ca2b1df941f6eed2ba.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u044b \u043f\u0440\u0438\u0441\u043b\u0443\u0448\u0430\u043b\u0438\u0441\u044c \u043a \u0441\u043e\u0432\u0435\u0442\u0430\u043c \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0438 \u0437\u0430\u043f\u0430\u0441\u044b. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c.<\/p>\n<p>  <\/p>\n<p><strong>Issues 22, 23<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static ModuleItem ConvertToModuleItem(ModuleInfo module)    => new ModuleItem {   Id = module.ModuleID,   Title = module.ModuleTitle,   FriendlyName = module.DesktopModule.FriendlyName,   EditContentUrl = GetModuleEditContentUrl(module),   EditSettingUrl = GetModuleEditSettingUrl(module),   IsPortable = module.DesktopModule?.IsPortable,   AllTabs = module.AllTabs, };<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3042\/\">V3042<\/a> Possible NullReferenceException. The &#8216;?.&#8217; and &#8216;.&#8217; operators are used for accessing members of the &#8216;module.DesktopModule&#8217; object Dnn.PersonaBar.Extensions Converters.cs 67<\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432 <em>FriendlyName<\/em> \u0438 <em>IsPortable<\/em>. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f <em>module.DesktopModule.FriendlyName<\/em> \u0438 <em>module.DesktopModule?.IsPortable<\/em> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2013 \u0430 \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <em>module.DesktopModule<\/em> \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>null<\/em>? \u0415\u0441\u043b\u0438 \u0434\u0430, \u0437\u0430\u0449\u0438\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <em>?.<\/em> \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <em>NullReferenceException<\/em>. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442, \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 <em>?.<\/em> \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0431\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435\u0445 \u0441 \u0442\u043e\u043b\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0441\u044f \u0435\u0449\u0451 \u0440\u0430\u0437.<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public IDictionary&lt;string, object> GetSettings(MenuItem menuItem) {   var settings = new Dictionary&lt;string, object>   {     { \"canSeePagesList\",        this.securityService.CanViewPageList(menuItem.MenuId) },      { \"portalName\",        PortalSettings.Current.PortalName },                               { \"currentPagePermissions\",        this.securityService.GetCurrentPagePermissions() },      { \"currentPageName\",        PortalSettings.Current?.ActiveTab?.TabName },                 { \"productSKU\",        DotNetNukeContext.Current.Application.SKU },      { \"isAdmin\",        this.securityService.IsPageAdminUser() },      { \"currentParentHasChildren\",        PortalSettings.Current?.ActiveTab?.HasChildren },      { \"isAdminHostSystemPage\",        this.securityService.IsAdminHostSystemPage() },   };    return settings; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3042\/\">V3042<\/a> Possible NullReferenceException. The &#8216;?.&#8217; and &#8216;.&#8217; operators are used for accessing members of the &#8216;PortalSettings.Current&#8217; object Dnn.PersonaBar.Extensions PagesMenuController.cs 47<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u043e\u043d \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <em>PortalSettings.Current<\/em>. \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 <em>null<\/em>, \u0430 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u2013 \u043d\u0435\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">var settings = new Dictionary&lt;string, object> {   ....   { \"portalName\",      PortalSettings.Current.PortalName },                            ....   { \"currentPageName\",      PortalSettings.Current?.ActiveTab?.TabName },              ....   { \"currentParentHasChildren\",      PortalSettings.Current?.ActiveTab?.HasChildren },   .... };<\/code><\/pre>\n<p>  <\/p>\n<p><strong>Issues 24, 25, 26<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static void HydrateObject(object hydratedObject, IDataReader dr) {   ....   \/\/ Get the Data Value's type   objDataType = coloumnValue.GetType();   if (coloumnValue == null || coloumnValue == DBNull.Value)   {     \/\/ set property value to Null     objPropertyInfo.SetValue(hydratedObject,                               Null.SetNull(objPropertyInfo),                               null);   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a> The &#8216;coloumnValue&#8217; object was used before it was verified against null. Check lines: 902, 903. DotNetNuke.Library CBO.cs 902<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <em>coloumnValue<\/em> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 <em>GetType<\/em>, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0447\u0442\u043e <em>coloumnValue != null<\/em>. \u0420\u0435\u0431\u044f\u0442\u0430, \u0432\u044b \u0447\u0435\u0433\u043e? \ud83d\ude41 \u042d\u0442\u043e \u0436\u0435 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0435 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0439. \u0412\u043e\u0442 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d.<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void DeleteLanguage() {   ....   \/\/ Attempt to get the Locale   Locale language = LocaleController.Instance                                     .GetLocale(tempLanguagePack.LanguageID);   if (tempLanguagePack != null)   {     LanguagePackController.DeleteLanguagePack(tempLanguagePack);   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a> The &#8216;tempLanguagePack&#8217; object was used before it was verified against null. Check lines: 235, 236. DotNetNuke.Library LanguageInstaller.cs 235<\/p>\n<p>  <\/p>\n<p>\u0422\u0430 \u0436\u0435 \u0441\u0430\u043c\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u2013 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0451\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443 <em>LanguageId<\/em> (<em>tempLanguagePack.LanguageID<\/em>), \u0430 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0438\u0434\u0451\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <em>tempLanguagePack != null<\/em>.<\/p>\n<p>  <\/p>\n<p>\u0418 \u0435\u0449\u0451&#8230;<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static void AddLanguageHttpAlias(int portalId, Locale locale) {   ....   var portalAliasInfos =    portalAliasses as IList&lt;PortalAliasInfo>                           ?? portalAliasses.ToList();    if (portalAliasses != null &amp;&amp; portalAliasInfos.Any())   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a> The &#8216;portalAliasses&#8217; object was used before it was verified against null. Check lines: 1834, 1835. DotNetNuke.Library Localization.cs 1834<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043c, \u0445\u043e\u0442\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0435\u0449\u0451 \u0435\u0441\u0442\u044c. \u0412\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0435\u0449\u0451 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0447\u043b\u0435\u043d\u0430\u043c \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043d\u0430 <em>null<\/em>.<\/p>\n<p>  <\/p>\n<p><strong>Issues 27, 28, 29, 30<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static void WatcherOnChanged(object sender, FileSystemEventArgs e) {   if (Logger.IsInfoEnabled &amp;&amp; !e.FullPath.EndsWith(\".log.resources\"))   {     Logger.Info($\"Watcher Activity: {e.ChangeType}. Path: {e.FullPath}\");   }    if (   _handleShutdowns        &amp;&amp; !_shutdownInprogress        &amp;&amp; (e.FullPath ?? string.Empty)             .StartsWith(_binFolder,                          StringComparison.InvariantCultureIgnoreCase))   {     ShceduleShutdown();   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a> The &#8216;e.FullPath&#8217; object was used before it was verified against null. Check lines: 147, 152. DotNetNuke.Web DotNetNukeShutdownOverload.cs 147<\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 <em>e.FullPath<\/em>. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0451\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 <em>e.FullPath.EndsWith(&#171;.log.resources&#187;)<\/em>, \u0430 \u043f\u043e\u0437\u0436\u0435 \u2013 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <em>??<\/em>: <em>e.FullPath ?? string.Empty<\/em>.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 copy-paste:<\/p>\n<p>  <\/p>\n<ul>\n<li>V3095 The &#8216;e.FullPath&#8217; object was used before it was verified against null. Check lines: 160, 165. DotNetNuke.Web DotNetNukeShutdownOverload.cs 160<\/li>\n<li>V3095 The &#8216;e.FullPath&#8217; object was used before it was verified against null. Check lines: 173, 178. DotNetNuke.Web DotNetNukeShutdownOverload.cs 173<\/li>\n<li>V3095 The &#8216;e.FullPath&#8217; object was used before it was verified against null. Check lines: 186, 191. DotNetNuke.Web DotNetNukeShutdownOverload.cs 186<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u043c\u043d\u0435 \u0443\u0436\u0435 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a>, \u0430 \u0432\u0430\u043c, \u0434\u0443\u043c\u0430\u044e, \u0447\u0438\u0442\u0430\u0442\u044c. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0439\u0434\u0451\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>  <\/p>\n<p><strong>Issue 31<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">internal FolderInfoBuilder() {   this.portalId = Constants.CONTENT_ValidPortalId;   this.folderPath = Constants.FOLDER_ValidFolderRelativePath;   this.physicalPath = Constants.FOLDER_ValidFolderPath;   this.folderMappingID = Constants.FOLDER_ValidFolderMappingID;   this.folderId = Constants.FOLDER_ValidFolderId;   this.physicalPath = string.Empty; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3008\/\">V3008<\/a> The &#8216;this.physicalPath&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 29, 26. DotNetNuke.Tests.Core FolderInfoBuilder.cs 29<\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u043e\u043b\u0435 <em>physicalPath<\/em> \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>Constants.FOLDER_ValidFolderPath<\/em>, \u043e\u0434\u043d\u0430\u043a\u043e \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0451 \u0432 \u0442\u043e \u0436\u0435 \u043f\u043e\u043b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f <em>string.Empty<\/em>. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u044e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0435\u0449\u0451 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public const string FOLDER_ValidFolderPath = \"C:\\\\folder\";<\/code><\/pre>\n<p>  <\/p>\n<p><strong>Issue 32<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public int SeekCountry(int offset, long ipNum, short depth) {   ....   var buffer = new byte[6];   byte y;    ....   if (y &lt; 0)   {     y = Convert.ToByte(y + 256);   }    .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3022\/\">V3022<\/a> Expression &#8216;y &lt; 0&#8217; is always false. Unsigned type value is always >= 0. CountryListBox CountryLookup.cs 210<\/p>\n<p>  <\/p>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 <em>byte<\/em> \u043b\u0435\u0436\u0430\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 [0; 255]. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <em>y &lt; 0<\/em> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u0430\u0432\u0430\u0442\u044c <em>false<\/em> \u0438 <em>then<\/em>-\u0432\u0435\u0442\u0432\u044c \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Issue 33<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void ParseTemplateInternal(...., string templatePath, ....) {   ....   string path = Path.Combine(templatePath, \"admin.template\");   if (!File.Exists(path))   {     \/\/ if the template is a merged copy of a localized templte the     \/\/ admin.template may be one director up     path = Path.Combine(templatePath, \"..\\admin.template\");   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3057\/\">V3057<\/a> The &#8216;Combine&#8217; function is expected to receive a valid path string. Inspect the second argument. DotNetNuke.Library PortalController.cs 3538<\/p>\n<p>  <\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0434\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0443\u0442\u0438 (\u0432\u044b\u0437\u043e\u0432 <em>Path.Combine<\/em>). \u0421 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0441\u0451 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0430 \u0432\u043e\u0442 \u0432\u0442\u043e\u0440\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435. \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b admin.template \u043d\u0435 \u0438\u0437 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <em>templatePath<\/em>, \u0430 \u0438\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439. \u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430! \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 <em>..\\*, \u043f\u0443\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0431\u044b\u0442\u044c \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c escape sequence: <\/em>..<strong>\\a<\/strong>dmin.template*.<\/p>\n<p>  <\/p>\n<p><strong>Issue 34<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">internal override string GetMethodInformation(MethodItem method) {   ....   string param = string.Empty;   string[] names = method.Parameters;   StringBuilder sb = new StringBuilder();   if (names != null &amp;&amp; names.GetUpperBound(0) > 0)   {     for (int i = 0; i &lt;= names.GetUpperBound(0); i++)     {       sb.AppendFormat(\"{0}, \", names[i]);     }   }     if (sb.Length > 0)   {     sb.Remove(sb.Length - 2, 2);     param = sb.ToString();   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3057\/\">V3057<\/a> The &#8216;Remove&#8217; function could receive the &#8216;-1&#8217; value while non-negative value is expected. Inspect the first argument. DotNetNuke.Log4Net StackTraceDetailPatternConverter.cs 67<\/p>\n<p>  <\/p>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043a\u0440\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u044f. \u0412 then-\u0432\u0435\u0442\u0432\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <em>if<\/em> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>sb.Length<\/em> >= 1, \u043d\u043e \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <em>Remove<\/em> \u043c\u044b \u0432\u044b\u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 2. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 <em>sb.Length == 1<\/em>, \u0442\u043e \u0432\u044b\u0437\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <em>sb.Remove(-1, 2)<\/em>, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0441\u043f\u0430\u0441\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0432 <em>StringBuilder<\/em> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u0444\u043e\u0440\u043c\u0430\u0442 <em>&#171;{0}, &#171;<\/em>. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0434\u043b\u0438\u043d\u0430 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u043e\u043a \u2013 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c 2 \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432\u0441\u0451 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u044b\u0431\u043a\u043e, \u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0431\u0438\u0432\u0430\u0435\u0442 \u0441 \u0442\u043e\u043b\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u043e\u0440\u0430\u0436\u0438\u0432\u0430\u0435\u0442.<\/p>\n<p>  <\/p>\n<p><strong>Issues 35, 36<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public void SaveJournalItem(JournalItem journalItem, int tabId, int moduleId) {   ....   journalItem.JournalId = this._dataService.Journal_Save(     journalItem.PortalId,     journalItem.UserId,     journalItem.ProfileId,     journalItem.SocialGroupId,     journalItem.JournalId,     journalItem.JournalTypeId,     journalItem.Title,     journalItem.Summary,     journalItem.Body,     journalData,     xml,     journalItem.ObjectKey,     journalItem.AccessKey,     journalItem.SecuritySet,     journalItem.CommentsDisabled,     journalItem.CommentsHidden);   .... } public void UpdateJournalItem(JournalItem journalItem, int tabId, int moduleId) {   ....   journalItem.JournalId = this._dataService.Journal_Update(     journalItem.PortalId,     journalItem.UserId,     journalItem.ProfileId,     journalItem.SocialGroupId,     journalItem.JournalId,     journalItem.JournalTypeId,     journalItem.Title,     journalItem.Summary,     journalItem.Body,     journalData,     xml,     journalItem.ObjectKey,     journalItem.AccessKey,     journalItem.SecuritySet,     journalItem.CommentsDisabled,     journalItem.CommentsHidden);   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u0441\u0440\u0430\u0437\u0443 2 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043f\u043e\u0445\u043e\u0436\u0435, \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0438\u043b\u0438\u0441\u044c \u043c\u0435\u0442\u043e\u0434\u043e\u043c copy-paste. \u0421\u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0438\u0445? \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0434\u043b\u044f \u043e\u0442\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0432\u0435\u0442 \u043d\u0435 \u0431\u0440\u043e\u0441\u0438\u043b\u0441\u044f \u0432 \u0433\u043b\u0430\u0437\u0430.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/c10\/544\/407\/c10544407f66df700ae9c8816cd32a63.png\" alt=\"0890_DNN_ru\/image6.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c10\/544\/407\/c10544407f66df700ae9c8816cd32a63.png\"\/><\/p>\n<p>  <\/p>\n<p>\u041e\u0445, \u043f\u0440\u043e\u0448\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f! \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u044f \u0437\u0430\u0431\u044b\u043b \u0434\u0430\u0442\u044c \u0432\u0430\u043c \u043a\u043b\u044e\u0447\u0438\u043a \u0434\u043b\u044f \u0440\u0430\u0437\u0433\u0430\u0434\u043a\u0438\u2026 \u0412\u043e\u0442 \u043e\u043d:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">int Journal_Update(int portalId,                     int currentUserId,                     int profileId,                     int groupId,                     int journalId,                     int journalTypeId,                     string title,                     string summary,                    string body,                     string itemData,                     string xml,                     string objectKey,                     Guid accessKey,                     string securitySet,                     bool commentsHidden,                     bool commentsDisabled);<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u0442\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0433\u0447\u0435. \u041d\u0430\u0448\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443? \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 (\u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043b\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c), \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043c\u043e\u0433\u0443\u0442:<\/p>\n<p>  <\/p>\n<ul>\n<li>V3066 Possible incorrect order of arguments passed to &#8216;Journal_Save&#8217; method: &#8216;journalItem.CommentsDisabled&#8217; and &#8216;journalItem.CommentsHidden&#8217;. DotNetNuke.Library JournalControllerImpl.cs 125<\/li>\n<li>V3066 Possible incorrect order of arguments passed to &#8216;Journal_Update&#8217; method: &#8216;journalItem.CommentsDisabled&#8217; and &#8216;journalItem.CommentsHidden&#8217;. DotNetNuke.Library JournalControllerImpl.cs 253<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u2013 \u0432 \u043e\u0431\u043e\u0438\u0445 \u0432\u044b\u0437\u043e\u0432\u0430\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0434\u0443\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435: <em>journalItem.CommentsDisabled<\/em>, <em>journalItem.CommentsHidden<\/em>; \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0442\u0430\u043a: <em>commentsHidden<\/em>, <em>commentsDisabled<\/em>. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0435 \u043f\u0440\u0430\u0432\u0434\u0430 \u043b\u0438?<\/p>\n<p>  <\/p>\n<p><strong>Issue 37<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static DateTime LastPurge {   get   {     var lastPurge = DateTime.Now;     if (File.Exists(CachePath + \"_lastpurge\"))     {       var fi = new FileInfo(CachePath + \"_lastpurge\");       lastPurge = fi.LastWriteTime;     }     else     {       File.WriteAllText(CachePath + \"_lastpurge\", string.Empty);     }      return lastPurge;   }    set   {     File.WriteAllText(CachePath + \"_lastpurge\", string.Empty);   } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3077\/\">V3077<\/a> The setter of &#8216;LastPurge&#8217; property does not utilize its &#8216;value&#8217; parameter. DotNetNuke.Library IPCount.cs 96<\/p>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u043e, \u0447\u0442\u043e <em>set<\/em>-accessor \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <em>value<\/em>-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440. \u0422\u043e \u0435\u0441\u0442\u044c \u0432 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0433\u0443\u0442 \u0447\u0442\u043e-\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u2026 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0412 \u043a\u043e\u0434\u0435 \u044f \u043d\u0430\u0448\u0451\u043b \u043e\u0434\u043d\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0438\u0434\u0451\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public static bool CheckIp(string ipAddress) {   ....   LastPurge = DateTime.Now;   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0438\u0433\u0434\u0435 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<\/p>\n<p>  <\/p>\n<p><strong>Issue 38<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void DisplayNewRows() {   this.divTabName.Visible = this.optMode.SelectedIndex == 0;   this.divParentTab.Visible = this.optMode.SelectedIndex == 0;   this.divInsertPositionRow.Visible = this.optMode.SelectedIndex == 0;   this.divInsertPositionRow.Visible = this.optMode.SelectedIndex == 0; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3008\/\">V3008<\/a> The &#8216;this.divInsertPositionRow.Visible&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 349, 348. DotNetNuke.Website Import.ascx.cs 349<\/p>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0430\u0436\u0434\u044b \u0438\u0434\u0451\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043e\u0434\u043d\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u2013 \u0442\u0443\u0442 \u0446\u0435\u043b\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e. \u041d\u043e \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0435\u0433\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u0430 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u0430\u0431\u044b\u043b\u0438. <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/posts\/cpp\/0260\/\">\u042d\u0444\u0444\u0435\u043a\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/a>?<\/p>\n<p>  <\/p>\n<p><strong>Issue 39<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">public enum AddressType {   IPv4 = 0,   IPv6 = 1, }  private static void FilterRequest(object sender, EventArgs e) {   ....     switch (varArray[1])   {     case \"IPv4\":       varVal = NetworkUtils.GetAddress(varVal, AddressType.IPv4);       break;     case \"IPv6\":       varVal = NetworkUtils.GetAddress(varVal, AddressType.IPv4);       break;   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3139\/\">V3139<\/a> Two or more case-branches perform the same actions. DotNetNuke.HttpModules RequestFilterModule.cs 81<\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e-\u0442\u043e \u043c\u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u044d\u0442\u0438 <em>case<\/em>-\u0432\u0435\u0442\u043a\u0438 \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 \u0438 \u0447\u0442\u043e \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u043e\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <em>AddressType.IPv6<\/em>.<\/p>\n<p>  <\/p>\n<p><strong>Issue 40<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static DateTime CalculateTime(int lapse, string measurement) {   var nextTime = new DateTime();   switch (measurement)   {     case \"s\":       nextTime = DateTime.Now.AddSeconds(lapse);       break;     case \"m\":       nextTime = DateTime.Now.AddMinutes(lapse);       break;     case \"h\":       nextTime = DateTime.Now.AddHours(lapse);       break;     case \"d\":       nextTime = DateTime.Now.AddDays(lapse);       break;     case \"w\":       nextTime = DateTime.Now.AddDays(lapse);       break;     case \"mo\":       nextTime = DateTime.Now.AddMonths(lapse);       break;     case \"y\":       nextTime = DateTime.Now.AddYears(lapse);       break;   }   return nextTime; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3139\/\">V3139<\/a> Two or more case-branches perform the same actions. DotNetNuke.Tests.Core PropertyAccessTests.cs 118<\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u0435\u043b\u0430 <em>case<\/em>-\u0432\u0435\u0442\u0432\u0435\u0439 <em>&#171;d&#187;<\/em> \u0438 <em>&#171;w&#187;<\/em> \u2013 \u043e\u043d\u0438 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430. Copy-paste\u2026 Copy-paste \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 <em>AddWeeks<\/em> \u0432 \u0442\u0438\u043f\u0435 <em>DateTime<\/em> \u043d\u0435\u0442, \u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 <em>case<\/em>-\u0432\u0435\u0442\u043a\u0435 &#171;w&#187; \u0440\u0430\u0431\u043e\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u0434\u0442\u0438 \u0441 \u043d\u0435\u0434\u0435\u043b\u044f\u043c\u0438.<\/p>\n<p>  <\/p>\n<p><strong>Issue 41<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private static int AddTabToTabDict(....) {   ....   if (customAliasUsedAndNotCurrent &amp;&amp; settings.RedirectUnfriendly)   {     \/\/ add in the standard page, but it's a redirect to the customAlias     rewritePath = RedirectTokens.AddRedirectReasonToRewritePath(                     rewritePath,                     ActionType.Redirect301,                     RedirectReason.Custom_Tab_Alias);     AddToTabDict(tabIndex,                  dupCheck,                  httpAlias,                  tabPath,                  rewritePath,                  tab.TabID,                  UrlEnums.TabKeyPreference.TabRedirected,                  ref tabPathDepth,                  settings.CheckForDuplicateUrls,                  isDeleted);   }   else   {     if (customAliasUsedAndNotCurrent &amp;&amp; settings.RedirectUnfriendly)     {       \/\/ add in the standard page, but it's a redirect to the customAlias       rewritePath = RedirectTokens.AddRedirectReasonToRewritePath(                       rewritePath,                       ActionType.Redirect301,                       RedirectReason.Custom_Tab_Alias);       AddToTabDict(tabIndex,                    dupCheck,                    httpAlias,                    tabPath,                    rewritePath,                    tab.TabID,                    UrlEnums.TabKeyPreference.TabRedirected,                    ref tabPathDepth,                    settings.CheckForDuplicateUrls,                    isDeleted);     }     else       ....   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3030\/\">V3030<\/a> Recurring check. The &#8216;customAliasUsedAndNotCurrent &amp;&amp; settings.RedirectUnfriendly&#8217; condition was already verified in line 1095. DotNetNuke.Library TabIndexController.cs 1097<\/p>\n<p>  <\/p>\n<p>\u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">if (a &amp;&amp; b)   .... else {   if (a &amp;&amp; b)     .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432 \u044d\u0442\u043e\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u0432\u0442\u043e\u0440\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0436\u043d\u044b\u043c \u2013 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u041d\u043e \u0437\u0434\u0435\u0441\u044c \u043c\u044b \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0434\u0430\u0436\u0435 \u043d\u0430 \u0431\u041e\u043b\u044c\u0448\u0438\u0439 \u043a\u0443\u0448 \u2013 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u043d\u043e \u0438 \u0446\u0435\u043b\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u043a\u043e\u0434\u0430. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, <em>if<\/em> \u0441 \u0435\u0433\u043e <em>then<\/em>-\u0432\u0435\u0442\u0432\u044c\u044e \u0431\u044b\u043b \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0446\u0435\u043b\u0438\u043a\u043e\u043c.<\/p>\n<p>  <\/p>\n<p><strong>Issue 42<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private IEnumerable&lt;TabDto> GetDescendantsForTabs(   IEnumerable&lt;int> tabIds,    IEnumerable&lt;TabDto> tabs,   int selectedTabId,   int portalId,    string cultureCode,    bool isMultiLanguage) {   var enumerable = tabIds as int[] ?? tabIds.ToArray();   if (tabs == null || tabIds == null || !enumerable.Any())   {     return tabs;   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3095\/\">V3095<\/a> The &#8216;tabIds&#8217; object was used before it was verified against null. Check lines: 356, 357. Dnn.PersonaBar.Library TabsController.cs 356<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u0435\u0439\u0441 \u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b \u0440\u0430\u043d\u044c\u0448\u0435, \u043d\u043e \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e.<\/p>\n<p>  <\/p>\n<p><em>tabIds<\/em> \u2013 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>null<\/em> \u2013 \u043d\u0435 \u0437\u0440\u044f \u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <em>tabIds == null<\/em>? \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u044f\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0443\u0442\u0430\u043d\u043e&#8230;<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e <em>tabIds<\/em> \u2013 <em>null<\/em>, \u0442\u043e\u0433\u0434\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0435\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 ?? (<em>tabIds as int[]<\/em>);<\/li>\n<li><em>tabIds as int[]<\/em> \u0434\u0430\u0451\u0442 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 <em>null<\/em>;<\/li>\n<li>\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 ?? (<em>tabIds.ToArray()<\/em>);<\/li>\n<li>\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 <em>ToArray<\/em>, \u0442\u0430\u043a \u043a\u0430\u043a <em>tabIds<\/em> \u2013 <em>null<\/em>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430.<\/p>\n<p>  <\/p>\n<p><strong>Issue 43<\/strong><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0440\u0430\u0437\u043c\u044f\u0442\u044c\u0441\u044f \u0438 \u043d\u0430\u0439\u0442\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u0417\u0430\u0434\u0430\u0447\u0430 \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0430 \u2013 \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043e\u0442\u0440\u0435\u0437\u0430\u043d\u043e \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0451 \u043b\u0438\u0448\u043d\u0435\u0435! \u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434 \u0431\u044b\u043b \u043d\u0430 500 \u0441\u0442\u0440\u043e\u043a \u2013 \u0432\u043e\u0442 \u0432 \u043d\u0451\u043c \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043e\u043c. \u0425\u043e\u0442\u044f \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u2013 \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/dnnsoftware\/Dnn.Platform\/blob\/05544c719981842c341ec40583be2e149aeb64a9\/DNN%20Platform\/Providers\/HtmlEditorProviders\/DNNConnect.CKE\/CKEditorOptions.ascx.cs\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430 GitHub<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0423\u0432\u0435\u0440\u0435\u043d, \u0435\u0441\u043b\u0438 \u0441\u0430\u043c\u0438 \u043f\u043e\u0439\u043c\u0451\u0442\u0435, \u0447\u0442\u043e \u043d\u0435 \u0442\u0430\u043a, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0432\u044b\u0431\u0440\u043e\u0441 \u044d\u043d\u0434\u043e\u0440\u0444\u0438\u043d\u043e\u0432. \ud83d\ude42<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void SaveModuleSettings() {   ....   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.SKIN}\",      this.ddlSkin.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.CODEMIRRORTHEME}\",      this.CodeMirrorTheme.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.BROWSER}\",      this.ddlBrowser.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.IMAGEBUTTON}\",      this.ddlImageButton.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.FILELISTVIEWMODE}\",      this.FileListViewMode.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.DEFAULTLINKMODE}\",       this.DefaultLinkMode.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.USEANCHORSELECTOR}\",      this.UseAnchorSelector.Checked.ToString());   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.SHOWPAGELINKSTABFIRST}\",      this.ShowPageLinksTabFirst.Checked.ToString());   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.OVERRIDEFILEONUPLOAD}\",      this.OverrideFileOnUpload.Checked.ToString());   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.SUBDIRS}\",      this.cbBrowserDirs.Checked.ToString());   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.BROWSERROOTDIRID}\",      this.BrowserRootDir.SelectedValue);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.UPLOADDIRID}\",      this.UploadDir.SelectedValue);    if (Utility.IsNumeric(this.FileListPageSize.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.FILELISTPAGESIZE}\",        this.FileListPageSize.Text);   }    if (Utility.IsNumeric(this.txtResizeWidth.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.RESIZEWIDTH}\",        this.txtResizeWidth.Text);   }    if (Utility.IsNumeric(this.txtResizeHeight.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.RESIZEHEIGHT}\",        this.txtResizeHeight.Text);   }    moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.INJECTJS}\",      this.InjectSyntaxJs.Checked.ToString());    if (Utility.IsUnit(this.txtWidth.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.WIDTH}\",        this.txtWidth.Text);   }    if (Utility.IsUnit(this.txtHeight.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.HEIGHT}\",        this.txtWidth.Text);   }    moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.BLANKTEXT}\",      this.txtBlanktext.Text);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.CSS}\",      this.CssUrl.Url);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.TEMPLATEFILES}\",      this.TemplUrl.Url);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.CUSTOMJSFILE}\",      this.CustomJsFile.Url);   moduleController.UpdateModuleSetting(this.ModuleId,      $\"{key}{SettingConstants.CONFIG}\",      this.ConfigUrl.Url);   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0442\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0431\u0435\u0437 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0434\u043b\u044f \u043e\u0442\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c. \u0417\u0430 \u043d\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0442.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/6bc\/0ae\/3da\/6bc0ae3dacd5c442ddbd6e45bccad356.png\" alt=\"0890_DNN_ru\/image7.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6bc\/0ae\/3da\/6bc0ae3dacd5c442ddbd6e45bccad356.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0436, \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0435\u0431\u044f! <\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 PVS-Studio: <a href=\"https:\/\/pvs-studio.com\/ru\/w\/v3127\/\">V3127<\/a> Two similar code fragments were found. Perhaps, this is a typo and &#8216;txtHeight&#8217; variable should be used instead of &#8216;txtWidth&#8217; DNNConnect.CKEditorProvider CKEditorOptions.ascx.cs 2477<\/p>\n<p>  <\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0443 \u043d\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0435\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043c \u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"cs\">private void SaveModuleSettings() {   ....   if (Utility.IsUnit(this.txtWidth.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.WIDTH}\",        this.txtWidth.Text);               \/\/ &lt;=   }    if (Utility.IsUnit(this.txtHeight.Text))   {     moduleController.UpdateModuleSetting(this.ModuleId,        $\"{key}{SettingConstants.HEIGHT}\",        this.txtWidth.Text);               \/\/ &lt;=   }   .... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0443\u0436\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441 &#8216;height&#8217; \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438, \u0430 \u043d\u0435 &#8216;width&#8217;. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <em>UpdateModuleSetting<\/em> \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f <em>this.txtWidth.Text<\/em> \u0432\u043c\u0435\u0441\u0442\u043e <em>this.txtHeight.Text<\/em>.<\/p>\n<p>  <\/p>\n<p><strong>Issue N<\/strong><\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0448\u0451\u043b \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u042f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0438 \u0451\u043c\u043a\u0438\u0435. \u0411\u044b\u043b\u0438 \u0438 \u043c\u0435\u0436\u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u044b\u0435, \u0431\u044b\u043b\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u043d\u0430 \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b. \u041d\u043e \u044f \u0438\u0441\u0445\u043e\u0436\u0443 \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u0435\u0436\u0435\u043b\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c.<\/p>\n<p>  <\/p>\n<p>\u0411\u0435\u0437 false positives \u0442\u043e\u0436\u0435 \u043d\u0435 \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c, \u043d\u043e \u043e\u043d\u0438 \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0441\u043a\u043e\u0440\u0435\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u043d\u0435\u0436\u0435\u043b\u0438 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0438\u0445 \u044f \u0442\u0430\u043a\u0436\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430 \u0440\u0430\u043c\u043a\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<h2 id=\"zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041f\u043e-\u043c\u043e\u0435\u043c\u0443, \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u044f\u044f \u043f\u043e\u0434\u0431\u043e\u0440\u043a\u0430 \u0432\u044b\u0434\u0430\u043b\u0430\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0439. \u041f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0443 \u0432\u0430\u0441 \u043c\u043e\u0433 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441: &#171;\u041a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0441\u044f\u043a?&#187;. \u041d\u043e \u043c\u043e\u0436\u043d\u043e, \u043c\u043e\u0436\u043d\u043e! \u041a\u0430\u043a? \u0412\u043e\u043f\u0440\u043e\u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439, \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u0431\u044b\u0432\u0430\u044e\u0442. \u041e\u0448\u0438\u0431\u0430\u044e\u0442\u0441\u044f \u043b\u0438? \u041a\u043e\u043d\u0435\u0447\u043d\u043e. \u0418 \u043c\u044b \u0438\u0437 \u0440\u0430\u0437\u0430 \u0432 \u0440\u0430\u0437 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u043e\u043c\u0443 <a href=\"https:\/\/pvs-studio.com\/ru\/blog\/inspections\/\">\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430 \u043c\u044b \u0438 \u0441\u0430\u043c\u0438 \u043e\u0448\u0438\u0431\u0430\u0435\u043c\u0441\u044f \u0438\u043d\u043e\u0433\u0434\u0430, \u0447\u0435\u0433\u043e \u0443\u0436 \u0442\u0443\u0442. \u0418 false positives \u0431\u044b\u0432\u0430\u044e\u0442. \u0412\u0430\u0436\u043d\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0434 \u0438\u0445 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c. \ud83d\ude42<\/p>\n<p>  <\/p>\n<p>\u0413\u043e\u0432\u043e\u0440\u044f \u043f\u0440\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0438 \u043e\u0434\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0438\u0437\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432? \u0421\u043a\u043e\u0440\u0435\u0435 \u043d\u0435\u0442. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b\/\u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0438 \u043a\u0430\u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u0434\u0430 \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0442\u0430\u043a \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432 \u0446\u0435\u043b\u043e\u043c.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0432\u043e\u0434\u044b \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0442\u0430\u043a\u0438\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u043f\u043e\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u0435\u0435 \u0441 copy-paste;<\/li>\n<li><a href=\"https:\/\/pvs-studio.com\/ru\/\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437<\/a>;<\/li>\n<li>\u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 <a href=\"https:\/\/twitter.com\/_SergVasiliev_\">\u043c\u0435\u043d\u044f \u0432 Twitter<\/a>.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><strong>P.S.<\/strong> \u041a\u0441\u0442\u0430\u0442\u0438, \u0430 \u043a\u0430\u043a\u043e\u0439 \u0432\u0430\u0448 \u0422\u043e\u043f-10 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438? \ud83d\ude09<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0441 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: Sergey Vasiliev. <a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/591165\/\">A variety of errors in C# code by the example of CMS DotNetNuke: 40 questions about the quality<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/591167\/\"> https:\/\/habr.com\/ru\/articles\/591167\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/e12\/351\/790\/e12351790900ad3143e2529b47446743.png\" alt=\"0890_DNN_ru\/image1.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e12\/351\/790\/e12351790900ad3143e2529b47446743.png\"\/><\/p>\n<p>  <\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0432\u043d\u043e\u0432\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 C# \u043a\u043e\u0434\u0430 \u0438 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u041d\u0430 \u043d\u0430\u0448\u0435\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0441\u0442\u043e\u043b\u0435 \u2013 CMS DotNetNuke, \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0438 \u0437\u0430\u043b\u0435\u0437\u0435\u043c. \u0418 \u043b\u0443\u0447\u0448\u0435 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0432\u0430\u0440\u0438\u0442\u0435 \u0441\u0435\u0431\u0435 \u043a\u043e\u0444\u0435&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-417796","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/417796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=417796"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/417796\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=417796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=417796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=417796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}