Ver Fonte

update coc settings

Noah Vogt há 3 anos atrás
pai
commit
e7952484f7
3 ficheiros alterados com 11 adições e 4 exclusões
  1. 6 0
      dot-config/nvim/coc-settings.json
  2. 4 3
      dot-config/pylintrc
  3. 1 1
      local-bin/addpushremote

+ 6 - 0
dot-config/nvim/coc-settings.json

@@ -1,4 +1,10 @@
 {
+"diagnostic-languageserver.filetypes": {
+  "sh": "shellcheck"
+},
+"diagnostic-languageserver.formatFiletypes": {
+  "sh": "shfmt"
+},
   "python.linting.pylintEnabled" : true,
   "languageserver": {
     "ccls": {

+ 4 - 3
dot-config/pylintrc

@@ -1,5 +1,6 @@
 [MASTER]
 disable=
-    C0114, # missing-module-docstring
-    C0209, # consider-using-f-string
-    C0116, # missing-function-docstring
+        C0114, # missing-module-docstring
+        C0209, # consider-using-f-string
+        C0116, # missing-function-docstring
+        C0115, # missing-class-docstring

+ 1 - 1
local-bin/addpushremote

@@ -14,7 +14,7 @@ if ! git remote -v | grep -q "$newpushremote"; then
 fi
 
 if ! git remote -v | grep push | grep -q "$fetch" ; then
-    echo "Readding fetch remote to push ...\n"
+    printf "Readding fetch remote to push ...\n\n"
     git remote set-url origin --add --push "$fetch"
 fi