Skip to content

Commit

Permalink
Update linting and code analysis settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Darker21 committed Jan 22, 2022
1 parent fe44edc commit ec2d86e
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 19 deletions.
6 changes: 5 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ plugins:
enabled: true
scss-lint:
enabled: true
eslint:
enabled: true
channel: "eslint-8"
exclude_patterns:
- 'config/'
- 'db/'
Expand All @@ -44,4 +47,5 @@ exclude_patterns:
- '**/vendor/'
- '**/*_test.go'
- 'src/modules/settings/Options.js'
- 'build/config.js'
- 'build/config.js'
- 'docs/**'
7 changes: 7 additions & 0 deletions .sccs-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
linters:

Indentation:
enabled: true
allow_non_nested_indentation: false
character: space # or 'tab'
width: 4
2 changes: 1 addition & 1 deletion bundle-analysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>toaste-notifier [20 Jan 2022 at 12:26]</title>
<title>toaste-notifier [22 Jan 2022 at 18:18]</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/D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apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />

<script>
Expand Down
6 changes: 3 additions & 3 deletions dist/toaste-notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["ToastE-Notifier"] = factory());
})(this, (function () { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global['ToastE-Notifier'] = factory());
}(this, (function () { 'use strict';

function _typeof(obj) {
"@babel/helpers - typeof";
Expand Down Expand Up @@ -818,4 +818,4 @@

return ToastENotifier;

}));
})));
2 changes: 1 addition & 1 deletion docs/toaste-notifier/1.0.0-alpha4/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
10 changes: 5 additions & 5 deletions docs/toaste-notifier/1.0.0-alpha4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ <h3>toaste-notifier 1.0.0-alpha4</h3>


<section>
<article><h1>ToastE</h1>
<article><h1>ToastE-Notifier</h1>
<p><img src="https://img.shields.io/badge/Built%20with-JavaScript-red?style=flat&amp;logo=javascript" alt="Built with JavaScript">
<a href="https://codeclimate.com/github/Darker21/ToastE/maintainability"><img src="https://api.codeclimate.com/v1/badges/b177b2a2328c204635b2/maintainability" alt="Maintainability"></a>
<a href="https://codeclimate.com/github/Darker21/ToastE"><img src="https://badgen.net/codeclimate/tech-debt/Darker21/ToastE" alt="TechnicalDebt"></a>
<img src="https://badgen.net/badge/license/MIT/blue" alt="License">
<img src="https://img.shields.io/circleci/build/github/Darker21/ToastE/main?logo=circleci" alt="CircleCI">
<a href="https://npmjs.com"><img src="https://img.shields.io/node/v/toaste-notifier?label=npm&amp;logo=npm" alt="node-current"></a></p>
<a href="https://www.npmjs.com/package/toaste-notifier"><img src="https://img.shields.io/npm/v/toaste-notifier?logo=npm" alt="npm"></a></p>
<h2>About</h2>
<p>ToastE Notifier is a vanilla JS version of the existing <a href="https://github.com/kamranahmedse/jquery-toast-plugin">jquery-toast-plugin</a> made to comply with strict Content-Secrity-Policies and reduce dependencies.</p>
<p>All existing functionality found within the jquery-toast-plugin has been transpliled to pure JS.</p>
Expand All @@ -67,15 +67,15 @@ <h2>How to use</h2>
<ul>
<li>
<p>You can install the plugin via <code>npm</code></p>
<pre class="prettyprint source lang-js"><code>npm install jquery-toast-plugin
<pre class="prettyprint source lang-js"><code>npm install --save toaste-notification
</code></pre>
<p>Or directly download the repository and place the content of <code>dist</code> wherever you can access them.</p>
</li>
<li>
<p>Include the CSS and JS files.</p>
</li>
<li>
<p>Simply do <code>$.toast('Toast message to be shown')</code> Of course it would be the world's simplest toast message but believe me <strong>you can do a lot more</strong> with the options.</p>
<p>Simply do <code>new ToastENotifier('Toast message to be shown')</code> Of course it would be the world's simplest toast message but believe me <strong>you can do a lot more</strong> with the options.</p>
</li>
</ul>
<h2>Examples</h2>
Expand Down Expand Up @@ -138,7 +138,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/toaste-notifier/1.0.0-alpha4/module.exports.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/toaste-notifier/1.0.0-alpha4/modules_Core.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/toaste-notifier/1.0.0-alpha4/toaste-notifier.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/toaste-notifier/1.0.0-alpha4/utils_Utils.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-To
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Thu Jan 20 2022 12:26:14 GMT+0000 (Greenwich Mean Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 22 2022 18:18:18 GMT+0000 (Greenwich Mean Time)
</footer>

<script> prettyPrint(); </script>
Expand Down

0 comments on commit ec2d86e

Please sign in to comment.