diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml new file mode 100644 index 000000000..cd481d9a9 --- /dev/null +++ b/.github/workflows/integration.yaml @@ -0,0 +1,11 @@ +name: 🔄 Integration + +on: + pull_request: + +jobs: + linelint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: fernandrone/linelint@0.0.6 diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 000000000..75a08500e --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,18 @@ +# 'true' will fix files +autofix: false + +# list of paths to ignore, uses gitignore syntaxes (executes before any rule) +ignore: + - "*.md" + +rules: + # checks if file ends in a newline character + end-of-file: + # set to true to enable this rule + enable: true + + # set to true to disable autofix (if enabled globally) + disable-autofix: false + + # if true also checks if file ends in a single newline character + single-new-line: false diff --git a/contains-duplicate/kimyoung.js b/contains-duplicate/kimyoung.js index d8688c3a5..c2547e886 100644 --- a/contains-duplicate/kimyoung.js +++ b/contains-duplicate/kimyoung.js @@ -10,4 +10,4 @@ console.log(containsDuplicate([1, 2, 3, 1])); // true console.log(containsDuplicate([1, 2, 3, 4])); // false // space - O(n) - creating a set to store elements -// time - O(n) - traverse through the array \ No newline at end of file +// time - O(n) - traverse through the array diff --git a/number-of-1-bits/sun912.py b/number-of-1-bits/sun912.py index 0df9a5d29..d2f427702 100644 --- a/number-of-1-bits/sun912.py +++ b/number-of-1-bits/sun912.py @@ -10,4 +10,4 @@ def hammingWeight(self, n: int) -> int: result += n % 2 n = n//2 - return result \ No newline at end of file + return result diff --git a/palindromic-substrings/kimyoung.js b/palindromic-substrings/kimyoung.js index 5c1b43321..5e465e933 100644 --- a/palindromic-substrings/kimyoung.js +++ b/palindromic-substrings/kimyoung.js @@ -26,4 +26,4 @@ console.log(countSubstrings("a")); // 1 console.log(countSubstrings("")); // 0 // space - O(1) - constant variable `result` -// time - O(n^2) - iterating through the string and expanding both ways \ No newline at end of file +// time - O(n^2) - iterating through the string and expanding both ways diff --git a/palindromic-substrings/wogha95.js b/palindromic-substrings/wogha95.js index eae4f8376..ba88cde5d 100644 --- a/palindromic-substrings/wogha95.js +++ b/palindromic-substrings/wogha95.js @@ -29,4 +29,4 @@ var countSubstrings = function(s) { return true; } -}; \ No newline at end of file +};